Open CASCADE Technology 7.8.0
|
#include <NCollection_List.hxx>
Public Types | |
typedef TheItemType | value_type |
STL-compliant typedef for value type. | |
typedef NCollection_TListNode< TheItemType > | ListNode |
typedef NCollection_TListIterator< TheItemType > | Iterator |
typedef NCollection_StlIterator< std::forward_iterator_tag, Iterator, TheItemType, false > | iterator |
Shorthand for a regular iterator type. | |
typedef NCollection_StlIterator< std::forward_iterator_tag, Iterator, TheItemType, true > | const_iterator |
Shorthand for a constant iterator type. | |
Public Member Functions | |
iterator | begin () const |
Returns an iterator pointing to the first element in the list. | |
iterator | end () const |
Returns an iterator referring to the past-the-end element in the list. | |
const_iterator | cbegin () const |
Returns a const iterator pointing to the first element in the list. | |
const_iterator | cend () const |
Returns a const iterator referring to the past-the-end element in the list. | |
NCollection_List () | |
Empty constructor. | |
NCollection_List (const Handle< NCollection_BaseAllocator > &theAllocator) | |
Constructor. | |
NCollection_List (const NCollection_List &theOther) | |
Copy constructor. | |
NCollection_List (NCollection_List &&theOther) noexcept | |
Move constructor. | |
Standard_Integer | Size (void) const |
Size - Number of items. | |
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 Handle< NCollection_BaseAllocator > &theAllocator=0L) |
Clear this list. | |
const TheItemType & | First (void) const |
First item. | |
TheItemType & | First (void) |
First item (non-const) | |
const TheItemType & | Last (void) const |
Last item. | |
TheItemType & | Last (void) |
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 (void) |
RemoveFirst item. | |
void | Remove (Iterator &theIter) |
Remove item pointed by iterator theIter; theIter is then set to the next item. | |
template<typename TheValueType > | |
Standard_Boolean | 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. | |
void | Reverse () |
Reverse the list. | |
template<typename TheValueType > | |
Standard_Boolean | Contains (const TheValueType &theObject) const |
Return true if object is stored in the list. | |
virtual | ~NCollection_List (void) |
Destructor - clears the List. | |
Public Member Functions inherited from NCollection_BaseList | |
Standard_Integer | Extent (void) const |
Standard_Boolean | IsEmpty (void) const |
const Handle< NCollection_BaseAllocator > & | Allocator () const |
Returns attached allocator. | |
virtual | ~NCollection_BaseList (void) |
Purpose: Simple list to link items together keeping the first and the last one. Inherits BaseList, adding the data item to each node.
typedef NCollection_StlIterator<std::forward_iterator_tag, Iterator, TheItemType, true> NCollection_List< TheItemType >::const_iterator |
Shorthand for a constant iterator type.
typedef NCollection_TListIterator<TheItemType> NCollection_List< TheItemType >::Iterator |
typedef NCollection_StlIterator<std::forward_iterator_tag, Iterator, TheItemType, false> NCollection_List< TheItemType >::iterator |
Shorthand for a regular iterator type.
typedef NCollection_TListNode<TheItemType> NCollection_List< TheItemType >::ListNode |
typedef TheItemType NCollection_List< TheItemType >::value_type |
STL-compliant typedef for value type.
|
inline |
Empty constructor.
|
inlineexplicit |
Constructor.
|
inline |
Copy constructor.
|
inlinenoexcept |
Move constructor.
|
inlinevirtual |
Destructor - clears the List.
|
inline |
Append one item at the end.
|
inline |
Append one item at the end and output iterator pointing at the appended item.
|
inline |
Append another list at the end. After this operation, theOther list will be cleared.
|
inline |
Append one item at the end.
|
inline |
Append one item at the end and output iterator pointing at the appended item.
|
inline |
Replace this list by the items of another list (theOther parameter). This method does not change the internal allocator.
|
inline |
Returns an iterator pointing to the first element in the list.
|
inline |
Returns a const iterator pointing to the first element in the list.
|
inline |
Returns a const iterator referring to the past-the-end element in the list.
|
inline |
Clear this list.
|
inline |
Return true if object is stored in the list.
|
inline |
Returns an iterator referring to the past-the-end element in the list.
|
inline |
First item (non-const)
|
inline |
First item.
|
inline |
InsertAfter.
|
inline |
InsertAfter.
|
inline |
InsertAfter.
|
inline |
InsertBefore.
|
inline |
InsertBefore.
|
inline |
InsertBefore.
|
inline |
Last item (non-const)
|
inline |
Last item.
|
inline |
Replacement operator.
|
inlinenoexcept |
Move operator.
|
inline |
Prepend one item at the beginning.
|
inline |
Prepend another list at the beginning.
|
inline |
Prepend one item at the beginning.
|
inline |
Remove the first occurrence of the object.
|
inline |
Remove item pointed by iterator theIter; theIter is then set to the next item.
|
inline |
RemoveFirst item.
|
inline |
Reverse the list.
|
inline |
Size - Number of items.