Stride Reference Manual  - generated for commit 9643b11
stride::sim_event Namespace Reference

Namespace to manage events signalled by the SimRunner. More...

Enumerations

enum  Id {
  Id::AtStart, Id::Stepped, Id::Finished, Id::SetupBegin,
  Id::SetupEnd
}
 Enumerates the event. More...
 

Functions

bool IsType (const std::string &s)
 Check whether string is name of a ContactPoolType::Id. More...
 
string ToString (Id w)
 Converts a ContactPoolType::Id value to corresponding name. More...
 
Id ToType (const std::string &s)
 Converts a string with name to Id. More...
 
constexpr unsigned int NumOfTypes ()
 Number of ContactPool types. More...
 
std::size_t ToSizeT (Id id)
 Cast to size_t for indexing. More...
 

Detailed Description

Namespace to manage events signalled by the SimRunner.

Enumeration Type Documentation

enum stride::sim_event::Id
strong

Enumerates the event.

Enumerator
AtStart 
Stepped 
Finished 
SetupBegin 
SetupEnd 

Definition at line 30 of file Id.h.

Function Documentation

bool stride::sim_event::IsType ( const string &  s)

Check whether string is name of a ContactPoolType::Id.

Definition at line 32 of file Id.cpp.

References AtStart, Finished, SetupBegin, SetupEnd, and Stepped.

Referenced by NumOfTypes().

Here is the caller graph for this function:

std::string stride::sim_event::ToString ( Id  c)

Converts a ContactPoolType::Id value to corresponding name.

Definition at line 42 of file Id.cpp.

References AtStart, Finished, SetupBegin, SetupEnd, and Stepped.

Referenced by ToSizeT().

Here is the caller graph for this function:

Id stride::sim_event::ToType ( const string &  s)

Converts a string with name to Id.

Definition at line 50 of file Id.cpp.

References AtStart, Finished, SetupBegin, SetupEnd, and Stepped.

Referenced by ToSizeT().

Here is the caller graph for this function:

constexpr unsigned int stride::sim_event::NumOfTypes ( )
inline

Number of ContactPool types.

Definition at line 40 of file Id.h.

References IsType().

Here is the call graph for this function:

std::size_t stride::sim_event::ToSizeT ( Id  id)
inline

Cast to size_t for indexing.

Definition at line 46 of file Id.h.

References ToString(), and ToType().

Here is the call graph for this function: