40 inline constexpr
unsigned int NumOfTypes() {
return 5U; }
43 bool IsType(
const std::string& s);
46 inline std::size_t
ToSizeT(
Id id) {
return static_cast<std::size_t
>(id); }
std::size_t ToSizeT(Id id)
Cast to size_t for indexing.
Id ToType(const string &s)
Converts a string with name to Id.
string ToString(Id c)
Converts a ContactPoolType::Id value to corresponding name.
bool IsType(const string &s)
Check whether string is name of a ContactPoolType::Id.
constexpr unsigned int NumOfTypes()
Number of ContactPool types.
Namespace for the simulator and related classes.