Loading...
Searching...
No Matches
Array< T > Class Template Reference Safe arrays of arbitrary types. More...
Detailed Descriptiontemplate<class T> class soplex::Array< T > 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
Moreover, Arrays may easily be extended by inserting or appending elements to the Array or shrunken by removing elements. Method reSize(int n) resets the Array's length to An Array is implemented in a C++-compliant way with respect to how memory is managed: Only operators new and delete are used for allocating memory. This involves some overhead for all methods effecting the length of an Array, i.e., all methods insert(), append(), remove() and reSize(). This involves allocating a new C++ array of the new size and copying all elements with the template parameters operator=(). For this reason, it is not convenient to use class Array if its elements are Data Objects. In this case use class DataArray instead.
Constructor & Destructor Documentation◆ Array() [1/2]
template<class T>
default constructor. The constructor allocates an Array of Definition at line 239 of file array.h. References data. Referenced by append(), Array(), insert(), operator=(), and operator=(). ◆ Array() [2/2]◆ ~Array()Member Function Documentation◆ append() [1/5]
template<class T>
◆ append() [2/5]
template<class T>
◆ append() [3/5]
template<class T>
◆ append() [4/5]
template<class T>
◆ append() [5/5]
template<class T>
◆ clear()
template<class T>
◆ get_const_ptr()
template<class T>
◆ get_ptr()
template<class T>
◆ insert() [1/4]
template<class T>
◆ insert() [2/4]
template<class T>
◆ insert() [3/4]
template<class T>
◆ insert() [4/4]
template<class T>
◆ isConsistent()
template<class T>
◆ operator=() [1/2]◆ operator=() [2/2]◆ operator[]() [1/2]
template<class T>
◆ operator[]() [2/2]
template<class T>
◆ push_back() [1/2]
template<class T>
◆ push_back() [2/2]
template<class T>
◆ remove()
template<class T>
◆ reSize()
template<class T>
reset the number of elements. Definition at line 206 of file array.h. References data. Referenced by operator=(). ◆ size()
template<class T>
return the number of elements. Definition at line 200 of file array.h. References data. Referenced by insert(), operator=(), DataHashTable< HashItem, Info >::reMax(), and remove(). Member Data Documentation◆ data
template<class T>
Definition at line 81 of file array.h. Referenced by append(), append(), append(), append(), Array(), Array(), clear(), get_const_ptr(), get_ptr(), insert(), insert(), insert(), insert(), operator=(), operator=(), operator[](), operator[](), push_back(), push_back(), remove(), reSize(), and size().
|