Main Page | Class Hierarchy | Class List | File List | Class Members

math::VVector< T, N > Struct Template Reference

Taken from vuVolume2. A generic mathematical vector class. More...

#include <VVector.h>

List of all members.

Public Types

typedef T value_type
typedef T * value_ptr
typedef const T * value_cptr
typedef VVector< T, N > vec_type
typedef const VVector< T, N > cvec_type
enum  { size = N }

Public Member Functions

 VVector ()
 VVector (const T &val)
 VVector (const VVector< T, N > &rhs)
 VVector (const T *vptr)
T * begin ()
const T * begin () const
T * end ()
const T * end () const
const T & operator[] (const unsigned int i) const
 const element access
T & operator[] (const unsigned int i)
 non-const element access (lvalue)
VVector< T, N > & assign (const T &val)
 Assignment operator.
VVector< T, N > & assign (const T *vptr)
 Assignment operator.
VVector< T, N > & assign (const VVector< T, N > &rhs)
 Assignment operator.
VVector< T, N > & operator= (const VVector< T, N > &rhs)
 Assignment operator.
bool operator== (const VVector< T, N > &rhs) const
 comparison operator
bool operator!= (const VVector< T, N > &rhs) const
 comparison operator
bool allNotEqual (const VVector< T, N > &rhs) const
 comparison operator
bool operator< (const VVector< T, N > &rhs) const
 comparison operator
bool operator<= (const VVector< T, N > &rhs) const
 comparison operator
bool operator> (const VVector< T, N > &rhs) const
 comparison operator
bool operator>= (const VVector< T, N > &rhs) const
 comparison operator
VVector< T, N > & operator+= (const VVector< T, N > &rhs)
 In-place scalar element-wise vector addition.
VVector< T, N > & operator-= (const VVector< T, N > &rhs)
 In-place scalar element-wise vector substraction.
VVector< T, N > & operator *= (const VVector< T, N > &rhs)
 In-place scalar element-wise vector multiplication.
VVector< T, N > & operator/= (const VVector< T, N > &rhs)
 In-place scalar element-wise vector division.
VVector< T, N > operator+ (const VVector< T, N > &rhs) const
 Element-wise addition. Creates a copy.
VVector< T, N > operator- (const VVector< T, N > &rhs) const
 Element-wise substraction. Creates a copy.
VVector< T, N > operator * (const VVector< T, N > &rhs) const
 Element-wise multiplication. Creates a copy.
VVector< T, N > operator/ (const VVector< T, N > &rhs) const
 Element-wise division. Creates a copy.
VVector< T, N > operator+ (const T &val) const
 Element-wise addition by scalar. Creates a copy.
VVector< T, N > operator- (const T &val) const
 Element-wise substraction. Creates a copy.
VVector< T, N > operator * (const T &val) const
 Element-wise multiplication. Creates a copy.
VVector< T, N > operator/ (const T &val) const
 Element-wise division. Creates a copy.
VVector< T, N > operator+= (const T &val)
 Element-wise addition by scalar. Creates a copy.
VVector< T, N > operator-= (const T &val)
 Element-wise substraction. Creates a copy.
VVector< T, N > operator *= (const T &val)
 Element-wise multiplication. Creates a copy.
VVector< T, N > operator/= (const T &val)
 Element-wise division. Creates a copy.

Static Public Member Functions

static unsigned int bytesize ()
 Returns the size of the array in bytes.

Public Attributes

data [N]


Detailed Description

template<typename T, int N>
struct math::VVector< T, N >

Taken from vuVolume2. A generic mathematical vector class.

Include VVectorFun.h for more versatile functions. VMatrix is the accompanying matrix class.


Constructor & Destructor Documentation

template<typename T, int N>
math::VVector< T, N >::VVector  )  [inline]
 

Constructor. Not initializing the elements!

template<typename T, int N>
math::VVector< T, N >::VVector const T &  val  )  [inline]
 

Constructor that initialized all elements with a constant value

template<typename T, int N>
math::VVector< T, N >::VVector const VVector< T, N > &  rhs  )  [inline]
 

Copy constructor


Member Data Documentation

template<typename T, int N>
T math::VVector< T, N >::data[N]
 

The data.


The documentation for this struct was generated from the following file:
Generated on Thu Apr 13 04:55:57 2006 by  doxygen 1.4.4