Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members

dbm::fed_t::iterator Class Reference

Mutable iterator -> iterate though dbm_t. More...

#include <fed.h>

List of all members.

Public Member Functions

 iterator ()
 Special constructor to end iterations.
 iterator (ifed_t *fed)
 Initialize the iterator of a federation.
dbm_t & operator * () const
 Dereference to dbm_t,.
dbm_t * operator-> () const
 Dereference to dbm_t*,.
raw_t * operator() () const
 Mutable access to the matrix as for fed_t,.
raw_t operator() (cindex_t i, cindex_t j) const
iterator & operator++ ()
 Increment iterator,.
bool null () const
 Test if there are DBMs left on the list.
bool hasNext () const
bool operator== (const iterator &arg) const
 Equality test of the internal fdbm_t*.
bool operator!= (const iterator &arg) const
void remove ()
 Remove (and deallocate) current dbm_t.
void removeEmpty ()
 Remove (and deallocate) current empty dbm_t.
fdbm_t * extract ()
 Extract the current DBM from the list.
void insert (fdbm_t *dbm)
 Insert a DBM in the list at the current position.

Static Public Attributes

static const fdbm_t * ENDF = NULL
 End of list.

Private Attributes

fdbm_t ** fdbm
ifed_t * ifed
 list of DBMs


Detailed Description

Mutable iterator -> iterate though dbm_t.


Constructor & Destructor Documentation

dbm::fed_t::iterator::iterator (   )  [inline]
 

Special constructor to end iterations.

dbm::fed_t::iterator::iterator (  ifed_t *  fed  )  [inline]
 

Initialize the iterator of a federation.

Parameters:
fed,: federation.


Member Function Documentation

fdbm_t * dbm::fed_t::iterator::extract (   )  [inline]
 

Extract the current DBM from the list.

The result->getNext() points to the rest of the list.

bool dbm::fed_t::iterator::hasNext (   )  const [inline]
 

Returns:
true if there is another DBM after,
Precondition:
!null()

void dbm::fed_t::iterator::insert (  fdbm_t *  dbm  )  [inline]
 

Insert a DBM in the list at the current position.

bool dbm::fed_t::iterator::null (   )  const [inline]
 

Test if there are DBMs left on the list.

dbm_t & dbm::fed_t::iterator::operator * (   )  const [inline]
 

Dereference to dbm_t,.

Precondition:
!null()

bool dbm::fed_t::iterator::operator!= (  const iterator &  arg  )  const [inline]
 

raw_t dbm::fed_t::iterator::operator() (  cindex_t  i,
cindex_t  j
)  const [inline]
 

raw_t * dbm::fed_t::iterator::operator() (   )  const [inline]
 

Mutable access to the matrix as for fed_t,.

Precondition:
!null()

fed_t::iterator & dbm::fed_t::iterator::operator++ (   )  [inline]
 

Increment iterator,.

Precondition:
!null()

dbm_t * dbm::fed_t::iterator::operator-> (   )  const [inline]
 

Dereference to dbm_t*,.

Precondition:
!null()

bool dbm::fed_t::iterator::operator== (  const iterator &  arg  )  const [inline]
 

Equality test of the internal fdbm_t*.

void dbm::fed_t::iterator::remove (   )  [inline]
 

Remove (and deallocate) current dbm_t.

void dbm::fed_t::iterator::removeEmpty (   )  [inline]
 

Remove (and deallocate) current empty dbm_t.


Member Data Documentation

const fdbm_t * dbm::fed_t::iterator::ENDF = NULL [static]
 

End of list.

fdbm_t** dbm::fed_t::iterator::fdbm [private]
 

ifed_t* dbm::fed_t::iterator::ifed [private]
 

list of DBMs


The documentation for this class was generated from the following files:
Generated on Fri Jun 30 00:02:47 2006 for Module dbm by  doxygen 1.4.2