|
ParGeMSLR
|
The virtual class of all vector classes. More...
#include <vector.hpp>
Public Member Functions | |
| VectorVirtualClass () | |
| The constructor of VectorVirtualClass. More... | |
| VectorVirtualClass (const VectorVirtualClass< T > &vec) | |
| The copy constructor of VectorVirtualClass. More... | |
| VectorVirtualClass (VectorVirtualClass< T > &&vec) | |
| The move constructor of VectorVirtualClass. More... | |
| virtual int | Clear () |
| Free the current vector. More... | |
| virtual | ~VectorVirtualClass () |
| The destructor of VectorVirtualClass. More... | |
| virtual T & | operator[] (int i)=0 |
| Get the reference of an index in the vector. More... | |
| virtual T * | GetData () const =0 |
| Get the data pointer of the vector. More... | |
| virtual int | GetDataLocation () const =0 |
| Get the data location of the vector. More... | |
| virtual int | GetLengthLocal () const =0 |
| Get the local length of the vector. More... | |
| virtual int | Fill (const T &v)=0 |
| Fill the vector with constant value. More... | |
| virtual int | MoveData (const int &location)=0 |
| Move the data to another memory location. More... | |
| virtual bool | IsParallel () const |
| Tell if this is a prallel vector. More... | |
| PrecisionEnum | GetPrecision () const |
| Get the data precision of the vector. More... | |
The virtual class of all vector classes.
| template pargemslr::VectorVirtualClass< T >::VectorVirtualClass | ( | ) |
The constructor of VectorVirtualClass.
| pargemslr::VectorVirtualClass< T >::VectorVirtualClass | ( | const VectorVirtualClass< T > & | vec | ) |
The copy constructor of VectorVirtualClass.
| pargemslr::VectorVirtualClass< T >::VectorVirtualClass | ( | VectorVirtualClass< T > && | vec | ) |
The move constructor of VectorVirtualClass.
|
virtual |
The destructor of VectorVirtualClass.
|
virtual |
Free the current vector.
Reimplemented in pargemslr::IntVectorClass< T >, pargemslr::IntVectorClass< int >, pargemslr::IntVectorClass< long int >, and pargemslr::VectorClass< T >.
|
pure virtual |
Fill the vector with constant value.
| [in] | v | The value to be filled. |
Implemented in pargemslr::VectorClass< T >, pargemslr::IntVectorClass< T >, pargemslr::IntVectorClass< long int >, and pargemslr::IntVectorClass< int >.
|
pure virtual |
Get the data pointer of the vector.
Implemented in pargemslr::VectorClass< T >, pargemslr::IntVectorClass< T >, pargemslr::IntVectorClass< int >, and pargemslr::IntVectorClass< long int >.
|
pure virtual |
Get the data location of the vector.
Implemented in pargemslr::VectorClass< T >, pargemslr::IntVectorClass< T >, pargemslr::IntVectorClass< int >, and pargemslr::IntVectorClass< long int >.
|
pure virtual |
Get the local length of the vector.
Implemented in pargemslr::VectorClass< T >, pargemslr::IntVectorClass< T >, pargemslr::IntVectorClass< int >, and pargemslr::IntVectorClass< long int >.
| template PrecisionEnum pargemslr::VectorVirtualClass< T >::GetPrecision | ( | ) | const |
Get the data precision of the vector.
|
virtual |
Tell if this is a prallel vector.
|
pure virtual |
Move the data to another memory location.
| [in] | location | The location move to. |
Implemented in pargemslr::VectorClass< T >, pargemslr::IntVectorClass< T >, pargemslr::IntVectorClass< int >, and pargemslr::IntVectorClass< long int >.
|
pure virtual |
Get the reference of an index in the vector.
| [in] | i | The index. |
Implemented in pargemslr::VectorClass< T >, pargemslr::IntVectorClass< T >, pargemslr::IntVectorClass< int >, and pargemslr::IntVectorClass< long int >.
1.8.18