libgexf::AttributeIter Class Reference

Iterator on attributes. More...

#include <attributeiter.h>

Inheritance diagram for libgexf::AttributeIter:

libgexf::AbstractIter

List of all members.

Public Types

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

Public Member Functions

 AttributeIter (const Data *d, const AttributeIter::Type t)
 Constructor.
AttributeIterbegin ()
 Init.
bool hasNext () const
 Test next element in collection.
libgexf::t_id next ()
 Iterate.
std::string currentTitle () const
 Get title.
libgexf::t_attr_type currentType () const
 Get type.


Detailed Description

Iterator on attributes.

Constructor & Destructor Documentation

libgexf::AttributeIter::AttributeIter ( const Data d,
const AttributeIter::Type  t 
)

Constructor.

Parameters:
d : Reference to the Data object
t : NODE or EDGE


Member Function Documentation

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

Init.

Initialize (or re-initialize) the iterator.

Returns:
an instance of the iterator

Implements libgexf::AbstractIter.

bool libgexf::AttributeIter::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::AttributeIter::next (  )  [virtual]

Iterate.

Get next element in collection.

Returns:
The attribute ID.

Implements libgexf::AbstractIter.

string libgexf::AttributeIter::currentTitle (  )  const

Get title.

Returns:
The attribute title

t_attr_type libgexf::AttributeIter::currentType (  )  const

Get type.

Returns:
The attribute type


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