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

Iterator on attributes. More...

#include <attributeiter.h>

Inheritance diagram for libgexf::AttributeIter:
libgexf::AbstractIter

Public Types

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

Public Member Functions

 AttributeIter (const Data *d, const AttributeIter::Type t)
 Constructor. More...
 
AttributeIterbegin ()
 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...
 

Detailed Description

Iterator on attributes.

Constructor & Destructor Documentation

◆ AttributeIter()

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

◆ begin()

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

Init.

Initialize (or re-initialize) the iterator.

Returns
an instance of the iterator

Implements libgexf::AbstractIter.

◆ currentTitle()

string libgexf::AttributeIter::currentTitle ( ) const

Get title.

Returns
The attribute title

◆ currentType()

t_attr_type libgexf::AttributeIter::currentType ( ) const

Get type.

Returns
The attribute type

◆ hasNext()

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.

◆ next()

t_id libgexf::AttributeIter::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: