Otawa  0.10
otawa::PropList::Getter Class Reference

This class is used for accessing all properties of property list with a given identifier. More...

#include <otawa/prop/PropList.h>

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

Public Member Functions

 Getter (const PropList *list, const AbstractIdentifier &id)
 Build an iterator on properties matching the given name. More...
 
 Getter (const PropList &list, const AbstractIdentifier &id)
 Build an iterator on properties matching the given name. More...
 
bool ended (void) const
 Test if there is still a property to examine. More...
 
Propertyitem (void) const
 Get the current property. More...
 
void next (void)
 Go to the next property. More...
 
 operator bool (void) const
 
 operator Property * (void) const
 
Getteroperator++ (void)
 
Getteroperator++ (int)
 
Propertyoperator* (void) const
 
Propertyoperator-> (void) const
 

Private Member Functions

void look (void)
 

Private Attributes

Iter iter
 
const AbstractIdentifier_id
 

Detailed Description

This class is used for accessing all properties of property list with a given identifier.

Constructor & Destructor Documentation

otawa::PropList::Getter::Getter ( const PropList list,
const AbstractIdentifier _id 
)
inline

Build an iterator on properties matching the given name.

Parameters
listProperty list to traverse.
_idLooked identifier.

References look().

otawa::PropList::Getter::Getter ( const PropList list,
const AbstractIdentifier _id 
)
inline

Build an iterator on properties matching the given name.

Parameters
listProperty list to traverse.
_idLooked identifier.

References look().

Member Function Documentation

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

Test if there is still a property to examine.

Returns
True if traversal is ended.

References otawa::PropList::Iter::ended(), and iter.

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

Get the current property.

References otawa::PropList::Iter::item(), and iter.

void otawa::PropList::Getter::look ( void  )
inlineprivate

References _id, and iter.

Referenced by Getter(), and next().

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

Go to the next property.

References iter, look(), and otawa::PropList::Iter::next().

elm::PreIterator< Getter , Property * >::operator bool ( void  ) const
inherited
elm::PreIterator< Getter , Property * >::operator Property * ( void  ) const
inherited
Property * elm::PreIterator< Getter , Property * >::operator* ( void  ) const
inherited
Getter & elm::PreIterator< Getter , Property * >::operator++ ( void  )
inherited
Getter & elm::PreIterator< Getter , Property * >::operator++ ( int  )
inherited
Property * elm::PreIterator< Getter , Property * >::operator-> ( void  ) const
inherited

Member Data Documentation

const AbstractIdentifier& otawa::PropList::Getter::_id
private

Referenced by look().

Iter otawa::PropList::Getter::iter
private

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


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