Home || Visual Search || Applications || Architecture || Important Messages || OGL || Src

Impala::Core::Vector::VectorTem< ElemT > Class Template Reference

Class definition for vector of arbitrary number of elements, each represented by an ElemT. More...

#include <VectorTem.h>

Inheritance diagram for Impala::Core::Vector::VectorTem< ElemT >:

Inheritance graph
[legend]
Collaboration diagram for Impala::Core::Vector::VectorTem< ElemT >:

Collaboration graph
[legend]
List of all members.

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.
VectorTemoperator= (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
VectorTemoperator= (ElemT a)
 Assign constant value.
bool Equals (const VectorTem &arg) const
ElemT & operator[] (int i) const
 Subscripting, start with 0.
ElemT & Elem (int i) const
ElemT * GetData ()
const ElemT * GetData () const
String PrintE (int nrElem) 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.

Detailed Description

template<class ElemT>
class Impala::Core::Vector::VectorTem< ElemT >

Class definition for vector of arbitrary number of elements, each represented by an ElemT.

Definition at line 19 of file VectorTem.h.


The documentation for this class was generated from the following file:
Generated on Thu Jan 13 09:21:38 2011 for ImpalaSrc by  doxygen 1.5.1