A node in a string tree.
More...
#include <StringTree.h>
◆ StringTreeNode()
spatium::idx::StringTreeNode::StringTreeNode |
( |
const std::string & |
str, |
|
|
const std::weak_ptr< StringTreeNode > & |
parent = std::weak_ptr<StringTreeNode>() |
|
) |
| |
|
inline |
Constructor.
- Parameters
-
[in] | Parent | node (unset for root node) |
◆ addChild()
std::shared_ptr<StringTreeNode> spatium::idx::StringTreeNode::addChild |
( |
const std::shared_ptr< StringTreeNode > & |
parentSharedPtr, |
|
|
const std::string & |
str |
|
) |
| |
|
inline |
Add child node.
- Parameters
-
[in] | parentSharedPtr | Parent node (this object) as shared pointer. |
[in] | str | String value |
- Returns
- Created child node
◆ setString()
void spatium::idx::StringTreeNode::setString |
( |
const std::string & |
str | ) |
|
|
inline |
◆ str()
std::string spatium::idx::StringTreeNode::str |
( |
| ) |
const |
|
inline |
◆ m_str
std::string spatium::idx::StringTreeNode::m_str |
|
protected |
The documentation for this class was generated from the following file:
- /home/martijn/Development/Projects/SpatiumLib/include/spatium/idx/StringTree.h