#include <core/Tree.hpp>
|
std::string | keyToStr (const K &Key) const |
|
template<typename K, typename V>
template<typename K, typename V>
template<typename K, typename V>
template<typename K, typename V>
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
-
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
-
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
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
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
-
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
-
template<typename K, typename V>
Returns a reference to the map of children of the current node
- Returns
- a map of children
template<typename K, typename V>
Returns a const reference to the map of children of the current node
- Returns
- a map of children
template<typename K, typename V>
Clears the tree determined by the current node
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 |
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
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
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
template<typename K, typename V>
Returns the value of the current tree node
- Returns
- the value associated to the node
- Exceptions
-
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
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
template<typename K, typename V>
Returns true if the node has a value
- Returns
- true if the node has a value, false otherwise
template<typename K, typename V>
template<typename K, typename V>
Sets the value of the current tree node
- Parameters
-
[in] | Val | the value of the node |
template<typename K, typename V>
Returns the size of the tree determined by the current node
- Returns
- the size of the tree
template<typename K, typename V>
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 |
template<typename K, typename V>
template<typename K, typename V>
template<typename K, typename V>
The documentation for this class was generated from the following file: