Coords< _DIM, T > Struct Template Reference

Structure storing coordinates. More...

#include <mapsetlib.h>

List of all members.

Public Member Functions

 Coords ()
 Coords (const T c[_DIM])
 Coords (const T &v)
bool operator< (const Coords &v) const
 Operator < .
bool operator<= (const Coords &v) const
 Operator <= .
bool operator== (const Coords &v) const
 Operator == .
T & operator[] (int i)
 Operator [] which returns references to given element.
operator() (int i) const
 Const operator [] which returns e value of given element.
bool next (Coords< _DIM, T > wp, Coords< _DIM, T > wk)
 Function iterating through all Coords struct that satisfy wp <= ... < wk.

Public Attributes

c [_DIM]


Detailed Description

template<int _DIM, class T>
struct Coords< _DIM, T >

Structure storing coordinates.

Constructor & Destructor Documentation

template<int _DIM, class T>
Coords< _DIM, T >::Coords (  )  [inline]

template<int _DIM, class T>
Coords< _DIM, T >::Coords ( const T  c[_DIM]  )  [inline]

template<int _DIM, class T>
Coords< _DIM, T >::Coords ( const T &  v  )  [inline]


Member Function Documentation

template<int _DIM, class T>
bool Coords< _DIM, T >::operator< ( const Coords< _DIM, T > &  v  )  const [inline]

Operator < .

template<int _DIM, class T>
bool Coords< _DIM, T >::operator<= ( const Coords< _DIM, T > &  v  )  const [inline]

Operator <= .

template<int _DIM, class T>
bool Coords< _DIM, T >::operator== ( const Coords< _DIM, T > &  v  )  const [inline]

Operator == .

template<int _DIM, class T>
T& Coords< _DIM, T >::operator[] ( int  i  )  [inline]

Operator [] which returns references to given element.

template<int _DIM, class T>
T Coords< _DIM, T >::operator() ( int  i  )  const [inline]

Const operator [] which returns e value of given element.

template<int _DIM, class T>
bool Coords< _DIM, T >::next ( Coords< _DIM, T >  wp,
Coords< _DIM, T >  wk 
) [inline]

Function iterating through all Coords struct that satisfy wp <= ... < wk.

Next coordinates are chosen up to constraints wp <= 'next set coordinate' < wk. If last change occured function returns false, otherwise true.


Member Data Documentation

template<int _DIM, class T>
T Coords< _DIM, T >::c[_DIM]


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

Generated on Sat May 24 19:47:31 2008 for Semi-hyperbolicity by  doxygen 1.5.5