Open CASCADE Technology
7.3.0
|
#include <ApproxInt_KnotTools.hxx>
Public Types | |
typedef TheItemType | value_type |
STL-compliant typedef for value type. More... | |
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. More... | |
typedef NCollection_StlIterator< std::forward_iterator_tag, Iterator, TheItemType, true > | const_iterator |
Shorthand for a constant iterator type. More... | |
Public Member Functions | |
iterator | begin () const |
Returns an iterator pointing to the first element in the list. More... | |
iterator | end () const |
Returns an iterator referring to the past-the-end element in the list. More... | |
const_iterator | cbegin () const |
Returns a const iterator pointing to the first element in the list. More... | |
const_iterator | cend () const |
Returns a const iterator referring to the past-the-end element in the list. More... | |
NCollection_List () | |
Empty constructor. More... | |
NCollection_List (const Handle< NCollection_BaseAllocator > &theAllocator) | |
Constructor. More... | |
NCollection_List (const NCollection_List &theOther) | |
Copy constructor. More... | |
Standard_Integer | Size (void) const |
Size - Number of items. More... | |
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. More... | |
NCollection_List & | operator= (const NCollection_List &theOther) |
Replacement operator. More... | |
void | Clear (const Handle< NCollection_BaseAllocator > &theAllocator=0L) |
Clear this list. More... | |
const TheItemType & | First (void) const |
First item. More... | |
TheItemType & | First (void) |
First item (non-const) More... | |
const TheItemType & | Last (void) const |
Last item. More... | |
TheItemType & | Last (void) |
Last item (non-const) More... | |
TheItemType & | Append (const TheItemType &theItem) |
Append one item at the end. More... | |
void | Append (const TheItemType &theItem, Iterator &theIter) |
Append one item at the end and output iterator pointing at the appended item. More... | |
void | Append (NCollection_List &theOther) |
Append another list at the end. More... | |
TheItemType & | Prepend (const TheItemType &theItem) |
Prepend one item at the beginning. More... | |
void | Prepend (NCollection_List &theOther) |
Prepend another list at the beginning. More... | |
void | RemoveFirst (void) |
RemoveFirst item. More... | |
void | Remove (Iterator &theIter) |
Remove item pointed by iterator theIter; theIter is then set to the next item. More... | |
template<typename TheValueType > | |
Standard_Boolean | Remove (const TheValueType &theObject) |
Remove the first occurrence of the object. More... | |
TheItemType & | InsertBefore (const TheItemType &theItem, Iterator &theIter) |
InsertBefore. More... | |
void | InsertBefore (NCollection_List &theOther, Iterator &theIter) |
InsertBefore. More... | |
TheItemType & | InsertAfter (const TheItemType &theItem, Iterator &theIter) |
InsertAfter. More... | |
void | InsertAfter (NCollection_List &theOther, Iterator &theIter) |
InsertAfter. More... | |
void | Reverse () |
Reverse the list. More... | |
template<typename TheValueType > | |
Standard_Boolean | Contains (const TheValueType &theObject) const |
Return true if object is stored in the list. More... | |
virtual | ~NCollection_List (void) |
Destructor - clears the List. More... | |
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. More... | |
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.
|
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.
|
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.
|
inline |
First item (non-const)
|
inline |
InsertAfter.
|
inline |
InsertAfter.
|
inline |
InsertBefore.
|
inline |
InsertBefore.
|
inline |
Last item.
|
inline |
Last item (non-const)
|
inline |
Replacement operator.
|
inline |
Prepend one item at the beginning.
|
inline |
Prepend another list at the beginning.
|
inline |
Remove item pointed by iterator theIter; theIter is then set to the next item.
|
inline |
Remove the first occurrence of the object.
|
inline |
RemoveFirst item.
|
inline |
Reverse the list.
|
inline |
Size - Number of items.