SMACC2
Public Member Functions | Private Attributes | List of all members
smacc2::SmaccEventGenerator Class Reference

#include <smacc_event_generator.hpp>

Inheritance diagram for smacc2::SmaccEventGenerator:
Inheritance graph
Collaboration diagram for smacc2::SmaccEventGenerator:
Collaboration graph

Public Member Functions

 SmaccEventGenerator ()
 
virtual ~SmaccEventGenerator ()
 
template<typename TState , typename TSource >
void onStateAllocation ()
 
virtual void onEntry ()
 
virtual void onExit ()
 
template<typename EventType >
void postEvent (const EventType &ev)
 
template<typename EventType >
void postEvent ()
 
void initialize (ISmaccState *ownerState)
 
virtual void onInitialized ()
 

Private Attributes

ISmaccStateownerState_
 
friend ISmaccStateMachine
 

Detailed Description

Definition at line 36 of file smacc_event_generator.hpp.

Constructor & Destructor Documentation

◆ SmaccEventGenerator()

smacc2::SmaccEventGenerator::SmaccEventGenerator ( )

Definition at line 25 of file smacc_event_generator.cpp.

25{}

◆ ~SmaccEventGenerator()

smacc2::SmaccEventGenerator::~SmaccEventGenerator ( )
virtual

Definition at line 27 of file smacc_event_generator.cpp.

27{}

Member Function Documentation

◆ initialize()

void smacc2::SmaccEventGenerator::initialize ( smacc2::ISmaccState ownerState)

Definition at line 33 of file smacc_event_generator.cpp.

34{
35 this->ownerState_ = ownerState;
36 this->onInitialized();
37}

References onInitialized(), and ownerState_.

Here is the call graph for this function:

◆ onEntry()

void smacc2::SmaccEventGenerator::onEntry ( )
virtual

◆ onExit()

void smacc2::SmaccEventGenerator::onExit ( )
virtual

Definition at line 31 of file smacc_event_generator.cpp.

31{}

◆ onInitialized()

void smacc2::SmaccEventGenerator::onInitialized ( )
virtual

Definition at line 39 of file smacc_event_generator.cpp.

39{}

Referenced by initialize().

Here is the caller graph for this function:

◆ onStateAllocation()

template<typename TState , typename TSource >
void smacc2::SmaccEventGenerator::onStateAllocation

Definition at line 40 of file smacc_event_generator_impl.hpp.

41{
42}

◆ postEvent() [1/2]

template<typename EventType >
void smacc2::SmaccEventGenerator::postEvent

Definition at line 34 of file smacc_event_generator_impl.hpp.

35{
36 ownerState_->postEvent<EventType>();
37}
void postEvent(const EventType &ev)

References ownerState_, and smacc2::ISmaccState::postEvent().

Here is the call graph for this function:

◆ postEvent() [2/2]

template<typename EventType >
void smacc2::SmaccEventGenerator::postEvent ( const EventType &  ev)

Definition at line 28 of file smacc_event_generator_impl.hpp.

29{
31}

References ownerState_, and smacc2::ISmaccState::postEvent().

Here is the call graph for this function:

Member Data Documentation

◆ ISmaccStateMachine

friend smacc2::SmaccEventGenerator::ISmaccStateMachine
private

Definition at line 59 of file smacc_event_generator.hpp.

◆ ownerState_

ISmaccState* smacc2::SmaccEventGenerator::ownerState_
private

Definition at line 58 of file smacc_event_generator.hpp.

Referenced by initialize(), and postEvent().


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