libgexf
0.1.3
|
Iterator on attribute values. More...
#include <attvalueiter.h>
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... | |
AttValueIter * | begin () |
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... | |
Iterator on attribute values.
libgexf::AttValueIter::AttValueIter | ( | const Data * | d, |
const libgexf::t_id | id, | ||
const AttValueIter::Type | t | ||
) |
Constructor.
d | : Reference to the Data object |
id | : Node or edge ID |
t | : NODE or EDGE |
|
virtual |
Init.
Initialize (or re-initialize) the iterator.
Implements libgexf::AbstractIter.
string libgexf::AttValueIter::currentName | ( | ) | const |
Get attribute name.
string libgexf::AttValueIter::currentValue | ( | ) | const |
Get value.
|
virtual |
Test next element in collection.
Verify if another element exists.
Implements libgexf::AbstractIter.
|
virtual |