82 bool has_key(
const std::string& key)
const 103 template<
typename T,
typename K>
106 std::map<variant,variant> tmp;
107 for(
const auto&
p : input_map) {
117 std::map<variant,variant> tmp;
118 for(
const auto& elem : input_set) {
128 std::vector<variant> tmp;
129 for(
const auto& elem : input_vector) {
130 tmp.emplace_back(elem);
138 inputs.emplace_back(key, access_type);
143 PLAIN_LOG <<
"ERROR: cannot set key '" << key <<
"' on object";
148 if(type_ < callable->
type_) {
152 if(type_ > callable->
type_) {
156 return this < callable ? -1 : (
this == callable ? 0 : 1);
163 throw type_error(
"Tried to serialize type which cannot be serialized");
199 variant var = main_.query_value(key);
201 return backup_.query_value(key);
209 main_.get_inputs(inputs);
210 backup_.get_inputs(inputs);
229 return backup_.query_value(key);
237 backup_.get_inputs(inputs);
255 values_[key] = value;
261 values_[key] = std::move(value);
270 bool empty()
const {
return values_.empty(); }
276 const_iterator
begin()
const {
return values_.begin(); }
277 const_iterator
end()
const {
return values_.end(); }
282 values_[key] = value;
287 auto it = values_.find(key);
288 if(it != values_.end()) {
303 for(
const auto&
i : values_) {
int main(int, char **argv)
std::vector< formula_input > formula_input_vector
std::shared_ptr< formula_callable > formula_callable_ptr
std::shared_ptr< const map_formula_callable > const_map_formula_callable_ptr
std::shared_ptr< const formula_callable > const_formula_callable_ptr
const formula_callable * fallback_
bool is_null() const
Functions to test the type of the internal value.
Standard logging facilities (interface).
variant get_member(const std::string &name) const
std::shared_ptr< map_formula_callable > map_formula_callable_ptr