SMACC2
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 124 of file smacc_state_impl.hpp.

Constructor & Destructor Documentation

◆ AddTEventTypeStateReactorInfo()

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

Definition at line 127 of file smacc_state_impl.hpp.

127: 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 130 of file smacc_state_impl.hpp.

131 {
132 auto evinfo = std::make_shared<SmaccEventInfo>(TypeInfo::getTypeInfoFromType<T>());
133 srInfo_->sourceEventTypes.push_back(evinfo);
134 EventLabel<T>(evinfo->label);
135 }
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: