detail::Array2d< T > Class Template Reference

Helper class providing easy 2 dimensional vector of type <T> (non growing). More...

#include <streamlines.h>

List of all members.

Public Member Functions

 Array2d (int dimx, int dimy)
 Common Constructor.
const T & operator() (int x, int y) const
 Overloaded Operator for easy access, if the return value has to be defined 'const'.
T & operator() (int x, int y)
 Overloaded Operator for easy access.
const int GetSizeX () const
 Get the arrays x-dimension.
const int GetSizeY () const
 Get the arrays y-dimension.
const std::vector< T > & GetData () const
 Get the array data as continous vector.

Private Attributes

std::vector< T > data
 Standard Vector holding the array's data.
Fixed array dimensions (specified only during creation - non changeable)
int sizex
int sizey


Detailed Description

template<typename T>
class detail::Array2d< T >

Helper class providing easy 2 dimensional vector of type <T> (non growing).

Definition at line 112 of file streamlines.h.


Constructor & Destructor Documentation

template<typename T>
detail::Array2d< T >::Array2d ( int  dimx,
int  dimy 
) [inline]

Common Constructor.

Definition at line 125 of file streamlines.h.


Member Function Documentation

template<typename T>
const T& detail::Array2d< T >::operator() ( int  x,
int  y 
) const [inline]

Overloaded Operator for easy access, if the return value has to be defined 'const'.

Definition at line 132 of file streamlines.h.

template<typename T>
T& detail::Array2d< T >::operator() ( int  x,
int  y 
) [inline]

Overloaded Operator for easy access.

Definition at line 140 of file streamlines.h.

template<typename T>
const int detail::Array2d< T >::GetSizeX (  )  const [inline]

Get the arrays x-dimension.

Definition at line 148 of file streamlines.h.

Referenced by StreamlineGenerator::GetMinDistance().

template<typename T>
const int detail::Array2d< T >::GetSizeY (  )  const [inline]

Get the arrays y-dimension.

Definition at line 152 of file streamlines.h.

Referenced by StreamlineGenerator::GetMinDistance().

template<typename T>
const std::vector<T>& detail::Array2d< T >::GetData (  )  const [inline]

Get the array data as continous vector.

Definition at line 156 of file streamlines.h.


Member Data Documentation

template<typename T>
int detail::Array2d< T >::sizex [private]

template<typename T>
int detail::Array2d< T >::sizey [private]

template<typename T>
std::vector<T> detail::Array2d< T >::data [private]

Standard Vector holding the array's data.

Definition at line 121 of file streamlines.h.

Referenced by detail::Array2d< std::list< vec2 > >::GetData(), and detail::Array2d< std::list< vec2 > >::operator()().


The documentation for this class was generated from the following file:

Generated on Wed Jan 21 16:22:24 2009 for FlowVis by  doxygen 1.5.6