Sorting value type.
More...
#include <kanzi/core/cpp/indexed_list.hpp>
template<
typename T>
class kanzi::indexed_list< T >::sorting_type
Sorting value type.
◆ sorting_type() [1/4]
◆ sorting_type() [2/4]
Constructor.
- Parameters
-
| host | Host container. |
| indexInSortingList | Index in the sorting list. |
| referredIndex | Referred index for the actual sorting. |
◆ sorting_type() [3/4]
Copy constructor.
Maintains indexing state both in sorting and element list.
- Parameters
-
◆ sorting_type() [4/4]
Move constructor.
Maintains indexing state both in sorting and element list.
- Parameters
-
◆ operator=() [1/2]
Copy operator.
Maintains indexing state both in sorting and element list.
- Parameters
-
◆ operator=() [2/2]
Move operator.
Maintains indexing state both in sorting and element list.
- Parameters
-
◆ setHost()
Replace the host.
Used when the whole indexed list has been copied or moved.
- Parameters
-
◆ getIndexInSortedOrder()
Gets the referred index.
- Returns
- Referred index.
◆ getReferredIndex()
Gets the referred index.
- Returns
- Referred index.
◆ setReferredIndex()
Sets the index referred to.
- Parameters
-
◆ operator*() [1/2]
Dereference operator.
- Returns
- Reference to contained value.
◆ operator*() [2/2]
Const dereference operator.
- Returns
- Const reference to contained value.
◆ m_host
Pointer to host.
This pointer being needed may seem crazy, but the sorting process maintains order by calling move() on the sorted elements, so the pointer to the structure itself is required to maintain state.
◆ m_indexInSortingList
Index of this element in the sorting list itself.
Required to maintain correct back referencing from the value list.
◆ m_referredIndex
The documentation for this class was generated from the following file: