Generated on Mon Jun 23 17:18:27 2008 for ell-2.3.0 by doxygen 1.5.1

ell::SuccessiveNeighborList Class Reference

#include <IterableNeighbors.hh>


Detailed Description

A generic NeighborList based on the IterableNeighbors interface that successively generates all neighbors of a given state.

Author:
Martin Mann

Definition at line 62 of file IterableNeighbors.hh.

Public Member Functions

virtual Statefirst (State::NeighborList::ItState **itstate) const
virtual Statenext (State::NeighborList::ItState *itstate, State *const elem) const
 SuccessiveNeighborList (const IterableNeighbors *source_)
virtual ~SuccessiveNeighborList ()

Protected Attributes

const IterableNeighborssource

Data Structures

class  ItState
 encodes the last neighbor index used More...


Constructor & Destructor Documentation

ell::SuccessiveNeighborList::SuccessiveNeighborList ( const IterableNeighbors source_  ) 

Definition at line 9 of file IterableNeighbors.cc.

ell::SuccessiveNeighborList::~SuccessiveNeighborList (  )  [virtual]

Definition at line 13 of file IterableNeighbors.cc.


Member Function Documentation

State * ell::SuccessiveNeighborList::first ( State::NeighborList::ItState **  itstate  )  const [virtual]

Returns a pointer to the first element of the virtual list of neighbors of the state of origin. Returns NULL if no neighbors exist.

Parameters:
itstate constains state of the list iterator
Returns:
first element of NeighborList

Definition at line 41 of file IterableNeighbors.cc.

State * ell::SuccessiveNeighborList::next ( State::NeighborList::ItState itstate,
State *const   elem 
) const [virtual]

Returns a pointer to the next element of the virtual list of neighbors of the state of origin. Returns NULL if no more neighbors exist.

Parameters:
itstate constains state of the list iterator
elem this State is used for the next neighbor
Returns:
next element in NeighborList

Definition at line 17 of file IterableNeighbors.cc.


Field Documentation

Definition at line 65 of file IterableNeighbors.hh.


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