BDE 4.39.x Production Release
Loading...
Searching...
No Matches
ball::CategoryManagerIter Class Reference

#include <ball_categorymanager.h>

Detailed Description

This class defines an iterator providing sequential, read-only access to the categories in the registry of a category manager. The order of the iteration is undefined.

Deprecated:
Use CategoryManager::visitCategories accessor instead.

See ball_categorymanager

Public Member Functions

 CategoryManagerIter (const CategoryManager &categoryManager)
 
 ~CategoryManagerIter ()=default
 
void operator++ ()
 
 operator const void * () const
 
const Categoryoperator() () const
 

Constructor & Destructor Documentation

◆ CategoryManagerIter()

ball::CategoryManagerIter::CategoryManagerIter ( const CategoryManager categoryManager)
inlineexplicit

Create an iterator providing non-modifiable access to the categories in the specified categoryManager that is initialized to refer to the first category in the sequence of categories in the registry of categoryManager, if one exists, and is initialized to be invalid otherwise. The order of iteration is undefined.

Precondition
The behavior is undefined unless the lifetime of categoryManager is at least as long as the lifetime of this iterator.

◆ ~CategoryManagerIter()

ball::CategoryManagerIter::~CategoryManagerIter ( )
default

Destroy this iterator.

Member Function Documentation

◆ operator const void *()

ball::CategoryManagerIter::operator const void * ( ) const
inline

Return a non-zero value if this iterator is valid, and 0 otherwise.

◆ operator()()

const Category & ball::CategoryManagerIter::operator() ( ) const
inline

Return a const reference to the category currently referred to by this iterator.

Precondition
The behavior is undefined unless this iterator is valid.

◆ operator++()

void ball::CategoryManagerIter::operator++ ( )
inline

Advance this iterator to refer to the next unvisited category. If no such category exists, this iterator becomes invalid.

Precondition
The behavior is undefined unless this iterator is initially valid.
Note
Note that the order of iteration is undefined.

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