libgexf  0.1.3
Public Types | Public Member Functions | List of all members
libgexf::AttValueIter Class Reference

Iterator on attribute values. More...

#include <attvalueiter.h>

Inheritance diagram for libgexf::AttValueIter:
libgexf::AbstractIter

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. More...
 
AttValueIterbegin ()
 Init. More...
 
bool hasNext () const
 Test next element in collection. More...
 
libgexf::t_id next ()
 Iterate. More...
 
std::string currentValue () const
 Get value. More...
 
std::string currentName () const
 Get attribute name. More...
 

Detailed Description

Iterator on attribute values.

Constructor & Destructor Documentation

◆ AttValueIter()

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

◆ begin()

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

Init.

Initialize (or re-initialize) the iterator.

Returns
an instance of the iterator

Implements libgexf::AbstractIter.

◆ currentName()

string libgexf::AttValueIter::currentName ( ) const

Get attribute name.

Returns
The attribute name

◆ currentValue()

string libgexf::AttValueIter::currentValue ( ) const

Get value.

Returns
The attribute value of the node/edge

◆ hasNext()

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.

◆ next()

t_id libgexf::AttValueIter::next ( )
virtual

Iterate.

Get next element in collection.

Returns
The attribute ID.

Implements libgexf::AbstractIter.


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