libgexf::AttValueIter Class Reference

Iterator on attribute values. More...

#include <attvalueiter.h>

Inheritance diagram for libgexf::AttValueIter:

libgexf::AbstractIter

List of all members.

Public Types

enum  Type { NODE, EDGE }
 Possible type of element.

Public Member Functions

 AttValueIter (const Data *d, const libgexf::t_id id, const AttValueIter::Type t)
 Constructor.
AttValueIterbegin ()
 Init.
bool hasNext () const
 Test next element in collection.
libgexf::t_id next ()
 Iterate.
std::string currentValue () const
 Get value.
std::string currentName () const
 Get attribute name.


Detailed Description

Iterator on attribute values.

Constructor & Destructor Documentation

libgexf::AttValueIter::AttValueIter ( const Data d,
const libgexf::t_id  id,
const AttValueIter::Type  t 
)

Constructor.

Parameters:
d : Reference to the Data object
id : Node or edge ID
t : NODE or EDGE


Member Function Documentation

AttValueIter * libgexf::AttValueIter::begin (  )  [virtual]

Init.

Initialize (or re-initialize) the iterator.

Returns:
an instance of the iterator

Implements libgexf::AbstractIter.

bool libgexf::AttValueIter::hasNext (  )  const [virtual]

Test next element in collection.

Verify if another element exists.

Returns:
true if another element exists, false otherwise.

Implements libgexf::AbstractIter.

t_id libgexf::AttValueIter::next (  )  [virtual]

Iterate.

Get next element in collection.

Returns:
The attribute ID.

Implements libgexf::AbstractIter.

string libgexf::AttValueIter::currentValue (  )  const

Get value.

Returns:
The attribute value of the node/edge

string libgexf::AttValueIter::currentName (  )  const

Get attribute name.

Returns:
The attribute name


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

Generated on Fri Dec 11 00:33:33 2009 for libgexf by  doxygen 1.5.6