oln::topo::inter_pixel::internal::dir_traits< 2 > Struct Template Reference

Provides the enum dir for 2D. More...

#include <dir.hh>

List of all members.

Public Types

enum  dir { east, north, west, south }
typedef enum oln::topo::inter_pixel::internal::dir_traits<
2 >::dir 
ret

Static Public Member Functions

static ret first ()
 First direction.
static ret last ()
 Last direction.
static ret prev (ret i)
 Prev direction (with Prev(first()) == last()).
static ret next (ret i)
 Next direction (with next(last()) == first()).
static ret opposite (ret i)


Detailed Description

template<>
struct oln::topo::inter_pixel::internal::dir_traits< 2 >

Provides the enum dir for 2D.

Definition at line 48 of file dir.hh.


Member Function Documentation

static ret oln::topo::inter_pixel::internal::dir_traits< 2 >::opposite ( ret  i  )  [inline, static]

Opposit direction.

Todo:
FIXME: no modulus.

Definition at line 85 of file dir.hh.

00086           {
00087             return ret((i + 2) % 4);
00088           }


The documentation for this struct was generated from the following file:
Generated on Tue Feb 20 20:29:26 2007 for Olena by  doxygen 1.5.1