Stride Reference Manual
- generated for commit 9643b11
|
Definition of ContactPool Id Type. More...
#include <cstdint>
#include <iostream>
#include <iterator>
#include <string>
#include <vector>
Go to the source code of this file.
Classes | |
struct | stride::ContactType::IDPack< ids > |
Keeps all available Ids in a template pack and exposes it as a std::initialize_list Useful when initializing a IdSubscriptArray with a type that is not default constructible. More... | |
Namespaces | |
stride | |
Namespace for the simulator and related classes. | |
stride::ContactType | |
Namespace to manage types of ContactPool. | |
Typedefs | |
using | stride::ContactType::IdPack_t = IDPack< Id::Household, Id::K12School, Id::College, Id::Workplace, Id::PrimaryCommunity, Id::SecondaryCommunity > |
Placed separately to please swig and avoid syntax errors there. More... | |
Enumerations | |
enum | stride::ContactType::Id : unsigned int { stride::ContactType::Id::Household = static_cast<unsigned int>(0), stride::ContactType::Id::K12School, stride::ContactType::Id::College, stride::ContactType::Id::Workplace, stride::ContactType::Id::PrimaryCommunity, stride::ContactType::Id::SecondaryCommunity } |
Enumerates the ContactPool types. More... | |
Functions | |
constexpr unsigned int | stride::ContactType::NumOfTypes () |
Number of ContactPool types. More... | |
bool | stride::ContactType::IsId (const std::string &s) |
Check whether string is name of a ContactPoolType::Id. More... | |
Id | stride::ContactType::ToId (const std::string &s) |
Converts a string with name to Id. More... | |
constexpr std::size_t | stride::ContactType::ToSizeT (Id id) |
Cast to size_t for indexing. More... | |
string | stride::ContactType::ToString (Id w) |
Converts a ContactPoolType::Id value to corresponding name. More... | |
Variables | |
constexpr IdPack_t | stride::ContactType::IdPack |
A constexpr global variable that gives access to the available Ids. More... | |
constexpr std::initializer_list< Id > | stride::ContactType::IdList = IdPack_t::AsInitializerList |
To allow iteration over the type ids. More... | |
Definition of ContactPool Id Type.
Definition in file ContactType.h.