H3D::H3DNodeDatabase::FieldDBConstIterator Class Reference

The FieldDBConstIterator is an iterator class used for iterating over the field instances in an H3DNodeDatabase. More...

#include <H3DNodeDatabase.h>

List of all members.

Public Member Functions

 FieldDBConstIterator (H3DNodeDatabase *_ndb, bool is_end)
 Constructor.
 FieldDBConstIterator (const FieldDBConstIterator &f)
 Copy constructor.
FieldDBConstIteratoroperator++ (int)
 Pre-increment operator.
FieldDBConstIteratoroperator++ ()
 Post-increment operator.
bool operator== (FieldDBConstIterator iter)
 Equals operator.
bool operator!= (FieldDBConstIterator iter)
 Not equals operator.
string operator * ()
 Dereference operator.

Protected Types

enum  Status { LOCAL, INHERITED, END }

Protected Attributes

Status status
 The status of the iterator.
FieldDBType::const_iterator local_iterator
 Iterator used for iterating through the local fields in the H3DNodeDatabase.Only valid if status == LOCAL.
FieldDBConstIteratorinherited_iterator
 Iterator used for iterating through the fields inherited from the parent database if it exists.
H3DNodeDatabasendb
 The database which fields this iterator iterates through.


Detailed Description

The FieldDBConstIterator is an iterator class used for iterating over the field instances in an H3DNodeDatabase.

Dereferensing the iterator will give the name of the field as a string.


Member Enumeration Documentation

enum H3D::H3DNodeDatabase::FieldDBConstIterator::Status [protected]
 

Enumerator:
LOCAL  The iterator is currently iterating through the local field definitions.
INHERITED  The iterator is currently iterating through the field definitions of the inherited database fields.
END  The iterator is at end.


Member Function Documentation

string H3D::H3DNodeDatabase::FieldDBConstIterator::operator *  )  [inline]
 

Dereference operator.

status == LOCAL )


Member Data Documentation

FieldDBConstIterator* H3D::H3DNodeDatabase::FieldDBConstIterator::inherited_iterator [protected]
 

Iterator used for iterating through the fields inherited from the parent database if it exists.

Only valid if status == INHERITED.

Status H3D::H3DNodeDatabase::FieldDBConstIterator::status [protected]
 

The status of the iterator.

Defines what the iterator is currently pointing at.


Generated on Thu Aug 24 12:39:21 2006 for H3D API by  doxygen 1.4.5