Value type for internal container. More...
#include <kanzi/core/cpp/indexed_list.hpp>
Public Member Functions | |
| element_type (const element_type &other)=default | |
| Default copy constructor. | |
| element_type (const T &value, size_t prevIndex, size_t indexInSortingOrder) | |
| Constructor. | |
| element_type (const T &value, size_t prevIndex, size_t nextIndex, size_t indexInSortingOrder) | |
| Constructor. | |
| element_type (element_type &&other)=default | |
| Default move constructor. | |
| element_type (T &&value, size_t prevIndex, size_t indexInSortingOrder) | |
| Constructor. | |
| element_type (T &&value, size_t prevIndex, size_t nextIndex, size_t indexInSortingOrder) | |
| Constructor. | |
| size_t | getIndexInSortedOrder () const |
| Gets the index in sorting list. | |
| size_t | getNextIndex () const |
| Gets the next index. | |
| size_t | getPrevIndex () const |
| Gets the previous index. | |
| T & | operator* () |
| Dereference operator. | |
| const T & | operator* () const |
| Const dereference operator. | |
| element_type & | operator= (const element_type &other)=default |
| Default copy operator. | |
| element_type & | operator= (element_type &&other)=default |
| Default move operator. | |
| void | setIndexInSortedOrder (size_t indexInSortedOrder) |
| Sets the index in sorting list. | |
| void | setNextIndex (size_t nextIndex) |
| Sets the next index. | |
| void | setPrevIndex (size_t prevIndex) |
| Sets the previous index. | |
Protected Attributes | |
| size_t | m_indexInSortedOrder |
| Index where this element is referred to in the sorting list. | |
| size_t | m_nextIndex |
| Next element (index). | |
| size_t | m_prevIndex |
| Previous element (index). | |
| T | m_value |
| Contained value. | |
|
inline |
Constructor.
Next index is initialized at invalid.
| value | Value to contain. |
| prevIndex | Previous index. |
| indexInSortingOrder | Index in the sorting with reference to this item. |
|
inline |
Constructor.
Next index is initialized at invalid.
| value | Value to contain. |
| prevIndex | Previous index. |
| indexInSortingOrder | Index in the sorting with reference to this item. |
|
inline |
Constructor.
| value | Value to contain. |
| prevIndex | Previous index. |
| nextIndex | Next index. |
| indexInSortingOrder | Index in the sorting with reference to this item. |
|
inline |
Constructor.
| value | Value to contain. |
| prevIndex | Previous index. |
| nextIndex | Next index. |
| indexInSortingOrder | Index in the sorting with reference to this item. |
|
default |
Default copy constructor.
| other | Source element. |
|
default |
Default move constructor.
| other | Source element. |
|
default |
Default copy operator.
| other | Source element. |
|
default |
Default move operator.
| other | Source element. |
|
inline |
Gets the previous index.
|
inline |
Sets the previous index.
| prevIndex | Previous index for the element. |
|
inline |
Gets the next index.
|
inline |
Sets the next index.
| nextIndex | Next index for the element. |
|
inline |
Gets the index in sorting list.
|
inline |
Sets the index in sorting list.
| indexInSortedOrder | New index in the sorting array. |
|
inline |
Dereference operator.
Const dereference operator.
|
protected |
Contained value.
|
protected |
Previous element (index).
|
protected |
Next element (index).
|
protected |
Index where this element is referred to in the sorting list.
Required for maintaining state without lookup from the sorting list.