Base structure for all vectors. More...
#include <Vector.hxx>
Public Member Functions | |
Vector_Base () | |
Default constructor. More... | |
Vector_Base (size_t i) | |
Main constructor. More... | |
Vector_Base (const Vector_Base< T, Allocator > &A) | |
Copy constructor. More... | |
~Vector_Base () | |
Destructor. | |
void | Clear () |
Releases memory used by the vector. | |
long | GetM () const |
Returns the number of elements. More... | |
size_t | GetLength () const |
Returns the number of elements. More... | |
size_t | GetSize () const |
Returns the number of elements stored. More... | |
size_t | GetMemorySize () const |
Returns the memory used by the object in bytes. More... | |
pointer | GetData () const |
Returns a pointer to data_ (stored data). More... | |
const_pointer | GetDataConst () const |
Returns a const pointer to data_ (stored data). More... | |
void * | GetDataVoid () const |
Returns a pointer of type "void*" to the data array (data_). More... | |
const void * | GetDataConstVoid () const |
Returns a pointer of type "const void*" to the data array (data_). More... | |
Protected Attributes | |
size_t | m_ |
pointer | data_ |
Base structure for all vectors.
It stores data and the vector size. It defines basic methods as well.
Definition at line 201 of file SeldonHeader.hxx.
|
inline |
Default constructor.
Nothing is allocated. Vector length is set to zero.
Definition at line 45 of file VectorInline.cxx.
|
inlineexplicit |
Main constructor.
i | length. |
Definition at line 58 of file VectorInline.cxx.
|
inline |
Copy constructor.
A | base vector to be copied. |
Definition at line 72 of file VectorInline.cxx.
|
inline |
Returns a pointer to data_ (stored data).
Definition at line 177 of file VectorInline.cxx.
|
inline |
Returns a const pointer to data_ (stored data).
Definition at line 189 of file VectorInline.cxx.
|
inline |
Returns a pointer of type "const void*" to the data array (data_).
Definition at line 212 of file VectorInline.cxx.
|
inline |
Returns a pointer of type "void*" to the data array (data_).
Definition at line 201 of file VectorInline.cxx.
|
inline |
Returns the number of elements.
Definition at line 142 of file VectorInline.cxx.
|
inline |
Returns the number of elements.
Definition at line 131 of file VectorInline.cxx.
|
inline |
Returns the memory used by the object in bytes.
In this method, the type T is assumed to be "static" such that sizeof(T) provides the correct size
Definition at line 165 of file VectorInline.cxx.
|
inline |
Returns the number of elements stored.
Definition at line 153 of file VectorInline.cxx.