#include <maxvector.hpp>
Collaboration diagram for maxvector< T >:
Public Types | |
typedef T | value_type |
typedef T * | iterator |
typedef const T * | const_iterator |
Public Member Functions | |
maxvector () | |
maxvector (size_t maxsize) | |
~maxvector () | |
T &DINLINE | operator[] (size_t n) |
const T &DINLINE | operator[] (size_t n) const |
iterator DINLINE | begin () |
const_iterator DINLINE | begin () const |
iterator DINLINE | end () |
const_iterator DINLINE | end () const |
size_t DINLINE | size () const |
void DINLINE | push_back (const T &d) |
void DINLINE | pop_back () |
bool DINLINE | empty () const |
T &DINLINE | front () |
T &DINLINE | back () |
const T &DINLINE | back () const |
void DINLINE | reserve (size_t n) |
void DINLINE | resize (size_t n, const T &d) |
void DINLINE | resize (size_t n) |
void DINLINE | clear () |
iterator DINLINE | erase (iterator first, const iterator last) |
iterator DINLINE | erase (iterator pos) |
Private Attributes | |
T * | data |
size_t | length |
It never copies the contents and never checks the boundaries.
The constructors and destructors are not properly called when the size of the vector changes. All elements are constructed and destructed tigether with the container.
reserve(n) reallocates the array to accommodate at most n elements, and preserves min(size(),n) elements of the array.
Definition at line 27 of file maxvector.hpp.
|
Definition at line 57 of file maxvector.hpp. |
|
Definition at line 56 of file maxvector.hpp. |
|
Definition at line 32 of file maxvector.hpp. |
|
Definition at line 34 of file maxvector.hpp. References maxvector< T >::data, and maxvector< T >::length. |
|
Definition at line 39 of file maxvector.hpp. References maxvector< T >::data, and maxvector< T >::length. |
|
Definition at line 44 of file maxvector.hpp. References maxvector< T >::data. |
|
Definition at line 108 of file maxvector.hpp. References maxvector< T >::data, and maxvector< T >::length. |
|
Definition at line 104 of file maxvector.hpp. References maxvector< T >::data, and maxvector< T >::length. |
|
Definition at line 63 of file maxvector.hpp. References maxvector< T >::data. |
|
Definition at line 59 of file maxvector.hpp. References maxvector< T >::data. |
|
Definition at line 138 of file maxvector.hpp. References maxvector< T >::length. |
|
Definition at line 96 of file maxvector.hpp. References maxvector< T >::length. |
|
Definition at line 72 of file maxvector.hpp. References maxvector< T >::data, and maxvector< T >::length. |
|
Definition at line 68 of file maxvector.hpp. References maxvector< T >::data, and maxvector< T >::length. |
|
Definition at line 150 of file maxvector.hpp. References maxvector< T >::data, and maxvector< T >::length. |
|
Definition at line 142 of file maxvector.hpp. |
|
Definition at line 100 of file maxvector.hpp. References maxvector< T >::data. |
|
Definition at line 52 of file maxvector.hpp. References maxvector< T >::data. |
|
Definition at line 48 of file maxvector.hpp. References maxvector< T >::data. |
|
Definition at line 92 of file maxvector.hpp. References maxvector< T >::length. |
|
Definition at line 88 of file maxvector.hpp. References maxvector< T >::data, and maxvector< T >::length. |
|
Definition at line 113 of file maxvector.hpp. References maxvector< T >::data, and maxvector< T >::length. Referenced by maxvector< T >::resize(). |
|
Definition at line 132 of file maxvector.hpp. References maxvector< T >::data, maxvector< T >::length, and maxvector< T >::reserve(). |
|
Definition at line 123 of file maxvector.hpp. References maxvector< T >::data, maxvector< T >::length, and maxvector< T >::reserve(). |
|
Definition at line 76 of file maxvector.hpp. References maxvector< T >::length. |
|
|