#include <Vector.hxx>
Inheritance diagram for Seldon::Vector_Base< T, Allocator >:

Public Types | |
| typedef Allocator::value_type | value_type |
| typedef Allocator::pointer | pointer |
| typedef Allocator::const_pointer | const_pointer |
| typedef Allocator::reference | reference |
| typedef Allocator::const_reference | const_reference |
Public Member Functions | |
| Vector_Base () | |
| Default constructor. | |
| Vector_Base (int i) | |
| Main constructor. | |
| Vector_Base (Vector_Base< T, Allocator > &A) | |
| Copy constructor. | |
| ~Vector_Base () | |
| Destructor. | |
| int | GetM () const |
| Returns the number of elements. | |
| int | GetLength () const |
| Returns the number of elements. | |
| int | GetSize () const |
| Returns the number of elements stored. | |
| pointer | GetData () const |
| Returns a pointer to data_ (stored data). | |
| const_pointer | GetDataConst () const |
| Returns a const pointer to data_ (stored data). | |
| void * | GetDataVoid () const |
| Returns a pointer of type "void*" to the data array (data_). | |
| const void * | GetDataConstVoid () const |
| Returns a pointer of type "const void*" to the data array (data_). | |
Protected Attributes | |
| int | m_ |
| pointer | data_ |
Static Protected Attributes | |
| static Allocator | vect_allocator_ |
It stores data and the vector size. It defines basic methods as well.
|
|||||||||
|
Default constructor. Nothing is allocated. Vector length is set to zero. |
|
||||||||||
|
Main constructor.
|
|
||||||||||
|
Copy constructor.
|
|
|||||||||
|
Returns a pointer to data_ (stored data).
|
|
|||||||||
|
Returns a const pointer to data_ (stored data).
|
|
|||||||||
|
Returns a pointer of type "const void*" to the data array (data_).
|
|
|||||||||
|
Returns a pointer of type "void*" to the data array (data_).
|
|
|||||||||
|
Returns the number of elements.
|
|
|||||||||
|
Returns the number of elements.
|
|
|||||||||
|
Returns the number of elements stored.
|
1.4.0