#include <VectorTem.h>
Inheritance diagram for Impala::Core::Vector::VectorTem< ElemT >:
Public Member Functions | |
VectorTem () | |
Empty vector. | |
VectorTem (int n) | |
Empty vector of given size. | |
VectorTem (int n, ElemT *data, bool isWrapper) | |
Vector with given data. | |
VectorTem (ElemT a0, ElemT a1) | |
Vector of size 2, with given values. | |
VectorTem (ElemT a0, ElemT a1, ElemT a2) | |
Vector of size 3, with given values. | |
VectorTem (const VectorTem &v) | |
Copy constructor. | |
virtual | ~VectorTem () |
Destructor. | |
int | Size () const |
Number of elements. | |
int | Valid () const |
Indicates whether the vector is valid. | |
VectorTem & | operator= (const VectorTem &v) |
Assignment operator. | |
void | CopyData (int n, const ElemT *data, int begin=0) |
note: responsability of caller that n is not bigger than length of data | |
VectorTem & | operator= (ElemT a) |
Assign constant value. | |
ElemT & | operator[] (int i) const |
Subscripting, start with 0. | |
ElemT & | Elem (int i) const |
ElemT * | GetData () |
const ElemT * | GetData () const |
Private Attributes | |
int | mSize |
ElemT * | mData |
bool | mIsWrapper |
Friends | |
template<class ElemTT> | |
ElemTT | operator * (const VectorTem< ElemTT > &a, const VectorTem< ElemTT > &b) |
Multiplication. | |
template<class ElemTT> | |
VectorTem< ElemTT > | operator * (const ElemTT a, const VectorTem< ElemTT > &b) |
Multiplication. | |
template<class ElemTT> | |
VectorTem< ElemTT > | operator * (const VectorTem< ElemTT > &a, const ElemTT b) |
Multiplication. |
Definition at line 18 of file VectorTem.h.