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
Collaboration diagram for sc_core::sc_spawn_object_v< T >:
Collaboration graph

List of all members.

Public Member Functions

 sc_spawn_object_v (typename T::result_type *r_p, T object)
virtual void semantics ()

Protected Attributes

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 () 
     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,
) [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 (  )  [inline, virtual]

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:

Generated on 30 Sep 2015 for SystemC by  doxygen 1.6.1