|
NEML2 2.0.0
|
A data structure that holds options of multiple objects. More...
A data structure that holds options of multiple objects.
#include <InputFile.h>
Public Member Functions | |
| InputFile (const OptionSet &settings) | |
| const std::shared_ptr< Settings > & | settings () const |
| Get global settings. | |
| std::map< std::string, OptionSet > & | operator[] (const std::string §ion) |
| Get all the object options under a specific section. | |
| const std::map< std::string, OptionSet > & | operator[] (const std::string §ion) const |
| Get all the object options under a specific section. | |
| const std::map< std::string, std::map< std::string, OptionSet > > & | data () const |
|
inline |
A two layer map, where the first layer key is the section name, e.g.Models, Tensors, Drivers, etc., and the second layer key is the object name.
| std::map< std::string, OptionSet > & operator[] | ( | const std::string & | section | ) |
Get all the object options under a specific section.
| const std::map< std::string, OptionSet > & operator[] | ( | const std::string & | section | ) | const |
Get all the object options under a specific section.
|
inline |
Get global settings.