code::Dim2D< X >::Coord Class Reference

List of all members.

Detailed Description

template<class X>
class code::Dim2D< X >::Coord

Dimension type for Dim2D.


Public Member Functions

 Coord (size_t i, size_t j)
 Pass in the two coords.
size_t operator[] (size_t i) const
 i should be 0 or 1 only.
size_t first () const
 The first (row) coordinate.
size_t second () const
 The second (col) coordinate.


Constructor & Destructor Documentation

template<class X>
code::Dim2D< X >::Coord::Coord ( size_t  i,
size_t  j 
) [inline]

Pass in the two coords.

0 is the slower varying coordinate.


Member Function Documentation

template<class X>
size_t code::Dim2D< X >::Coord::first (  )  const [inline]

The first (row) coordinate.

template<class X>
size_t code::Dim2D< X >::Coord::operator[] ( size_t  i  )  const [inline]

i should be 0 or 1 only.

O is the slower varying coordinate.

template<class X>
size_t code::Dim2D< X >::Coord::second (  )  const [inline]

The second (col) coordinate.


Generated on Fri May 4 13:40:11 2012 for WDSS-IIw2 by  doxygen 1.4.7