Horus Doc || C++ Reference || Class Overview   Pixels   Images   Detector   Geometry   Registry || Doxygen's quick Index  

HxCnum Class Reference

Basic coordinate enumerator. More...

#include <HxCnum.h>

List of all members.

Public Methods

 HxCnum ()
 Constructor. More...

 HxCnum (HxCoord *coords)
 Constructor. More...

 HxCnum (const HxCnum &rhs)
 Copy constructor. More...

HxCnum & operator= (const HxCnum &rhs)
 Assignment operator. More...

HxCnum & operator= (HxCoord *coords)
 Assignment operator. More...

int x ()
 The (current) x-coordinate. More...

int y ()
 The (current) y-coordinate. More...

int z ()
 The (current) z-coordinate. More...

void inc ()
 Go to the next coordinate. More...

bool operator!= (const HxCnum &rhs)
 Comparison operator. More...


Detailed Description

Basic coordinate enumerator.


Constructor & Destructor Documentation

HxCnum::HxCnum   [inline]
 

Constructor.

00063     : _coords(0)
00064 {
00065 }

HxCnum::HxCnum HxCoord   coords [inline]
 

Constructor.

00069     : _coords(coords)
00070 {
00071 }

HxCnum::HxCnum const HxCnum &    rhs [inline]
 

Copy constructor.

00075     : _coords(rhs._coords)
00076 {
00077 }


Member Function Documentation

HxCnum & HxCnum::operator= const HxCnum &    rhs [inline]
 

Assignment operator.

00081 {
00082     _coords = rhs._coords;
00083     return *this;
00084 }

HxCnum & HxCnum::operator= HxCoord   coords [inline]
 

Assignment operator.

00088 {
00089     _coords = coords;
00090     return *this;
00091 }

int HxCnum::x   [inline]
 

The (current) x-coordinate.

00095 {
00096     return _coords->x;
00097 }

int HxCnum::y   [inline]
 

The (current) y-coordinate.

00101 {
00102     return _coords->y;
00103 }

int HxCnum::z   [inline]
 

The (current) z-coordinate.

00107 {
00108     return _coords->y;
00109 }

void HxCnum::inc   [inline]
 

Go to the next coordinate.

00113 {
00114     _coords++;
00115 }

bool HxCnum::operator!= const HxCnum &    rhs [inline]
 

Comparison operator.

00119 {
00120     return _coords != rhs._coords;
00121 }


The documentation for this class was generated from the following file:
Generated on Mon Jan 27 15:48:58 2003 for C++Reference by doxygen1.2.12 written by Dimitri van Heesch, © 1997-2001