tbx  0.7.3
Public Member Functions | Friends | List of all members
tbx::res::ResMenu::iterator Class Reference

Iterator for menu items. More...

#include <resmenu.h>

Inheritance diagram for tbx::res::ResMenu::iterator:
ResIteratorBase< ResMenu >

Public Member Functions

iteratoroperator++ ()
 Increment iterator. More...
 
iterator operator++ (int)
 Increment iterator. More...
 
ResMenuItem operator* () const
 Get the menu item this iterator refers to. More...
 
- Public Member Functions inherited from ResIteratorBase< ResMenu >
bool operator== (const ResIteratorBase &other) const
 Check if this ResIteratorBase is the same as another. More...
 
bool operator!= (const ResIteratorBase &other) const
 Check if this ResIteratorBase is not the same as another. More...
 

Friends

class ResMenu
 

Additional Inherited Members

- Protected Member Functions inherited from ResIteratorBase< ResMenu >
 ResIteratorBase (const ResMenu *object, int offset)
 Construct from an object and initial offset. More...
 
- Protected Attributes inherited from ResIteratorBase< ResMenu >
const ResMenu * _object
 Reference to object being iterated.
 
int _offset
 Offset of current item being iterated.
 

Detailed Description

Iterator for menu items.

Note: You can not use *iterator=value as the iterator returns a copy of the item in the Menu not the item itself.

Member Function Documentation

ResMenuItem tbx::res::ResMenu::iterator::operator* ( ) const
inline

Get the menu item this iterator refers to.

Returns
menu item resource
iterator& tbx::res::ResMenu::iterator::operator++ ( )
inline

Increment iterator.

Returns
iterator after increment
iterator tbx::res::ResMenu::iterator::operator++ ( int  )
inline

Increment iterator.

Returns
iterator before increment

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