SMACC
Loading...
Searching...
No Matches
Public Member Functions | Private Attributes | List of all members
smacc::SmaccEventGenerator Class Reference

#include <smacc_event_generator.h>

Inheritance diagram for smacc::SmaccEventGenerator:
Inheritance graph
Collaboration diagram for smacc::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 22 of file smacc_event_generator.h.

Constructor & Destructor Documentation

◆ SmaccEventGenerator()

smacc::SmaccEventGenerator::SmaccEventGenerator ( )

Definition at line 12 of file smacc_event_generator.cpp.

13 {
14 }

◆ ~SmaccEventGenerator()

smacc::SmaccEventGenerator::~SmaccEventGenerator ( )
virtual

Definition at line 16 of file smacc_event_generator.cpp.

17 {
18 }

Member Function Documentation

◆ initialize()

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

Definition at line 28 of file smacc_event_generator.cpp.

29 {
30 this->ownerState_ = ownerState;
31 this->onInitialized();
32 }

References onInitialized(), and ownerState_.

Here is the call graph for this function:

◆ onEntry()

void smacc::SmaccEventGenerator::onEntry ( )
virtual

◆ onExit()

void smacc::SmaccEventGenerator::onExit ( )
virtual

Definition at line 24 of file smacc_event_generator.cpp.

25 {
26 }

◆ onInitialized()

void smacc::SmaccEventGenerator::onInitialized ( )
virtual

Definition at line 34 of file smacc_event_generator.cpp.

35 {
36 }

Referenced by initialize().

Here is the caller graph for this function:

◆ onStateAllocation()

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

Definition at line 26 of file smacc_event_generator_impl.h.

27 {
28 }

◆ postEvent() [1/2]

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

Definition at line 20 of file smacc_event_generator_impl.h.

21 {
22 ownerState_->postEvent<EventType>();
23 }
void postEvent(const EventType &ev)

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

Here is the call graph for this function:

◆ postEvent() [2/2]

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

Definition at line 14 of file smacc_event_generator_impl.h.

15 {
17 }

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

Here is the call graph for this function:

Member Data Documentation

◆ ISmaccStateMachine

friend smacc::SmaccEventGenerator::ISmaccStateMachine
private

Definition at line 45 of file smacc_event_generator.h.

◆ ownerState_

ISmaccState* smacc::SmaccEventGenerator::ownerState_
private

Definition at line 44 of file smacc_event_generator.h.

Referenced by initialize(), and postEvent().


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