|
iterator | begin () |
|
const_iterator | begin () const |
|
iterator | end () |
|
const_iterator | end () const |
|
void | insert (iterator before, const_iterator first, const_iterator afterLast) |
|
void | resize (size_type logicalLength, const T &value) |
|
void | resize (size_type logicalLength) |
|
size_type | size () const |
|
bool | empty () const |
|
size_type | capacity () const |
|
void | reserve (size_type reserveLength) |
|
void | assign (const_iterator first, const_iterator afterLast) |
|
iterator | erase (iterator first, iterator afterLast) |
|
iterator | erase (iterator where) |
|
void | clear () |
|
void | push_back (const T &value) |
|
iterator | insert (iterator before, size_type numElements, const T &value) |
|
iterator | insert (iterator before, const T &value=T()) |
|
bool | contains (const T &value, size_type start=0) const |
|
size_type | length () const |
|
bool | isEmpty () const |
|
size_type | logicalLength () const |
|
size_type | physicalLength () const |
|
int | growLength () const |
|
const T * | asArrayPtr () const |
|
const T * | getPtr () const |
|
T * | asArrayPtr () |
|
const T & | operator[] (size_type index) const |
|
T & | operator[] (size_type index) |
|
T & | at (size_type arrayIndex) |
|
const T & | at (size_type arrayIndex) const |
|
OdArray & | setAt (size_type arrayIndex, const T &value) |
|
const T & | getAt (size_type arrayIndex) const |
|
T & | first () |
|
const T & | first () const |
|
T & | last () |
|
const T & | last () const |
|
size_type | append (const T &value) |
|
iterator | append () |
|
OdArray & | removeFirst () |
|
OdArray & | removeLast () |
|
OdArray & | setGrowLength (int growLength) |
|
| OdArray (size_type physicalLength, int growLength=8) |
|
| OdArray () |
|
| OdArray (const OdArray &source) |
|
| ~OdArray () |
|
OdArray & | operator= (const OdArray &source) |
|
bool | operator== (const OdArray &array) const |
|
OdArray & | setAll (const T &value) |
|
OdArray & | append (const OdArray &otherArray) |
|
OdArray & | insertAt (size_type arrayIndex, const T &value) |
|
OdArray & | removeAt (size_type arrayIndex) |
|
OdArray & | removeSubArray (size_type startIndex, size_type endIndex) |
|
bool | find (const T &value, size_type &findIndex, size_type start=0) const |
|
OdArray & | setLogicalLength (size_type logLength) |
|
OdArray & | setPhysicalLength (size_type physLength) |
|
OdArray & | reverse () |
|
OdArray & | swap (size_type firstIndex, size_type secondIndex) |
|
bool | remove (const T &value, size_type start=0) |
|
template<class T, class A>
class OdArray< T, A >
This template class implements dynamic Array objects within Teigha.
Some definitions are in order:
- Logical Length or Size – The number of entries in the array. Initially zero.
- Physical Length – The maximum Logical Length of the array before it automatically grows.
- Grow Length – The number of entries by which the Physical Length will grow as required.
- See also
- TD_Db
<group Other_Classes>
Definition at line 590 of file OdArray.h.
template<class T , class A >
Appends the specified value or Array object to the end of this Array object.
- Parameters
-
otherArray | [in] Array to append. |
value | [in] Value to append. |
If called with value, returns the index of the new last element.
If called with no arguments, returns an interator (pointer) to the first element after the last element in the array.
Definition at line 1354 of file OdArray.h.
template<class T , class A >
Inserts the specified value into this Array object at the specified index.
- Parameters
-
arrayIndex | [in] Array index. |
value | [in] Value to insert. |
Elements starting at arrayIndex will have their indices incremented.
Returns a reference to this Array object.
Definition at line 1374 of file OdArray.h.
template<class T , class A >
Removes the element at the specified index from this Array object.
- Parameters
-
arrayIndex | [in] Array index. |
Elements starting at arrayIndex+1 will have their indices decremented.
Returns a reference to this Array object.
Definition at line 1411 of file OdArray.h.