Generated on Tue Dec 16 12:50:06 2008 for BIU-2.2.0 by doxygen 1.5.1

biu::LatticeNeighborhoodCUB Class Reference

#include <LatticeDescriptorCUB.hh>

Inheritance diagram for biu::LatticeNeighborhoodCUB:

Inheritance graph
[legend]

Detailed Description

A specialized LatticeNeighborhood to handle the the NeighborVector objects of the cubic lattice and the access to them.

Definition at line 50 of file LatticeDescriptorCUB.hh.

Public Types

typedef NeighSet::const_iterator const_iterator

Public Member Functions

virtual const_iterator begin () const
virtual const_iterator end () const
virtual const NeighborVectorgetElement (const Move &move) const
virtual const NeighborVectorgetElement (const IntPoint &vector) const
virtual const NeighborVectorgetElementByIndex (unsigned int index) const
virtual bool isElement (const IntPoint &v) const
 LatticeNeighborhoodCUB (const LatticeNeighborhood &nh)
 LatticeNeighborhoodCUB (const MoveAlphabet *moveAlph, const NeighSet &neighbors)
virtual unsigned int size () const
virtual ~LatticeNeighborhoodCUB ()

Protected Types

typedef __gnu_cxx::hash_map<
IntPoint, const NeighborVector *,
hash_IntPoint > 
P2N_MAP

Protected Attributes

const MoveAlphabetmoveAlph
NeighSet neighSet
std::vector< const NeighborVector * > neighVec
P2N_MAP vec2neigh


Member Typedef Documentation

typedef NeighSet::const_iterator biu::LatticeNeighborhood::const_iterator [inherited]

a constant iterator to access the elements of the neighborhood

Definition at line 98 of file LatticeNeighborhood.hh.

typedef __gnu_cxx::hash_map< IntPoint, const NeighborVector*, hash_IntPoint > biu::LatticeNeighborhood::P2N_MAP [protected, inherited]

Definition at line 41 of file LatticeNeighborhood.hh.


Constructor & Destructor Documentation

biu::LatticeNeighborhoodCUB::LatticeNeighborhoodCUB ( const MoveAlphabet moveAlph,
const NeighSet neighbors 
) [inline]

Definition at line 53 of file LatticeDescriptorCUB.hh.

biu::LatticeNeighborhoodCUB::LatticeNeighborhoodCUB ( const LatticeNeighborhood nh  )  [inline]

Definition at line 59 of file LatticeDescriptorCUB.hh.

virtual biu::LatticeNeighborhoodCUB::~LatticeNeighborhoodCUB (  )  [inline, virtual]

Definition at line 65 of file LatticeDescriptorCUB.hh.


Member Function Documentation

virtual const_iterator biu::LatticeNeighborhood::begin (  )  const [virtual, inherited]

Returns a constant iterator to the first element of the neighborhood

virtual const_iterator biu::LatticeNeighborhood::end (  )  const [virtual, inherited]

Returns a constant iterator behind the last element of the neighborhood

virtual const NeighborVector& biu::LatticeNeighborhood::getElement ( const Move move  )  const [virtual, inherited]

Returns the corresponding NeighborVector.

Parameters:
move has to be element of the underlying move string alphabet
Returns:
the neighbor vector that corresponds to the given move

virtual const NeighborVector& biu::LatticeNeighborhood::getElement ( const IntPoint vector  )  const [virtual, inherited]

Returns the corresponding NeighborVector.

Parameters:
vector has to be element of this neighborhood
Returns:
the neighbor vector that corresponds to the given vector

virtual const NeighborVector& biu::LatticeNeighborhood::getElementByIndex ( unsigned int  index  )  const [virtual, inherited]

Returns the corresponding NeighborVector.

Parameters:
index has to be the index of an element of this neighborhood (has to be less than the return value of size())
Returns:
the neighbor vector of the given index

virtual bool biu::LatticeNeighborhoodCUB::isElement ( const IntPoint v  )  const [inline, virtual]

Returns whether or not a vector v belongs to the neighborhood.

Reimplemented from biu::LatticeNeighborhood.

Definition at line 68 of file LatticeDescriptorCUB.hh.

virtual unsigned int biu::LatticeNeighborhood::size (  )  const [virtual, inherited]

Returns the number of elements of the neighborhood.


Field Documentation

const MoveAlphabet* biu::LatticeNeighborhood::moveAlph [protected, inherited]

the underlying move string alphabet

Definition at line 48 of file LatticeNeighborhood.hh.

the NeighborVector data

Definition at line 49 of file LatticeNeighborhood.hh.

std::vector<const NeighborVector*> biu::LatticeNeighborhood::neighVec [protected, inherited]

a crossreference from move index to NeighborVectors

Definition at line 52 of file LatticeNeighborhood.hh.

a crossreference from vectors to NeighborVectors

Definition at line 55 of file LatticeNeighborhood.hh.


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