SMACC2
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
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() ( )
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 }
std::vector< std::shared_ptr< SmaccEventInfo > > sourceEventTypes

References smacc2::introspection::SmaccStateReactorInfo::sourceEventTypes, and smacc2::AddTEventTypeStateReactorInfo< TEventList >::srInfo_.

Member Data Documentation

◆ srInfo_

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

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