Home || Architecture || Video Search || Visual Search || Scripts || Applications || 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.
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.

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 18 of file VectorTem.h.


The documentation for this class was generated from the following file:
Generated on Fri Mar 19 11:27:33 2010 for ImpalaSrc by  doxygen 1.5.1