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

Description:

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

Abstract base type to be used to implement custom sorting. One simple built-in descendant is provided with struct NameSorter.

Definition at line 95 of file stringtreeiterator.inl.

Public Method Index:

virtual ~Sorter ()=default
 Necessary virtual destructor.
 
virtual bool Compare (const StringTreeType::ConstCursor &lhs, const StringTreeType::ConstCursor &rhs)=0
 

Method Details:

◆ Compare()

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

Abstract method which needs to be implemented by descendants.

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

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