seal::Coordinate< dimension > Class Template Reference

#include <coord.h>

Inheritance diagram for seal::Coordinate< dimension >:

seal::RandomAccess< unsigned int >

List of all members.

Public Member Functions

 Coordinate (void)
 Coordinate (const Coordinate< dimension > &c)
virtual ~Coordinate ()
unsigned int & operator[] (const int index) throw (OutOfRangeException<int>)
const unsigned int & operator[] (const int index) const throw (OutOfRangeException<int>)


Detailed Description

template<unsigned int dimension>
class seal::Coordinate< dimension >

A class which encapsulates an n-dimensional coordinate. It is a template class where the template argument specifies the dimension of the coordinate object.

Constructor & Destructor Documentation

template<unsigned int dimension>
seal::Coordinate< dimension >::Coordinate ( void   )  [inline]

Constructor.

template<unsigned int dimension>
seal::Coordinate< dimension >::Coordinate ( const Coordinate< dimension > &  c  )  [inline]

Copy constructor.

template<unsigned int dimension>
virtual seal::Coordinate< dimension >::~Coordinate (  )  [inline, virtual]

Destructor.


Member Function Documentation

template<unsigned int dimension>
unsigned int & seal::Coordinate< dimension >::operator[] ( const int  index  )  throw (OutOfRangeException<int>) [inline, virtual]

Returns a reference to the coordinate value of the coordinate with the specified index. If the index is beyond the range of the seal::Coordinate object, then it throws an seal::OutOfRangeException.

Implements seal::RandomAccess< unsigned int >.

template<unsigned int dimension>
const unsigned int & seal::Coordinate< dimension >::operator[] ( const int  index  )  const throw (OutOfRangeException<int>) [inline, virtual]

Returns a constant reference to the coordinate value of the coordinate with the specified index. If the index is beyond the range of the seal::Coordinate object, then it throws an seal::OutOfRangeException.

Implements seal::RandomAccess< unsigned int >.


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

Generated on Sat May 16 21:35:20 2009 for SEAL by  doxygen 1.5.5