biu::LatticeNeighborhoodCUB Class Reference
#include <LatticeDescriptorCUB.hh>
Inheritance diagram for biu::LatticeNeighborhoodCUB:
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 NeighborVector & | getElement (const Move &move) const |
virtual const NeighborVector & | getElement (const IntPoint &vector) const |
virtual const NeighborVector & | getElementByIndex (unsigned int index) const |
virtual bool | isElement (const IntPoint &vector) 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 Attributes | |
const MoveAlphabet * | moveAlph |
NeighSet | neighSet |
std::vector< const NeighborVector * > | neighVec |
std::map< IntPoint, const NeighborVector * > | 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 70 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::LatticeNeighborhood::isElement | ( | const IntPoint & | vector | ) | const [virtual, inherited] |
Returns whether or not a vector belongs to the neighborhood.
- Parameters:
-
vector the vector to check
- Returns:
- true if the vector is part of the neighborhood, false otherwise
virtual bool biu::LatticeNeighborhoodCUB::isElement | ( | const IntPoint & | v | ) | const [inline, virtual] |
Returns whether or not a vector v belongs to the neighborhood.
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] |
NeighSet biu::LatticeNeighborhood::neighSet [protected, inherited] |
std::vector<const NeighborVector*> biu::LatticeNeighborhood::neighVec [protected, inherited] |
a crossreference from move index to NeighborVectors
Definition at line 24 of file LatticeNeighborhood.hh.
std::map<IntPoint,const NeighborVector*> biu::LatticeNeighborhood::vec2neigh [protected, inherited] |
a crossreference from vectors to NeighborVectors
Definition at line 27 of file LatticeNeighborhood.hh.
The documentation for this class was generated from the following file:
- src/biu/LatticeDescriptorCUB.hh