libgexf
0.1.3
|
Iterator on attributes. More...
#include <attributeiter.h>
Public Types | |
enum | Type { NODE, EDGE } |
Possible type of element. | |
Public Member Functions | |
AttributeIter (const Data *d, const AttributeIter::Type t) | |
Constructor. More... | |
AttributeIter * | begin () |
Init. More... | |
bool | hasNext () const |
Test next element in collection. More... | |
libgexf::t_id | next () |
Iterate. More... | |
std::string | currentTitle () const |
Get title. More... | |
libgexf::t_attr_type | currentType () const |
Get type. More... | |
Iterator on attributes.
libgexf::AttributeIter::AttributeIter | ( | const Data * | d, |
const AttributeIter::Type | t | ||
) |
Constructor.
d | : Reference to the Data object |
t | : NODE or EDGE |
|
virtual |
Init.
Initialize (or re-initialize) the iterator.
Implements libgexf::AbstractIter.
string libgexf::AttributeIter::currentTitle | ( | ) | const |
Get title.
t_attr_type libgexf::AttributeIter::currentType | ( | ) | const |
Get type.
|
virtual |
Test next element in collection.
Verify if another element exists.
Implements libgexf::AbstractIter.
|
virtual |