|
HikoGUI
A low latency retained GUI
|
#include <hikogui/tree.hpp>
Public Types | |
| using | key_type = Key |
| using | value_type = T |
Public Member Functions | |
| constexpr | tree (tree const &) noexcept=default |
| constexpr | tree (tree &&) noexcept=default |
| constexpr tree & | operator= (tree const &) noexcept=default |
| constexpr tree & | operator= (tree &&) noexcept=default |
| value_type & | operator() (auto path_first, auto path_last) noexcept |
| Find or create the node and return the value of the node. | |
| value_type const & | operator() (auto path_first, auto path_last) const noexcept |
| Find the node and return the value of the node. | |
| value_type & | operator[] (auto const &key) noexcept |
| Find or create the node and return the value of the node. | |
| value_type const & | operator[] (auto const &path) const noexcept |
| Find the node and return the value of the node. | |
| void | walk (auto path_first, auto path_last, auto &&func) noexcept |
| void | walk (auto path_first, auto path_last, auto &&func) const noexcept |
| void | walk (auto const &key, auto &&func) noexcept |
| void | walk (auto const &key, auto &&func) const noexcept |
| void | walk_including_path (auto path_first, auto path_last, auto const &func) noexcept |
| Walk the tree starting at path, and also for each node along the path. | |
| void | walk_including_path (auto path_first, auto path_last, auto const &func) const noexcept |
| Walk the tree starting at path, and also for each node along the path. | |
| void | walk_including_path (auto const &path, auto &&func) noexcept |
| Walk the tree starting at path, and also for each node along the path. | |
| void | walk_including_path (auto const &path, auto &&func) const noexcept |
| Walk the tree starting at path, and also for each node along the path. | |
| void | walk (auto &&func) noexcept |
| Walk the full tree. | |
| void | walk (auto &&func) const noexcept |
| Walk the full tree. | |
A tree container.
| Key | They key type to index into each level of the tree. |
| T | The value that is stored into each node. |
| Compare | The comparison to use with the key used in std::map. |
|
inlinenoexcept |
Find the node and return the value of the node.
XXX c++23 multiple argument index operator
| path_first | The iterator to the first element of the path of the node to get the value of. |
| path_last | The iterator beyond the last element of the path of the node to get the value of. |
|
inlinenoexcept |
Find or create the node and return the value of the node.
XXX c++23 multiple argument index operator
| path_first | The iterator to the first element of the path of the node to get the value of. |
| path_last | The iterator beyond the last element of the path of the node to get the value of. |
|
inlinenoexcept |
Find or create the node and return the value of the node.
| key | The path of the node to get the value of. |
|
inlinenoexcept |
Find the node and return the value of the node.
| path | The path of the node to get the value of. |
Walk the full tree.
| func | The function (value_type const &) -> void to call for each node in the tree. |
Walk the full tree.
| func | The function (value_type &) -> void to call for each node in the tree. |
|
inlinenoexcept |
Walk the tree starting at path, and also for each node along the path.
| path | The path (range) of the node to start walking. |
| func | The function (value_type const &) -> void to call on each child node recursively at the start of the path, and along the nodes of the path. |
|
inlinenoexcept |
Walk the tree starting at path, and also for each node along the path.
| path | The path (range) of the node to start walking. |
| func | The function (value_type &) -> void to call on each child node recursively at the start of the path, and along the nodes of the path. |
|
inlinenoexcept |
Walk the tree starting at path, and also for each node along the path.
| path_first | The iterator pointing to the first element of the path; of the node to start walking. |
| path_last | The iterator pointing beyond the last element of the path. |
| func | The function (value_type const &) -> void to call on each child node recursively at the start of the path, and along the nodes of the path. |
|
inlinenoexcept |
Walk the tree starting at path, and also for each node along the path.
| path_first | The iterator pointing to the first element of the path; of the node to start walking. |
| path_last | The iterator pointing beyond the last element of the path. |
| func | The function (value_type &) -> void to call on each child node recursively at the start of the path, and along the nodes of the path. |