Otawa  0.10
otawa::PropList::Iter Class Reference

This iterator is used for reading all properties of a property list. More...

#include <otawa/prop/PropList.h>

Inheritance diagram for otawa::PropList::Iter:
elm::PreIterator< Iter, Property * >

Public Member Functions

 Iter (const PropList &list)
 Build a property iterator. More...
 
 Iter (const PropList *list)
 Build a property iterator. More...
 
void next (void)
 Go to the next property. More...
 
bool ended (void) const
 Test if there is still a property to examine. More...
 
Propertyitem (void) const
 Get the current property. More...
 
bool operator== (const AbstractIdentifier *id) const
 Equality overload for testing if a property is equals to an identifier. More...
 
bool operator!= (const AbstractIdentifier *id) const
 Equality overload for testing if a property is equals to an identifier. More...
 
bool operator== (const AbstractIdentifier &id) const
 Equality overload for testing if a property is equals to an identifier. More...
 
bool operator!= (const AbstractIdentifier &id) const
 Equality overload for testing if a property is equals to an identifier. More...
 
 operator bool (void) const
 
 operator Property * (void) const
 
Iteroperator++ (void)
 
Iteroperator++ (int)
 
Propertyoperator* (void) const
 
Propertyoperator-> (void) const
 

Private Attributes

Propertyprop
 

Detailed Description

This iterator is used for reading all properties of a property list.

Constructor & Destructor Documentation

otawa::PropList::Iter::Iter ( const PropList list)
inline

Build a property iterator.

Parameters
listProperty list to traverse.
otawa::PropList::Iter::Iter ( const PropList list)
inline

Build a property iterator.

Parameters
listProperty list to traverse.

Member Function Documentation

bool otawa::PropList::Iter::ended ( void  ) const
inline

Test if there is still a property to examine.

Returns
True if traversal is ended.

References prop.

Referenced by otawa::display::GraphVizItem::attributes(), otawa::PropList::Getter::ended(), and otawa::display::GraphVizItem::getPropertiesString().

Property * otawa::PropList::Iter::item ( void  ) const
inline

Get the current property.

References prop.

Referenced by otawa::PropList::Getter::item(), operator!=(), and operator==().

void otawa::PropList::Iter::next ( void  )
inline

Go to the next property.

References otawa::Property::next(), and prop.

Referenced by otawa::PropList::Getter::next().

elm::PreIterator< Iter , Property * >::operator bool ( void  ) const
inherited
elm::PreIterator< Iter , Property * >::operator Property * ( void  ) const
inherited
bool otawa::PropList::Iter::operator!= ( const AbstractIdentifier id) const
inline

Equality overload for testing if a property is equals to an identifier.

References otawa::Property::id(), and item().

bool otawa::PropList::Iter::operator!= ( const AbstractIdentifier id) const
inline

Equality overload for testing if a property is equals to an identifier.

References otawa::Property::id(), and item().

Property * elm::PreIterator< Iter , Property * >::operator* ( void  ) const
inherited
Iter & elm::PreIterator< Iter , Property * >::operator++ ( int  )
inherited
Iter & elm::PreIterator< Iter , Property * >::operator++ ( void  )
inherited
Property * elm::PreIterator< Iter , Property * >::operator-> ( void  ) const
inherited
bool otawa::PropList::Iter::operator== ( const AbstractIdentifier id) const
inline

Equality overload for testing if a property is equals to an identifier.

References otawa::Property::id(), and item().

bool otawa::PropList::Iter::operator== ( const AbstractIdentifier id) const
inline

Equality overload for testing if a property is equals to an identifier.

References otawa::Property::id(), and item().

Member Data Documentation

Property* otawa::PropList::Iter::prop
private

Referenced by ended(), item(), and next().


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