Array< T > Class Template Reference Safe arrays of arbitrary types.Class Array provides safe arrays of arbitrary type. Array elements are accessed just like ordinary C++ array elements by means of the index operator[](). Safety is provided by. More...
Detailed Descriptiontemplate<class T>
|
|
explicit |
void append | ( | int | n | ) |
append n
uninitialized elements.
Definition at line 100 of file array.h.
Referenced by Array< soplex::UnitVectorBase >::reSize().
void append | ( | int | n, |
const T * | p_array | ||
) |
void append | ( | const Array< T > & | p_array | ) |
T* get_ptr | ( | ) |
void insert | ( | int | i, |
int | n | ||
) |
insert n
uninitialized elements before i
'th element.
You must not! use realloc, memcpy or memmove, because some data element points inside itself, and therefore you always need to copy all elements by hand.
Definition at line 120 of file array.h.
Referenced by Array< soplex::UnitVectorBase >::append(), and Array< soplex::UnitVectorBase >::insert().
void insert | ( | int | i, |
int | n, | ||
const T * | p_array | ||
) |
void insert | ( | int | i, |
const Array< T > & | p_array | ||
) |
bool isConsistent | ( | ) | const |
consistency check
Definition at line 344 of file array.h.
Referenced by Array< soplex::UnitVectorBase >::Array(), and Array< soplex::UnitVectorBase >::operator=().
void remove | ( | int | n = 0 , |
int | m = 1 |
||
) |
void reSize | ( | int | newsize | ) |
reset the number of elements.
Definition at line 257 of file array.h.
Referenced by Array< soplex::UnitVectorBase >::operator=().
int size | ( | ) | const |
return the number of elements.
Definition at line 251 of file array.h.
Referenced by Array< soplex::UnitVectorBase >::insert(), Array< soplex::UnitVectorBase >::operator=(), and Array< soplex::UnitVectorBase >::remove().
|
protected |
the array of elements
Definition at line 70 of file array.h.
Referenced by Array< soplex::UnitVectorBase >::Array(), Array< soplex::UnitVectorBase >::get_ptr(), Array< soplex::UnitVectorBase >::insert(), and Array< soplex::UnitVectorBase >::operator=().
|
protected |
the length of array data
Definition at line 69 of file array.h.
Referenced by Array< soplex::UnitVectorBase >::Array(), Array< soplex::UnitVectorBase >::clear(), Array< soplex::UnitVectorBase >::insert(), Array< soplex::UnitVectorBase >::operator=(), Array< soplex::UnitVectorBase >::remove(), Array< soplex::UnitVectorBase >::size(), and Array< soplex::UnitVectorBase >::~Array().