Non-templated base class of StringTree::NodePtr.
Definition at line 458 of file stringtreebase.inl.
Public Fields | |
Node * | node |
StringTreeBase * | tree |
Public Methods | |
NodePtrBase () noexcept | |
NodePtrBase (const NodePtrBase &) noexcept=default | |
NodePtrBase (NodePtrBase &&) noexcept=default | |
NodePtrBase (StringTreeBase *pTree, Node *pNode) noexcept | |
~NodePtrBase () noexcept=default | |
Node * | followPath (SubstringType &path) |
template<typename... TArgs> | |
std::pair< Node *, integer > | followPathCreate (const NameType &path, TArgs &&... args) |
NodePtrBase & | operator= (const NodePtrBase &) noexcept=default |
NodePtrBase & | operator= (NodePtrBase &&) noexcept=default |
|
inlinenoexcept |
Constructor initializing both fields tree and node.
pTree | The StringTree we work on. |
pNode | The node to refer to. |
Definition at line 471 of file stringtreebase.inl.
|
inlinenoexcept |
Default constructor. Creates an invalid (uninitialized) object.
Definition at line 477 of file stringtreebase.inl.
|
defaultnoexcept |
Trivial default copy constructor.
|
defaultnoexcept |
Trivial default move constructor.
|
defaultnoexcept |
Trivial default destructor.
|
inline |
Finds a child node along the path given, but does not create new nodes. Incomplete results may occur if a child along the path was not found. In this case, parameter path contains the remaining path, excluding a leading separator.
A leading slash (aka TSeparator) allows absolute path addressing, which means the root of node is searched if a leading separator is found.
Besides normal child names, this method accepts
[in,out] | path | Creation path. Provided as reference and consumed as far as the path exits. |
Definition at line 518 of file stringtreebase.inl.
Follows the given path and creates non-existing children along the way.
Child names "."
and ".."
are allowed and respected same as in followPath.
New child nodes are constructed by forwarding the given args. Existing children remain untouched.
TArgs | Types of variadic parameters given with parameter args. |
path | The path to move along. |
args | Variadic parameters to be forwarded to constructor of each node that is created. |
std::pair
containing a resulting Node* and the number of nodes created. Definition at line 583 of file stringtreebase.inl.
|
defaultnoexcept |
Trivial default copy assign operator.
this
.
|
defaultnoexcept |
Trivial default move assign operator.
this
. Node* node |
The currently represented node of the tree.
Definition at line 464 of file stringtreebase.inl.
StringTreeBase* tree |
The StringTree this object refers to.
Definition at line 461 of file stringtreebase.inl.