13 #include <unordered_map> 45 AnyValue& operator[](
const std::string& key);
47 bool hasKey(
const std::string& key)
const;
51 void setKey(
const std::string& key);
59 const std::type_info& type();
64 AnyValue& operator=(
const std::string& value);
65 AnyValue& operator=(
const char* value);
66 const std::string& asString()
const;
69 double asDouble()
const;
76 long int asInt()
const;
79 AnyValue& operator=(
const std::vector<T>& value);
81 const std::vector<T>& asVector()
const;
83 std::vector<T>& asVector();
89 AnyValue& operator=(
const std::unordered_map<std::string, T> items);
92 AnyValue& operator=(
const std::map<std::string, T> items);
95 std::map<std::string, T> asMap();
98 std::string demangle(
const std::type_info& type)
const;
101 std::unique_ptr<boost::any> m_value;
102 static std::map<std::string, std::string> s_typenames;
178 AnyValue& operator[](
const std::string& key);
180 AnyValue& at(
const std::string& key);
182 bool hasKey(
const std::string& key)
const;
185 std::unordered_map<std::string, AnyValue> m_data;
191 #ifndef CANTERA_API_NO_BOOST
A wrapper for a variable whose type is determined at runtime.
This file contains definitions of terms that are used in internal routines and are unlikely to need m...
This file contains definitions for utility functions and text for modules, inputfiles, logs, textlogs, (see Input File Handling, Diagnostic Output, and Writing messages to the screen).
A map of string keys to values whose type can vary at runtime.
Namespace for the Cantera kernel.
Definitions for the classes that are thrown when Cantera experiences an error condition (also contain...