#include <core/Tree.hpp>
|
std::string | keyToStr (const K &Key) const |
|
◆ Children_t
template<typename K , typename V >
◆ const_iterator
template<typename K , typename V >
◆ iterator
template<typename K , typename V >
◆ Tree()
template<typename K , typename V >
◆ addChild() [1/2]
template<typename K , typename V >
Adds a child to the current node, identified by its key and with no value
- Parameters
-
[in] | Key | the key of the child node |
- Returns
- the reference to the added child node
- Exceptions
-
◆ addChild() [2/2]
template<typename K , typename V >
Adds a child to the current node, identified by its key and with the given value
- Parameters
-
[in] | Key | the key of the child node |
[in] | Val | the value of the child node |
- Returns
- the reference to the added child node
- Exceptions
-
◆ begin() [1/2]
template<typename K , typename V >
Returns an iterator referring to the first element of the children map
- Returns
- an iterator to the first element in the children map
◆ begin() [2/2]
template<typename K , typename V >
Returns a const iterator referring to the first element of the children map
- Returns
- a const iterator to the first element in the children map
◆ child() [1/2]
template<typename K , typename V >
Returns a reference to the child of the current node, identified by its key
- Parameters
-
[in] | Key | the key of the child node |
- Returns
- the reference to the child node
- Exceptions
-
◆ child() [2/2]
template<typename K , typename V >
Returns a const reference to the child of the current node, identified by its key
- Parameters
-
[in] | Key | the key of the child node |
- Returns
- the reference to the child node
- Exceptions
-
◆ children() [1/2]
template<typename K , typename V >
Returns a reference to the map of children of the current node
- Returns
- a map of children
◆ children() [2/2]
template<typename K , typename V >
Returns a const reference to the map of children of the current node
- Returns
- a map of children
◆ clear()
template<typename K , typename V >
Clears the tree determined by the current node
◆ deleteChild()
template<typename K , typename V >
Deletes a child of the current node, identified by its key and with no value
- Parameters
-
[in] | Key | the key of the child node to delete |
◆ end() [1/2]
template<typename K , typename V >
Returns an iterator referring to the past-the-end element of the children map
- Returns
- an iterator to the past-the-end element of the children map
◆ end() [2/2]
template<typename K , typename V >
Returns a const iterator referring to the past-the-end element of the children map
- Returns
- a const iterator to the past-the-end element of the children map
◆ getChildValue()
template<typename K , typename V >
Returns the value of the child of the current node, identified by its key. If the child node does not have a value, the given default value is returned
- Parameters
-
[in] | Key | the key of the child node |
[in] | DefaultVal | the default value |
- Returns
- the value of the child node or the default value
◆ getValue() [1/2]
template<typename K , typename V >
Returns the value of the current tree node
- Returns
- the value associated to the node
- Exceptions
-
◆ getValue() [2/2]
template<typename K , typename V >
Returns the value of the current tree node, or a default value if the node does not have a value
- Parameters
-
[in] | DefaultVal | the default value |
- Returns
- the value associated to the node or the default value
◆ hasChild()
template<typename K , typename V >
Returns true if the current node has a child identified by the given key
- Returns
- true if the child node has been found, false otherwise
◆ hasValue()
template<typename K , typename V >
Returns true if the node has a value
- Returns
- true if the node has a value, false otherwise
◆ keyToStr()
template<typename K , typename V >
◆ setValue()
template<typename K , typename V >
Sets the value of the current tree node
- Parameters
-
[in] | Val | the value of the node |
◆ size()
template<typename K , typename V >
Returns the size of the tree determined by the current node
- Returns
- the size of the tree
◆ writeToStreamFlat()
template<typename K , typename V >
◆ writeToStreamHierarchically()
template<typename K , typename V >
void openfluid::core::Tree< K, V >::writeToStreamHierarchically |
( |
std::ostream & |
OutStm, |
|
|
unsigned int |
Indent = 0 |
|
) |
| const |
|
inline |
Writes hierarchically the tree determined by the current node into the given stream, using the given indentation
- Parameters
-
[in] | OutStm | the output stream to write into |
[in] | Indent | the indent value for children nodes |
◆ m_Children
template<typename K , typename V >
◆ m_HasValue
template<typename K , typename V >
◆ m_Value
template<typename K , typename V >
The documentation for this class was generated from the following file: