ALib C++ Library
Library Version: 2511 R0
Documentation generated by doxygen
Loading...
Searching...
No Matches
alib::containers::StringTreeIterator< TStringTree >::NameSorter Struct Reference

Description:

template<typename TStringTree>
struct alib::containers::StringTreeIterator< TStringTree >::NameSorter

Built-in descendant of struct Sorter used to perform simple sorting based on the name of StringTree-nodes.

Definition at line 110 of file stringtreeiterator.inl.

Inheritance diagram for alib::containers::StringTreeIterator< TStringTree >::NameSorter:
[legend]
Collaboration diagram for alib::containers::StringTreeIterator< TStringTree >::NameSorter:
[legend]

Public Field Index:

bool CaseSensitive =false
 Unless changed by the caller, this is copied with every recursion step.
 
bool Descending =false
 Unless changed by the caller, this is copied with every recursion step.
 

Public Method Index:

bool Compare (const StringTreeType::ConstCursor &lhs, const StringTreeType::ConstCursor &rhs) override
 

Field Details:

◆ CaseSensitive

template<typename TStringTree>
bool alib::containers::StringTreeIterator< TStringTree >::NameSorter::CaseSensitive =false

Unless changed by the caller, this is copied with every recursion step.

Definition at line 115 of file stringtreeiterator.inl.

◆ Descending

template<typename TStringTree>
bool alib::containers::StringTreeIterator< TStringTree >::NameSorter::Descending =false

Unless changed by the caller, this is copied with every recursion step.

Definition at line 112 of file stringtreeiterator.inl.

Method Details:

◆ Compare()

template<typename TStringTree>
bool alib::containers::StringTreeIterator< TStringTree >::NameSorter::Compare ( const StringTreeType::ConstCursor & lhs,
const StringTreeType::ConstCursor & rhs )
inlineoverride

Implementation of the abstract method. Compares the names of the nodes using the string method alib::strings::TString;CompareTo;String;CompareTo "strings::TString;CompareTo;String;CompareTo".

Parameters
lhsThe left-hand side cursor to the node to compare.
rhsThe right-hand side cursor to the node to compare.
Returns
Returns true if lhs is 'smaller' than rhs, and false otherwise.

Definition at line 122 of file stringtreeiterator.inl.


The documentation for this struct was generated from the following file: