Open CASCADE Technology 7.7.2
|
#include <NCollection_Sequence.hxx>
Data Structures | |
class | Iterator |
Implementation of the Iterator interface. More... | |
class | Node |
Class defining sequence node - for internal use by Sequence. More... | |
Public Types | |
typedef TheItemType | value_type |
STL-compliant typedef for value type. | |
typedef NCollection_StlIterator< std::bidirectional_iterator_tag, Iterator, TheItemType, false > | iterator |
Shorthand for a regular iterator type. | |
typedef NCollection_StlIterator< std::bidirectional_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 sequence. | |
iterator | end () const |
Returns an iterator referring to the past-the-end element in the sequence. | |
const_iterator | cbegin () const |
Returns a const iterator pointing to the first element in the sequence. | |
const_iterator | cend () const |
Returns a const iterator referring to the past-the-end element in the sequence. | |
NCollection_Sequence () | |
Empty constructor. | |
NCollection_Sequence (const Handle< NCollection_BaseAllocator > &theAllocator) | |
Constructor. | |
NCollection_Sequence (const NCollection_Sequence &theOther) | |
Copy constructor. | |
Standard_Integer | Size (void) const |
Number of items. | |
Standard_Integer | Length (void) const |
Number of items. | |
Standard_Integer | Lower () const |
Method for consistency with other collections. | |
Standard_Integer | Upper () const |
Method for consistency with other collections. | |
Standard_Boolean | IsEmpty (void) const |
Empty query. | |
void | Reverse (void) |
Reverse sequence. | |
void | Exchange (const Standard_Integer I, const Standard_Integer J) |
Exchange two members. | |
void | Clear (const Handle< NCollection_BaseAllocator > &theAllocator=0L) |
Clear the items out, take a new allocator if non null. | |
NCollection_Sequence & | Assign (const NCollection_Sequence &theOther) |
Replace this sequence by the items of theOther. This method does not change the internal allocator. | |
NCollection_Sequence & | operator= (const NCollection_Sequence &theOther) |
Replacement operator. | |
void | Remove (Iterator &thePosition) |
Remove one item. | |
void | Remove (const Standard_Integer theIndex) |
Remove one item. | |
void | Remove (const Standard_Integer theFromIndex, const Standard_Integer theToIndex) |
Remove range of items. | |
void | Append (const TheItemType &theItem) |
Append one item. | |
void | Append (NCollection_Sequence &theSeq) |
Append another sequence (making it empty) | |
void | Prepend (const TheItemType &theItem) |
Prepend one item. | |
void | Prepend (NCollection_Sequence &theSeq) |
Prepend another sequence (making it empty) | |
void | InsertBefore (const Standard_Integer theIndex, const TheItemType &theItem) |
InsertBefore theIndex theItem. | |
void | InsertBefore (const Standard_Integer theIndex, NCollection_Sequence &theSeq) |
InsertBefore theIndex another sequence (making it empty) | |
void | InsertAfter (Iterator &thePosition, const TheItemType &theItem) |
InsertAfter the position of iterator. | |
void | InsertAfter (const Standard_Integer theIndex, NCollection_Sequence &theSeq) |
InsertAfter theIndex another sequence (making it empty) | |
void | InsertAfter (const Standard_Integer theIndex, const TheItemType &theItem) |
InsertAfter theIndex theItem. | |
void | Split (const Standard_Integer theIndex, NCollection_Sequence &theSeq) |
Split in two sequences. | |
const TheItemType & | First () const |
First item access. | |
TheItemType & | ChangeFirst () |
First item access. | |
const TheItemType & | Last () const |
Last item access. | |
TheItemType & | ChangeLast () |
Last item access. | |
const TheItemType & | Value (const Standard_Integer theIndex) const |
Constant item access by theIndex. | |
const TheItemType & | operator() (const Standard_Integer theIndex) const |
Constant operator() | |
TheItemType & | ChangeValue (const Standard_Integer theIndex) |
Variable item access by theIndex. | |
TheItemType & | operator() (const Standard_Integer theIndex) |
Variable operator() | |
void | SetValue (const Standard_Integer theIndex, const TheItemType &theItem) |
Set item value by theIndex. | |
virtual | ~NCollection_Sequence (void) |
![]() | |
Standard_Boolean | IsEmpty () const |
Standard_Integer | Length () const |
const Handle< NCollection_BaseAllocator > & | Allocator () const |
Returns attached allocator. | |
Static Public Member Functions | |
static void | delNode (NCollection_SeqNode *theNode, Handle< NCollection_BaseAllocator > &theAl) |
Static deleter to be passed to BaseSequence. | |
Purpose: Definition of a sequence of elements indexed by an Integer in range of 1..n
typedef NCollection_StlIterator<std::bidirectional_iterator_tag, Iterator, TheItemType, true> NCollection_Sequence< TheItemType >::const_iterator |
Shorthand for a constant iterator type.
typedef NCollection_StlIterator<std::bidirectional_iterator_tag, Iterator, TheItemType, false> NCollection_Sequence< TheItemType >::iterator |
Shorthand for a regular iterator type.
typedef TheItemType NCollection_Sequence< TheItemType >::value_type |
STL-compliant typedef for value type.
|
inline |
Empty constructor.
|
inlineexplicit |
Constructor.
|
inline |
Copy constructor.
|
inlinevirtual |
|
inline |
Append one item.
|
inline |
Append another sequence (making it empty)
|
inline |
Replace this sequence by the items of theOther. This method does not change the internal allocator.
|
inline |
Returns an iterator pointing to the first element in the sequence.
|
inline |
Returns a const iterator pointing to the first element in the sequence.
|
inline |
Returns a const iterator referring to the past-the-end element in the sequence.
|
inline |
First item access.
|
inline |
Last item access.
|
inline |
Variable item access by theIndex.
|
inline |
Clear the items out, take a new allocator if non null.
|
inlinestatic |
Static deleter to be passed to BaseSequence.
|
inline |
Returns an iterator referring to the past-the-end element in the sequence.
|
inline |
Exchange two members.
|
inline |
First item access.
|
inline |
InsertAfter theIndex theItem.
|
inline |
InsertAfter theIndex another sequence (making it empty)
|
inline |
InsertAfter the position of iterator.
|
inline |
InsertBefore theIndex theItem.
|
inline |
InsertBefore theIndex another sequence (making it empty)
|
inline |
Empty query.
|
inline |
Last item access.
|
inline |
Number of items.
|
inline |
Method for consistency with other collections.
|
inline |
Variable operator()
|
inline |
Constant operator()
|
inline |
Replacement operator.
|
inline |
Prepend one item.
|
inline |
Prepend another sequence (making it empty)
|
inline |
Remove range of items.
|
inline |
Remove one item.
|
inline |
Remove one item.
|
inline |
Reverse sequence.
|
inline |
Set item value by theIndex.
|
inline |
Number of items.
|
inline |
Split in two sequences.
|
inline |
Method for consistency with other collections.
|
inline |
Constant item access by theIndex.