#include <TCollection_BaseSequence.hxx>
Inheritance diagram for TCollection_BaseSequence:
Public Member Functions | |
void * | operator new (size_t, void *anAddress) |
void * | operator new (size_t size) |
void | operator delete (void *anAddress) |
Standard_Boolean | IsEmpty () const |
returns True if the sequence <me> contains no elements. | |
Standard_Integer | Length () const |
Returns the number of element(s) in the sequence. Returns zero if the sequence is empty. . | |
Standard_EXPORT void | Reverse () |
Reverses the order of items on <me>. Example: before me = (A B C) after me = (C B A) . | |
Standard_EXPORT void | Exchange (const Standard_Integer I, const Standard_Integer J) |
Swaps elements which are located at positions and <j> in <me>. Raises an exception if I or J is out of bound. Example: before me = (A B C), I = 1, J = 3 after me = (C B A) . | |
Protected Member Functions | |
Standard_EXPORT | TCollection_BaseSequence () |
Creation of an empty sequence. . | |
Standard_EXPORT void | Clear (const Standard_Address DelNode) |
Standard_EXPORT void | PAppend (const Standard_Address Node) |
Standard_EXPORT void | PAppend (TCollection_BaseSequence &S) |
Concatenates <s> at the end of <me>. <s> is cleared. Example: before me = (A B C) S = (D E F) after me = (A B C D E F) S = () . | |
Standard_EXPORT void | PPrepend (const Standard_Address Node) |
Standard_EXPORT void | PPrepend (TCollection_BaseSequence &S) |
Concatenates <s> at the beginning of <me>. <s> is cleared. Example: before me = (A B C) S = (D E F) after me = (D E F A B C) S = () . | |
Standard_EXPORT void | PInsertAfter (const Standard_Integer Index, const Standard_Address Node) |
Standard_EXPORT void | PInsertAfter (const Standard_Integer Index, TCollection_BaseSequence &S) |
Inserts the sequence <s> in <me> after the position <index>. <s> is cleared. Raises an exception if the index is out of bound. Example: before me = (A B C), Index = 3, S = (D E F) after me = (A B C D E F) S = () . | |
Standard_EXPORT void | PSplit (const Standard_Integer Index, TCollection_BaseSequence &Sub) |
Keeps in <me> the items 1 to <index>-1 and puts in the items <index> to the end. Example: before me = (A B C D) ,Index = 3 after me = (A B) Sub = (C D) . | |
Standard_EXPORT void | Remove (const Standard_Integer Index, const Standard_Address DelNode) |
Standard_EXPORT void | Remove (const Standard_Integer FromIndex, const Standard_Integer ToIndex, const Standard_Address DelNode) |
Standard_EXPORT Standard_Address | Find (const Standard_Integer Index) const |
Returns the node at position <index>. . | |
Protected Attributes | |
Standard_Address | FirstItem |
Standard_Address | LastItem |
Standard_Address | CurrentItem |
Standard_Integer | CurrentIndex |
Standard_Integer | Size |
Private Member Functions | |
Standard_EXPORT | TCollection_BaseSequence (const TCollection_BaseSequence &Other) |
Creation by copy of existing Sequence. Warning: This constructor prints a warning message. We recommand to use the operator =. . | |
Standard_EXPORT void | Nullify () |
Clear all fields. . |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|