OV::OVvX< X > Struct Template Reference

Template for float vectors. Container for X floats with access operators. More...

#include <ovalgebra.h>


Public Member Functions

 OVvX ()
 Empty constructor.
 OVvX (float *a)
 Constructor from array of 2 floats.
 ~OVvX ()
 Destructor.
 operator float * ()
 Automatic typecast operator. Enables use of OV2f in glFunc[v]() functions.
float & operator[] (int index)
 Access operator.
const float & operator[] (int index) const
 Constant access operator.
void operator= (const float *a)
 = operator.

Data Fields

float e [X]


Detailed Description

template<int X>
struct OV::OVvX< X >

Template for float vectors. Container for X floats with access operators.


Constructor & Destructor Documentation

template<int X>
OV::OVvX< X >::OVvX (  )  [inline]

Empty constructor.

template<int X>
OV::OVvX< X >::OVvX ( float *  a  )  [inline]

Constructor from array of 2 floats.

template<int X>
OV::OVvX< X >::~OVvX (  )  [inline]

Destructor.


Member Function Documentation

template<int X>
OV::OVvX< X >::operator float * (  )  [inline]

Automatic typecast operator. Enables use of OV2f in glFunc[v]() functions.

Returns:
Returns pointer to first element in array

template<int X>
float& OV::OVvX< X >::operator[] ( int  index  )  [inline]

Access operator.

Parameters:
index Index of element.
Returns:
Returns indexed element

template<int X>
const float& OV::OVvX< X >::operator[] ( int  index  )  const [inline]

Constant access operator.

Parameters:
index Index of element.
Returns:
Returns indexed element

template<int X>
void OV::OVvX< X >::operator= ( const float *  a  )  [inline]

= operator.

Parameters:
a Reference to other object.


Field Documentation

template<int X>
float OV::OVvX< X >::e[X]

Array of elements.


The documentation for this struct was generated from the following file:
Generated on Thu May 17 20:28:04 2007 for Ocean View by  doxygen 1.5.2