SystemC  Recoding Infrastructure for SystemC v0.6.0 derived from Accellera SystemC 2.3.1
Accellera SystemC proof-of-concept library
Public Member Functions | Protected Attributes | List of all members
sc_core::sc_spawn_object_v< T > Class Template Reference

Semantic object with return value. More...

#include <sysc/kernel/sc_spawn.h>

Inheritance diagram for sc_core::sc_spawn_object_v< T >:
Inheritance graph
[legend]
Collaboration diagram for sc_core::sc_spawn_object_v< T >:
Collaboration graph
[legend]

Public Member Functions

 sc_spawn_object_v (typename T::result_type *r_p, T object)
 
virtual void semantics ()
 
- Public Member Functions inherited from sc_core::sc_process_host
 sc_process_host ()
 
virtual ~sc_process_host ()
 
void defunct ()
 

Protected Attributes

m_object
 
T::result_type * m_result_p
 

Detailed Description

template<typename T>
class sc_core::sc_spawn_object_v< T >

Semantic object with return value.

This inline function spawns a process for execution. The execution semantics for the process being spawned will be provided by the supplied object instance via its () operator. (E.g., a SC_BOOST bound function) That operator returns a value, which will be placed in the supplied return location.

After creating the process it is registered with the simulator.
   object   =  object instance providing the execution semantics via its () 
               operator.
   r_p      -> where to place the value of the () operator.
   name_p   =  optional name for object instance, or zero.
   opt_p    -> optional spawn options for process, or zero for the default.

Definition at line 221 of file sc_spawn.h.

Constructor & Destructor Documentation

template<typename T>
sc_core::sc_spawn_object_v< T >::sc_spawn_object_v ( typename T::result_type *  r_p,
object 
)
inline

Definition at line 223 of file sc_spawn.h.

Member Function Documentation

template<typename T>
virtual void sc_core::sc_spawn_object_v< T >::semantics ( )
inlinevirtual

Definition at line 228 of file sc_spawn.h.

Member Data Documentation

template<typename T>
T sc_core::sc_spawn_object_v< T >::m_object
protected

Definition at line 234 of file sc_spawn.h.

template<typename T>
T::result_type* sc_core::sc_spawn_object_v< T >::m_result_p
protected

Definition at line 235 of file sc_spawn.h.


The documentation for this class was generated from the following file: