27#include "neml2/base/OptionSet.h"
28#include "neml2/base/Settings.h"
50 operator std::map<std::string, std::map<std::string, OptionSet>>()
const {
return _data; }
53 std::map<std::string, OptionSet> &
operator[](
const std::string & section);
56 const std::map<std::string, OptionSet> &
operator[](
const std::string & section)
const;
59 const std::map<std::string, std::map<std::string, OptionSet>> &
data()
const {
return _data; }
66 std::map<std::string, std::map<std::string, OptionSet>> _data;
69std::ostream &
operator<<(std::ostream & os,
const OptionCollection & p);
A data structure that holds options of multiple objects.
Definition OptionCollection.h:39
const OptionSet & settings() const
Get global settings.
Definition OptionCollection.h:47
const std::map< std::string, std::map< std::string, OptionSet > > & data() const
Get a read-only reference to the underlying data structure.
Definition OptionCollection.h:59
OptionCollection()=default
OptionSet & settings()
Get global settings.
Definition OptionCollection.h:44
std::map< std::string, OptionSet > & operator[](const std::string §ion)
Get all the object options under a specific section.
Definition OptionCollection.cxx:30
A custom map-like data structure. The keys are strings, and the values can be nonhomogeneously typed.
Definition OptionSet.h:100
static OptionSet expected_options()
Definition Settings.cxx:33
Definition CrossRef.cxx:30
std::ostream & operator<<(std::ostream &os, const EnumSelection &es)
Definition EnumSelection.cxx:31