sc_core::sc_spawn_object< T > Class Template Reference

#include <sysc/kernel/sc_spawn.h>

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

List of all members.

Public Member Functions

 sc_spawn_object (T object)
virtual void semantics ()

Protected Attributes

m_object

Detailed Description

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

This templated helper class allows an object to provide the execution semantics for a process via its () operator. An instance of the supplied execution object will be kept to provide the semantics when the process is scheduled for execution. The () operator does not return a value. An example of an object that might be used for this helper function would be void SC_BOOST bound function or method.

  This class is derived from sc_process_host and overloads 
  sc_process_host::semantics to provide the actual semantic content.
   sc_spawn_object(T object, const char* name, const sc_spawn_options* opt_p)
     This is the object instance constructor for this class. It makes a
     copy of the supplied object. The tp_call constructor is called
     with an indication that this object instance should be reclaimed when
     execution completes.
         object   =  object whose () operator will be called to provide
                     the process semantics.
         name_p   =  optional name for object instance, or zero.
         opt_p    -> spawn options or zero.
   virtual void semantics()
     This virtual method provides the execution semantics for its process.
     It performs a () operation on m_object.
  

Definition at line 75 of file sc_spawn.h.


Constructor & Destructor Documentation

template<typename T>
sc_core::sc_spawn_object< T >::sc_spawn_object ( object  )  [inline]

Definition at line 77 of file sc_spawn.h.


Member Function Documentation

template<typename T>
virtual void sc_core::sc_spawn_object< T >::semantics (  )  [inline, virtual]

Definition at line 81 of file sc_spawn.h.


Member Data Documentation

template<typename T>
T sc_core::sc_spawn_object< T >::m_object [protected]

Definition at line 87 of file sc_spawn.h.


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

Generated on 12 Jun 2018 for SystemC by  doxygen 1.6.1