Lines Matching +full:- +full:- +full:with +full:- +full:config

4 // Redistribution and use in source and binary forms, with or without
12 // documentation and/or other materials provided with the distribution.
29 #include "utils/config/nodes.ipp"
35 #include "utils/config/exceptions.hpp"
36 #include "utils/config/keys.hpp"
39 namespace config = utils::config;
43 config::detail::base_node::~base_node(void) in ~base_node()
51 config::detail::inner_node::inner_node(const bool dynamic_) : in inner_node()
58 config::detail::inner_node::~inner_node(void) in ~inner_node()
66 /// Fills the given node with a copy of this node's data.
71 config::detail::inner_node::copy_into(inner_node* node) const in copy_into()
73 node->_dynamic = _dynamic; in copy_into()
76 base_node* new_node = (*iter).second->deep_copy(); in copy_into()
78 node->_children[(*iter).first] = new_node; in copy_into()
100 config::detail::inner_node::combine_children_into( in combine_children_into()
109 if (node->_children.find(name) != node->_children.end()) { in combine_children_into()
117 new_node.reset((*iter1).second->deep_copy()); in combine_children_into()
121 new_node.reset((*iter1).second->combine(child_key, in combine_children_into()
125 node->_children[name] = new_node.release(); in combine_children_into()
130 /// Combines this inner node with another inner node onto a new node.
136 /// \param other_base The node to combine with.
141 config::detail::inner_node::combine_into(const tree_key& key, in combine_into()
149 node->_dynamic = _dynamic || other._dynamic; in combine_into()
154 throw config::bad_combination_error( in combine_into()
174 const config::detail::base_node*
175 config::detail::inner_node::lookup_ro(const tree_key& key, in lookup_ro()
185 if (key_pos == key.size() - 1) { in lookup_ro()
188 PRE(key_pos < key.size() - 1); in lookup_ro()
205 /// of dynamic inner nodes). The returned node is non-constant, so this can be
219 config::leaf_node*
220 config::detail::inner_node::lookup_rw(const tree_key& key, in lookup_rw()
229 base_node* const child = (key_pos == key.size() - 1) ? in lookup_rw()
239 if (key_pos == key.size() - 1) { in lookup_rw()
248 PRE(key_pos < key.size() - 1); in lookup_rw()
267 config::detail::inner_node::all_properties(properties_map& properties, in all_properties()
287 config::detail::static_inner_node::static_inner_node(void) : in static_inner_node()
295 /// \return A dynamically-allocated node.
296 config::detail::base_node*
297 config::detail::static_inner_node::deep_copy(void) const in deep_copy()
305 /// Combines this node with another one.
308 /// \param other The node to combine with.
313 config::detail::base_node*
314 config::detail::static_inner_node::combine(const tree_key& key, in combine()
326 /// tree-related issues. The reasons is that define() is a method that does not
327 /// depend on user input: it is intended to pre-populate the tree with a
335 config::detail::static_inner_node::define(const tree_key& key, in define()
341 if (key_pos == key.size() - 1) { in define()
346 PRE(key_pos < key.size() - 1); in define()
353 child_ptr->define(key, key_pos + 1, new_node); in define()
368 config::detail::dynamic_inner_node::dynamic_inner_node(void) : in dynamic_inner_node()
376 /// \return A dynamically-allocated node.
377 config::detail::base_node*
378 config::detail::dynamic_inner_node::deep_copy(void) const in deep_copy()
386 /// Combines this node with another one.
389 /// \param other The node to combine with.
394 config::detail::base_node*
395 config::detail::dynamic_inner_node::combine(const tree_key& key, in combine()
405 config::leaf_node::~leaf_node(void) in ~leaf_node()
410 /// Combines this node with another one.
413 /// \param other_base The node to combine with.
418 config::detail::base_node*
419 config::leaf_node::combine(const detail::tree_key& key, in combine()
431 throw config::bad_combination_error( in combine()
440 /// \return A dynamically-allocated node.
441 config::detail::base_node*
442 config::bool_node::deep_copy(void) const in deep_copy()
445 new_node->_value = _value; in deep_copy()
454 config::bool_node::push_lua(lutok::state& state) const in push_lua()
468 config::bool_node::set_lua(lutok::state& state, const int value_index) in set_lua()
479 /// \return A dynamically-allocated node.
480 config::detail::base_node*
481 config::int_node::deep_copy(void) const in deep_copy()
484 new_node->_value = _value; in deep_copy()
493 config::int_node::push_lua(lutok::state& state) const in push_lua()
507 config::int_node::set_lua(lutok::state& state, const int value_index) in set_lua()
522 config::positive_int_node::validate(const value_type& new_value) const in validate()
531 /// \return A dynamically-allocated node.
532 config::detail::base_node*
533 config::string_node::deep_copy(void) const in deep_copy()
536 new_node->_value = _value; in deep_copy()
545 config::string_node::push_lua(lutok::state& state) const in push_lua()
559 config::string_node::set_lua(lutok::state& state, const int value_index) in set_lua()
570 /// \return A dynamically-allocated node.
571 config::detail::base_node*
572 config::strings_set_node::deep_copy(void) const in deep_copy()
575 new_node->_value = _value; in deep_copy()
586 config::strings_set_node::parse_one(const std::string& raw_value) const in parse_one()