|
AXOM
Axom provides a robust, flexible software infrastructure for the development of multi-physics applications and computational tools.
|
Helper for defining collections whose entries are selected from a finite set of user-defined struct types. More...
#include </home/docs/checkouts/readthedocs.org/user_builds/axom/checkouts/develop/src/axom/inlet/Container.hpp>
Public Member Functions | |
| template<typename Alternative , typename SchemaDefiner > | |
| VariantStructCollection & | addAlternative (const std::string &label, SchemaDefiner &&defineSchema) |
| Add a struct alternative to this variant collection. More... | |
| Container & | collection () |
| template<typename Alternative , typename SchemaDefiner > | |
| VariantStructCollection< Variant > & | addAlternative (const std::string &label, SchemaDefiner &&defineSchema) |
Friends | |
| class | Container |
Helper for defining collections whose entries are selected from a finite set of user-defined struct types.
| VariantStructCollection& axom::inlet::VariantStructCollection< Variant >::addAlternative | ( | const std::string & | label, |
| SchemaDefiner && | defineSchema | ||
| ) |
Add a struct alternative to this variant collection.
| [in] | label | Discriminator value selecting this alternative |
| [in] | defineSchema | Callable accepting a Container& and defining the schema for the selected alternative |
| Alternative | One of the types held by the Variant |
|
inline |
| VariantStructCollection<Variant>& axom::inlet::VariantStructCollection< Variant >::addAlternative | ( | const std::string & | label, |
| SchemaDefiner && | defineSchema | ||
| ) |
|
friend |