Base structure for all vectors. More...
#include <Vector.hxx>
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 (const 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_ |
Base structure for all vectors.
It stores data and the vector size. It defines basic methods as well.
Definition at line 38 of file Vector.hxx.
Seldon::Vector_Base< T, Allocator >::Vector_Base | ( | ) | [inline] |
Default constructor.
Nothing is allocated. Vector length is set to zero.
Definition at line 44 of file Vector.cxx.
Seldon::Vector_Base< T, Allocator >::Vector_Base | ( | int | i | ) | [inline, explicit] |
Main constructor.
i | length. |
Definition at line 57 of file Vector.cxx.
Seldon::Vector_Base< T, Allocator >::Vector_Base | ( | const Vector_Base< T, Allocator > & | A | ) | [inline] |
Copy constructor.
A | base vector to be copied. |
Definition at line 71 of file Vector.cxx.
Vector_Base< T, Allocator >::pointer Seldon::Vector_Base< T, Allocator >::GetData | ( | ) | const |
Returns a pointer to data_ (stored data).
Definition at line 156 of file Vector.cxx.
Vector_Base< T, Allocator >::const_pointer Seldon::Vector_Base< T, Allocator >::GetDataConst | ( | ) | const |
Returns a const pointer to data_ (stored data).
Definition at line 168 of file Vector.cxx.
const void * Seldon::Vector_Base< T, Allocator >::GetDataConstVoid | ( | ) | const |
Returns a pointer of type "const void*" to the data array (data_).
Definition at line 191 of file Vector.cxx.
void * Seldon::Vector_Base< T, Allocator >::GetDataVoid | ( | ) | const |
Returns a pointer of type "void*" to the data array (data_).
Definition at line 180 of file Vector.cxx.
int Seldon::Vector_Base< T, Allocator >::GetLength | ( | ) | const |
Returns the number of elements.
Reimplemented in Seldon::Vector< FloatDouble, DenseSparseCollection, Allocator< T > >, and Seldon::Vector< T, Collection, Allocator >.
Definition at line 133 of file Vector.cxx.
int Seldon::Vector_Base< T, Allocator >::GetM | ( | ) | const |
Returns the number of elements.
Reimplemented in Seldon::Vector< FloatDouble, DenseSparseCollection, Allocator< T > >, and Seldon::Vector< T, Collection, Allocator >.
Definition at line 122 of file Vector.cxx.
int Seldon::Vector_Base< T, Allocator >::GetSize | ( | ) | const |
Returns the number of elements stored.
Definition at line 144 of file Vector.cxx.