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

#include <ball_loggermanager.h>

Detailed Description

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

Deprecated:
Use LoggerManager::visitCategories accessor instead.

See ball_loggermanager

Public Member Functions

 LoggerManagerCategoryIter (const LoggerManager &loggerManager)
 
 ~LoggerManagerCategoryIter ()=default
 
void operator++ ()
 
 operator const void * () const
 
const Categoryoperator() () const
 

Constructor & Destructor Documentation

◆ LoggerManagerCategoryIter()

ball::LoggerManagerCategoryIter::LoggerManagerCategoryIter ( const LoggerManager loggerManager)
inlineexplicit

Create an iterator providing non-modifiable access to the categories maintained by the specified loggerManager that is initialized to refer to the first category in the sequence of categories in the registry of loggerManager, 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 loggerManager is at least as long as the lifetime of this iterator.

◆ ~LoggerManagerCategoryIter()

ball::LoggerManagerCategoryIter::~LoggerManagerCategoryIter ( )
default

Member Function Documentation

◆ operator const void *()

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

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

◆ operator()()

const Category & ball::LoggerManagerCategoryIter::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::LoggerManagerCategoryIter::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: