Quick Links:

bal | bbl | bdl | bsl

Public Member Functions

ball::CategoryManagerIter Class Reference

#include <ball_categorymanager.h>

List of all members.

Public Member Functions

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

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 the CategoryManager::visitCategories accessor instead.

See Component ball_categorymanager


Constructor & Destructor Documentation

ball::CategoryManagerIter::CategoryManagerIter ( const CategoryManager categoryManager  )  [explicit]

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. The behavior is undefined unless the lifetime of categoryManager is at least as long as the lifetime of this iterator.

ball::CategoryManagerIter::~CategoryManagerIter (  ) 

Destroy this iterator.


Member Function Documentation

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

Advance this iterator to refer to the next unvisited category. If no such category exists, this iterator becomes invalid. The behavior is undefined unless this iterator is initially valid. Note that the order of iteration is undefined.

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

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

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

Return a const reference to the category currently referred to by this iterator. The behavior is undefined unless this iterator is valid.


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