SMACC2
Loading...
Searching...
No Matches
smacc2::AddTEventTypeStateReactorInfo< TEventList > Struct Template Reference

#include <smacc_state_impl.hpp>

Collaboration diagram for smacc2::AddTEventTypeStateReactorInfo< TEventList >:
Collaboration graph

Public Member Functions

 AddTEventTypeStateReactorInfo (smacc2::SmaccStateReactorInfo *srInfo)
 
template<typename T >
void operator() (T)
 

Public Attributes

smacc2::SmaccStateReactorInfosrInfo_
 

Detailed Description

template<typename TEventList>
struct smacc2::AddTEventTypeStateReactorInfo< TEventList >

Definition at line 125 of file smacc_state_impl.hpp.

Constructor & Destructor Documentation

◆ AddTEventTypeStateReactorInfo()

template<typename TEventList >
smacc2::AddTEventTypeStateReactorInfo< TEventList >::AddTEventTypeStateReactorInfo ( smacc2::SmaccStateReactorInfo * srInfo)
inline

Definition at line 128 of file smacc_state_impl.hpp.

128: srInfo_(srInfo) {}
smacc2::SmaccStateReactorInfo * srInfo_

Member Function Documentation

◆ operator()()

template<typename TEventList >
template<typename T >
void smacc2::AddTEventTypeStateReactorInfo< TEventList >::operator() ( T )
inline

Definition at line 131 of file smacc_state_impl.hpp.

132 {
133 auto evinfo = std::make_shared<SmaccEventInfo>(TypeInfo::getTypeInfoFromType<T>());
134 srInfo_->sourceEventTypes.push_back(evinfo);
135 EventLabel<T>(evinfo->label);
136 }
static TypeInfo::Ptr getTypeInfoFromType()
std::enable_if< HasEventLabel< T >::value, void >::type EventLabel(std::string &label)
std::vector< std::shared_ptr< SmaccEventInfo > > sourceEventTypes

References smacc2::introspection::EventLabel(), smacc2::introspection::TypeInfo::getTypeInfoFromType(), smacc2::introspection::SmaccStateReactorInfo::sourceEventTypes, and smacc2::AddTEventTypeStateReactorInfo< TEventList >::srInfo_.

Here is the call graph for this function:

Member Data Documentation

◆ srInfo_

template<typename TEventList >
smacc2::SmaccStateReactorInfo* smacc2::AddTEventTypeStateReactorInfo< TEventList >::srInfo_

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