Base struct of StringTree providing internals.
Definition at line 38 of file stringtreebase.inl.
Inner Type Index: | |
struct | Node |
struct | NodeBase |
struct | NodeKey |
union | RootNodeSpacer |
struct | TCursorBase |
Public Type Index: | |
using | CharacterType = typename TNodeHandler::CharacterType |
using | ConstCursorBase = TCursorBase<true> |
The constant version of type StringTreeBase::TCursorBase<TConst>. | |
using | CursorBase = TCursorBase<false> |
The mutable version of type StringTreeBase::TCursorBase<TConst>. | |
using | NameStorageType = typename TNodeHandler::NameStringType |
using | NameType = const strings::TString<CharacterType> |
The string-type of node names and paths if provided externally for comparison. | |
using | NodeList = lang::BidiListHook<NodeBase> |
Alias shortcut for a bidirectional list of Node elements. | |
using | SharedRecyclerType = typename decltype(nodeTable)::SharedRecyclerType |
using | SubstringType = typename strings::TSubstring<CharacterType> |
Public Field Index: | |
int | dbgRootDataSet = 0 |
HashTable< TAllocator, typename NodeKey::ValueDescriptor, typename NodeKey::Hash, typename NodeKey::EqualTo, lang::Caching::Enabled, TRecycling > | nodeTable |
RootNodeSpacer | root |
The root node. | |
CharacterType | separator |
Public Method Index: | |
StringTreeBase (TAllocator &allocator, CharacterType pathSeparator) | |
template<typename TSharedRecycler = SharedRecyclerType, ATMP_T_IF(int, !ATMP_EQ(TSharedRecycler, void)) = 0> | |
StringTreeBase (TAllocator &allocator, TSharedRecycler &pRecycler, CharacterType pathSeparator) | |
template<typename TSharedRecycler = SharedRecyclerType, ATMP_T_IF(int, !ATMP_EQ(TSharedRecycler, void)) = 0> | |
StringTreeBase (TSharedRecycler &pRecycler, CharacterType pathSeparator) | |
bool | checkChildName (const NameType &name) const |
TAllocator & | GetAllocator () noexcept |
using CharacterType = typename TNodeHandler::CharacterType |
The character type of node names and paths strings. This is defined using character type definition CharacterType of template type TNodeHandler.
Definition at line 52 of file stringtreebase.inl.
using ConstCursorBase = TCursorBase<true> |
The constant version of type StringTreeBase::TCursorBase<TConst>.
Definition at line 690 of file stringtreebase.inl.
using CursorBase = TCursorBase<false> |
The mutable version of type StringTreeBase::TCursorBase<TConst>.
Definition at line 687 of file stringtreebase.inl.
using NameStorageType = typename TNodeHandler::NameStringType |
The string-type of node names and paths. This is defined by NameStringType of template type TNodeHandler.
Definition at line 59 of file stringtreebase.inl.
using NameType = const strings::TString<CharacterType> |
The string-type of node names and paths if provided externally for comparison.
Definition at line 55 of file stringtreebase.inl.
using NodeList = lang::BidiListHook<NodeBase> |
Alias shortcut for a bidirectional list of Node elements.
Definition at line 47 of file stringtreebase.inl.
using SharedRecyclerType = typename decltype(nodeTable)::SharedRecyclerType |
This type definition may be used to define an externally managed shared recycler, which can be passed to the alternative constructor of this class when template parameter TRecycling equals Shared.
Definition at line 486 of file stringtreebase.inl.
using SubstringType = typename strings::TSubstring<CharacterType> |
The substring-type of paths. This is defined using character type definition CharacterType of template type TNodeHandler.
Definition at line 63 of file stringtreebase.inl.
int dbgRootDataSet = 0 |
Flag available only in debug-compilations to detect access to root node's value without prior use of method ConstructRootValue. Also, the destructor issues a warning, in case the root node's value was not deleted with DestructRootValue.
Definition at line 463 of file stringtreebase.inl.
HashTable< TAllocator, typename NodeKey::ValueDescriptor, typename NodeKey::Hash, typename NodeKey::EqualTo, lang::Caching::Enabled, TRecycling > nodeTable |
Hash set which contains all children of all nodes. This is used to find children of nodes by their parent/name combination.
Definition at line 478 of file stringtreebase.inl.
RootNodeSpacer root |
The root node.
Definition at line 456 of file stringtreebase.inl.
CharacterType separator |
The separator character to use with path strings. This is set once with construction.
Definition at line 469 of file stringtreebase.inl.
|
inline |
Constructor.
allocator | The monotonic allocator to use. |
pathSeparator | The separation character used with path strings. |
Definition at line 700 of file stringtreebase.inl.
|
inline |
Constructor taking a shared recycler.
allocator | The monotonic allocator to use. |
pRecycler | The shared recycler. |
pathSeparator | The separation character used with path strings. |
Definition at line 713 of file stringtreebase.inl.
|
inline |
Constructor taking a shared recycler.
pRecycler | The shared recycler. |
pathSeparator | The separation character used with path strings. |
Definition at line 725 of file stringtreebase.inl.
|
inline |
Simple helper method which checks a node name for not being "."
or ".."
and for not containing a separator character. In debug-compilations, if it does, an ALib warning is raised.
name | The child name to check. |
true
if the name is legal, false otherwise. Definition at line 739 of file stringtreebase.inl.
|
inlinenoexcept |
Definition at line 731 of file stringtreebase.inl.