CFx SDK Documentation
2020SP3
|
#include <OdVector.h>
Public Types | |
typedef A::size_type | size_type |
typedef T * | iterator |
typedef const T * | const_iterator |
typedef T | value_type |
typedef const T & | const_reference |
typedef T & | reference |
This template class implements dynamic Array objects within Teigha.
Some definitions are in order:
<group Other_Classes>
Definition at line 53 of file OdVector.h.
typedef const T* OdVector< T, A, Mm >::const_iterator |
Definition at line 58 of file OdVector.h.
typedef const T& OdVector< T, A, Mm >::const_reference |
Definition at line 61 of file OdVector.h.
Definition at line 57 of file OdVector.h.
Definition at line 62 of file OdVector.h.
Definition at line 56 of file OdVector.h.
typedef T OdVector< T, A, Mm >::value_type |
Definition at line 60 of file OdVector.h.
|
explicit |
physicalLength | [in] Initial physical length. |
growLength | [in] Initial grow length. |
Definition at line 487 of file OdVector.h.
|
inline |
Definition at line 493 of file OdVector.h.
Definition at line 506 of file OdVector.h.
|
inline |
Returns an interator (pointer) to the first element after the last element in the array.
Definition at line 1065 of file OdVector.h.
|
inline |
Appends the Array object to the end of this Array object.
vec | [in] Array to append. |
Definition at line 1072 of file OdVector.h.
|
inline |
Appends the specified value to the end of this Array object.
value | [in] Value to append. |
Definition at line 1058 of file OdVector.h.
|
inline |
Returns the data buffer of this Array object.
Definition at line 982 of file OdVector.h.
|
inline |
Returns the data buffer of this Array object.
Definition at line 970 of file OdVector.h.
|
inline |
Assigns the specified range of elements to this Array object.
first | [in] Position of first element to be assigned. |
afterLast | [in] Position of first element after the last element to be assigned. |
Definition at line 891 of file OdVector.h.
Returns the element of this Array object at the specified index.
arrayIndex | [in] Array index. |
Returns the element of this Array object at the specified index.
arrayIndex | [in] Array index. |
|
inline |
Returns an iterator that references the first element in this Array object.
Definition at line 659 of file OdVector.h.
|
inline |
Returns an iterator that references the first element in this Array object.
Definition at line 665 of file OdVector.h.
|
inline |
Returns the physical length of this Array object.
Definition at line 878 of file OdVector.h.
Removes all elements from this Array object.
Definition at line 920 of file OdVector.h.
|
inline |
Returns true if and only if this Array object contains ths specified value.
value | [in] Value for which to search. |
startIndex | [in] Starting index of search. |
Definition at line 932 of file OdVector.h.
|
inline |
Returns true if and only if this Array is empty.
Definition at line 872 of file OdVector.h.
|
inline |
Definition at line 671 of file OdVector.h.
|
inline |
Definition at line 677 of file OdVector.h.
iterator OdVector< T, A, Mm >::erase | ( | iterator | first, |
iterator | afterLast | ||
) |
Removes the range of elements from this Array object.
first | [in] Position of first element to be assigned. |
afterLast | [in] Position of first element after the last element to be assigned. |
Removes the specified element from this Array object.
where [in] Element to remove.
|
inline |
Returns true if and only if this Array object contains ths specified value.
value | [in] Value for which to search. |
index | [out] Receives the index of the found value. |
startIndex | [in] Starting index of search. |
Definition at line 1115 of file OdVector.h.
|
inline |
Returns the first element of this Array object.
Definition at line 1034 of file OdVector.h.
|
inline |
Returns the first element of this Array object.
Definition at line 1040 of file OdVector.h.
|
inline |
Returns the element of this Array object at the specified position.
arrayIndex | [in] Array index. |
Definition at line 1027 of file OdVector.h.
|
inline |
Returns the data buffer of this Array object.
Definition at line 976 of file OdVector.h.
|
inline |
Returns the grow length of this Array object.
Definition at line 964 of file OdVector.h.
iterator OdVector< T, A, Mm >::insert | ( | iterator | before, |
const T & | value = T() |
||
) |
Inserts a range of elements into this Array object.
before | [in] Position after which the first element should be inserted. |
value | [in] Value to insert. |
void OdVector< T, A, Mm >::insert | ( | iterator | before, |
const_iterator | first, | ||
const_iterator | afterLast | ||
) |
Inserts an element into this Array object.
before | [in] Position after which the first element should be inserted. |
first | [in] Position of first element to be inserted. |
afterLast | [in] Position of first element after the last element to be inserted. |
iterator OdVector< T, A, Mm >::insert | ( | iterator | before, |
size_type | numElem, | ||
const T & | value | ||
) |
numElem | [in] Number of elements to insert. |
value | [in] Value to insert. |
Inserts a number of elements into this Array object.
before | [in] Position after which the first element should be inserted. |
numElem | [in] Number of elements to insert. |
value | [in] Value to insert. |
|
inline |
Inserts the specified value into this Array object at the specified index.
index | [in] Array index. |
value | [in] Value to insert. |
Elements starting at index will have their indices incremented.
Returns a reference to this Array object.
Definition at line 750 of file OdVector.h.
|
inline |
Returns true if and only if this Array is empty.
Definition at line 946 of file OdVector.h.
|
inline |
Returns the last element of this Array object.
Definition at line 1046 of file OdVector.h.
|
inline |
Returns the last element of this Array object.
Definition at line 1052 of file OdVector.h.
|
inline |
Returns the number of elements in this Array object.
Definition at line 940 of file OdVector.h.
|
inline |
Returns the logical length of this Array object.
Definition at line 952 of file OdVector.h.
|
inline |
Definition at line 512 of file OdVector.h.
|
inline |
Definition at line 1091 of file OdVector.h.
For convenient access to the data.
const T& OdVector< T, A, Mm >::operator[] | ( | size_type | index | ) | const |
For convenient access to the data.
|
inline |
Returns the physical length of this Array object.
Definition at line 958 of file OdVector.h.
|
inline |
Appends an element to the end of this Array object.
Definition at line 926 of file OdVector.h.
|
inline |
Removes the element with the specified value from this Array object.
value | [in] Value for which to search. |
startIndex | [in] Starting index of search. |
Returns true if and only if an element was removed.
Definition at line 817 of file OdVector.h.
|
inline |
Removes the element at the specified index from this Array object.
index | [in] Array index. |
Elements starting at index+1 will have their indices decremented.
Returns a reference to this Array object.
Definition at line 779 of file OdVector.h.
|
inline |
Removes the first element in this Array object.
Definition at line 1079 of file OdVector.h.
|
inline |
Removes the last element in this Array object.
Definition at line 1085 of file OdVector.h.
|
inline |
Removes the specified elements from this Array object.
startIndex | [in] Start index. |
endIndex | [in] End index. |
Returns a reference to this Array object.
Definition at line 796 of file OdVector.h.
|
inline |
Sets the physical length of this Array object to the specified reserve length if the reserve length is greater than its physical length.
reserveLength | [in] Minimum physical length. |
Definition at line 884 of file OdVector.h.
void OdVector< T, A, Mm >::resize | ( | size_type | logicalLength | ) |
Specifies the logical length for this Array object.
logicalLength | [in] Logical length. |
void OdVector< T, A, Mm >::resize | ( | size_type | logicalLength, |
const T & | value | ||
) |
Specifies the logical length for this Array object.
logicalLength | [in] Logical length. |
value | [in] Value for the elements added to obtain the new logical length. |
Reverses the order of the elements in this Array object.
Definition at line 1171 of file OdVector.h.
|
inline |
Sets all the elements in this Array object to the specified value.
value | [in] Value to assign. |
Definition at line 1106 of file OdVector.h.
|
inline |
Sets the element of this Array object at the specified index.
arrayIndex | [in] Array index. |
value | [in] Value. |
Definition at line 1017 of file OdVector.h.
|
inline |
Sets the grow length of this Array object.
growLength | [in] Grow length. |
Definition at line 1160 of file OdVector.h.
|
inline |
Sets the logical length of this Array object.
logicalLength | [in] Logical length. |
Definition at line 1134 of file OdVector.h.
|
inline |
Sets the physical length of this Array object.
physicalLength | [in] Physical length. |
Definition at line 1141 of file OdVector.h.
|
inline |
Returns the logical length of this Array object.
Definition at line 866 of file OdVector.h.
|
inline |
Swaps the specified elements in this Array object.
firstIndex | [in] Index of first element. |
secondIndex | [in] Index of second element. |
Definition at line 1195 of file OdVector.h.