|
| iterator | begin () noexcept |
| | Returns an iterator pointing to the first element in the list.
|
| |
| iterator | end () noexcept |
| | Returns an iterator referring to the past-the-end element in the list.
|
| |
| const_iterator | begin () const noexcept |
| | Returns a const iterator pointing to the first element in the list.
|
| |
| const_iterator | end () const noexcept |
| | Returns a const iterator referring to the past-the-end element in the list.
|
| |
| const_iterator | cbegin () const noexcept |
| | Returns a const iterator pointing to the first element in the list.
|
| |
| const_iterator | cend () const noexcept |
| | Returns a const iterator referring to the past-the-end element in the list.
|
| |
| | NCollection_List () |
| | Empty constructor.
|
| |
| | NCollection_List (const occ::handle< NCollection_BaseAllocator > &theAllocator) |
| | Constructor.
|
| |
| | NCollection_List (const NCollection_List &theOther) |
| | Copy constructor.
|
| |
| | NCollection_List (NCollection_List &&theOther) noexcept |
| | Move constructor.
|
| |
| | NCollection_List (std::initializer_list< TheItemType > theInitList, const occ::handle< NCollection_BaseAllocator > &theAllocator=occ::handle< NCollection_BaseAllocator >()) |
| | Initializer list constructor.
|
| |
| NCollection_List & | Assign (const NCollection_List &theOther) |
| | Replace this list by the items of another list (theOther parameter). This method does not change the internal allocator.
|
| |
| NCollection_List & | operator= (const NCollection_List &theOther) |
| | Replacement operator.
|
| |
| NCollection_List & | operator= (NCollection_List &&theOther) noexcept |
| | Move operator.
|
| |
| void | Clear (const occ::handle< NCollection_BaseAllocator > &theAllocator=nullptr) |
| | Clear this list.
|
| |
| const TheItemType & | First () const |
| | First item.
|
| |
| TheItemType & | First () |
| | First item (non-const)
|
| |
| const TheItemType & | Last () const |
| | Last item.
|
| |
| TheItemType & | Last () |
| | Last item (non-const)
|
| |
| TheItemType & | Append (const TheItemType &theItem) |
| | Append one item at the end.
|
| |
| TheItemType & | Append (TheItemType &&theItem) |
| | Append one item at the end.
|
| |
| void | Append (const TheItemType &theItem, Iterator &theIter) |
| | Append one item at the end and output iterator pointing at the appended item.
|
| |
| void | Append (TheItemType &&theItem, Iterator &theIter) |
| | Append one item at the end and output iterator pointing at the appended item.
|
| |
| void | Append (NCollection_List &theOther) |
| | Append another list at the end. After this operation, theOther list will be cleared.
|
| |
| TheItemType & | Prepend (const TheItemType &theItem) |
| | Prepend one item at the beginning.
|
| |
| TheItemType & | Prepend (TheItemType &&theItem) |
| | Prepend one item at the beginning.
|
| |
| void | Prepend (NCollection_List &theOther) |
| | Prepend another list at the beginning.
|
| |
| void | RemoveFirst () |
| | RemoveFirst item.
|
| |
| void | Remove (Iterator &theIter) |
| | Remove item pointed by iterator theIter; theIter is then set to the next item.
|
| |
| template<typename TheValueType > |
| bool | Remove (const TheValueType &theObject) |
| | Remove the first occurrence of the object.
|
| |
| TheItemType & | InsertBefore (const TheItemType &theItem, Iterator &theIter) |
| | InsertBefore.
|
| |
| TheItemType & | InsertBefore (TheItemType &&theItem, Iterator &theIter) |
| | InsertBefore.
|
| |
| void | InsertBefore (NCollection_List &theOther, Iterator &theIter) |
| | InsertBefore.
|
| |
| TheItemType & | InsertAfter (const TheItemType &theItem, Iterator &theIter) |
| | InsertAfter.
|
| |
| TheItemType & | InsertAfter (TheItemType &&theItem, Iterator &theIter) |
| | InsertAfter.
|
| |
| void | InsertAfter (NCollection_List &theOther, Iterator &theIter) |
| | InsertAfter.
|
| |
| template<typename... Args> |
| TheItemType & | EmplaceAppend (Args &&... theArgs) |
| | Emplace one item at the end, constructing it in-place.
|
| |
| template<typename... Args> |
| TheItemType & | EmplacePrepend (Args &&... theArgs) |
| | Emplace one item at the beginning, constructing it in-place.
|
| |
| template<typename... Args> |
| TheItemType & | EmplaceBefore (Iterator &theIter, Args &&... theArgs) |
| | Emplace one item before the iterator position, constructing it in-place.
|
| |
| template<typename... Args> |
| TheItemType & | EmplaceAfter (Iterator &theIter, Args &&... theArgs) |
| | Emplace one item after the iterator position, constructing it in-place.
|
| |
| void | Reverse () noexcept |
| | Reverse the list.
|
| |
| void | Exchange (NCollection_List &theOther) noexcept |
| | Exchange the content of two lists without re-allocations. Swaps all internal state including allocators, ensuring correct deallocation. Existing iterators remain valid but will point to the other list's elements.
|
| |
| template<typename TheValueType > |
| bool | Contains (const TheValueType &theObject) const |
| | Return true if object is stored in the list.
|
| |
| | ~NCollection_List () override |
| | Destructor - clears the List.
|
| |
| int | Extent () const noexcept |
| |
| int | Length () const noexcept |
| | Length - number of nodes (legacy int-returning API, synonym of Extent()).
|
| |
| size_t | Size () const noexcept |
| | Size - number of nodes.
|
| |
| bool | IsEmpty () const noexcept |
| |
| const occ::handle< NCollection_BaseAllocator > & | Allocator () const noexcept |
| | Returns attached allocator.
|
| |
| virtual | ~NCollection_BaseList ()=default |
| |
Purpose: Simple list to link items together keeping the first and the last one. Inherits BaseList, adding the data item to each node.