Inheritance diagram for oaArrayBase:
Public Methods | |
oaArrayBase (oaUInt4 size=0) | |
oaArrayBase (const oaArrayBase< T > &arrayIn) | |
oaArrayBase (const T arrayIn[], oaUInt4 numElementsIn) | |
~oaArrayBase () | |
oaArrayBase< T > & | operator= (const oaArrayBase< T > &arrayIn) |
const T * | getElements () const |
oaUInt4 | getNumElements () const |
oaUInt4 | getSize () const |
void | setNumElements (oaUInt4 n) |
void | setSize (oaUInt4 newSize, oaBoolean saveElements=false) |
void | set (const T *arrayIn, oaUInt4 numElementsIn) |
const T & | get (oaUInt4 index) const |
T & | get (oaUInt4 index) |
const T & | operator[] (oaUInt4 i) const |
T & | operator[] (oaUInt4 i) |
|
This oaArrayBase constructor allocates enough storage to hold the specified size number of elements.
|
|
This oaArrayBase constructor copies the elements of the specified arrayIn.
|
|
This oaArrayBase constructor uses a C-style array[] of T elements to specify the initial contents of the array.
|
|
This is the destructor for the oaArrayBase class. It frees the storage associated with this oaArrayBase. |
|
This function returns a reference to the element in this array at the specified index. Note that this function does not check whether the index is valid.
|
|
This function returns a const reference to the element in this array at the specified index. Note that this function does not check whether the index is valid.
|
|
This function returns a const pointer to the elements in this oaArrayBase array. This may be useful to those applications that want to memcpy the data in this array. |
|
This function returns the number of elements this oaArrayBase array contains. |
|
This function returns the allocated size of this oaArrayBase array. The number of elements may be less than the allocated size of the array. |
|
This is the assignment operator for the oaArrayBase class. It clears this array and copies the elements in arrayIn to this array.
|
|
This function is a convenient synonym for get(index).
|
|
This function is a convenient synonym for get(index).
|
|
This function copies numElements from the specified C-style array to this array. The size of this array is set to numElements.
|
|
This function sets the number of elements in this oaArrayBase array to the specified n value. The specified value is not checked against the actual size of the array. This is normally used when an application first sets the size of the array, fills it in, and then sets the number of elements the array contains.
|
|
This function resizes this oaArrayBase to contain the specified newSize number of elements. If saveData is false, this oaArrayBase is not initialized. If true, the original data is preserved. If newSize is less than numObjs, all of the data will not be preserved.
|
Copyright © 2002 - 2010 Cadence Design Systems, Inc.
All Rights Reserved.