Inherits ReferenceCountedObject.
◆ ListImpl() [1/2]
template<class TYPE >
List< TYPE >::ListImpl::ListImpl |
( |
| ) |
|
|
inlinenoexcept |
Initializes an empty list.
◆ ListImpl() [2/2]
Initializes list from other list.
◆ ~ListImpl()
template<class TYPE >
List< TYPE >::ListImpl::~ListImpl |
( |
| ) |
|
|
inline |
◆ append() [1/2]
template<class TYPE >
void List< TYPE >::ListImpl::append |
( |
const TYPE & |
value | ) |
|
|
inline |
Appends the value to the end of this list.
◆ append() [2/2]
template<class TYPE >
void List< TYPE >::ListImpl::append |
( |
TYPE && |
value | ) |
|
|
inline |
Appends the value to the end of this list.
◆ detachNode()
Detaches the specified node from this list.
- Parameters
-
node | The node to be detached. Must not be nullptr. |
◆ getFirst() [1/2]
template<class TYPE >
const Node* List< TYPE >::ListImpl::getFirst |
( |
| ) |
const |
|
inlinenoexcept |
Returns the first node of the list.
◆ getFirst() [2/2]
template<class TYPE >
Node* List< TYPE >::ListImpl::getFirst |
( |
| ) |
|
|
inlinenoexcept |
Returns the first node of the list.
◆ getLast() [1/2]
template<class TYPE >
const Node* List< TYPE >::ListImpl::getLast |
( |
| ) |
const |
|
inlinenoexcept |
Returns the last node of the list.
◆ getLast() [2/2]
template<class TYPE >
Node* List< TYPE >::ListImpl::getLast |
( |
| ) |
|
|
inlinenoexcept |
Returns the last node of the list.
◆ getSize()
template<class TYPE >
MemorySize List< TYPE >::ListImpl::getSize |
( |
| ) |
const |
|
inlinenoexcept |
Returns the number of elements of the list.
◆ insert() [1/2]
template<class TYPE >
Node* List< TYPE >::ListImpl::insert |
( |
Node * |
node, |
|
|
const TYPE & |
value |
|
) |
| |
|
inline |
Inserts the value at the specified node of this list.
- Parameters
-
node | Node specifying the position. Must not be nullptr. |
value | The value to be inserted. |
◆ insert() [2/2]
template<class TYPE >
Node* List< TYPE >::ListImpl::insert |
( |
Node * |
node, |
|
|
TYPE && |
value |
|
) |
| |
|
inline |
Inserts the value at the specified node of this list.
- Parameters
-
node | Node specifying the position. Must not be nullptr. |
value | The value to be inserted. |
◆ moveToBack()
template<class TYPE >
void List< TYPE >::ListImpl::moveToBack |
( |
Node * |
node | ) |
|
|
inline |
Moves the node to the back.
◆ moveToFront()
template<class TYPE >
void List< TYPE >::ListImpl::moveToFront |
( |
Node * |
node | ) |
|
|
inline |
Moves the node to the front.
◆ prepend() [1/2]
template<class TYPE >
void List< TYPE >::ListImpl::prepend |
( |
const TYPE & |
value | ) |
|
|
inline |
Prepends the value to the beginning of this list.
◆ prepend() [2/2]
template<class TYPE >
void List< TYPE >::ListImpl::prepend |
( |
TYPE && |
value | ) |
|
|
inline |
Prepends the value to the beginning of this list.
◆ remove()
template<class TYPE >
void List< TYPE >::ListImpl::remove |
( |
Node * |
node | ) |
|
|
inline |
Removes the specified node from this list.
- Parameters
-
node | The node to be removed. Must not be nullptr. |
◆ removeFirst()
template<class TYPE >
void List< TYPE >::ListImpl::removeFirst |
( |
| ) |
|
|
inline |
Removes this first node of this list.
◆ removeLast()
template<class TYPE >
void List< TYPE >::ListImpl::removeLast |
( |
| ) |
|
|
inline |
Removes the last node of this list.