OWLNext    7.0
Borland's Object Windows Library for the modern age
Loading...
Searching...
No Matches
owl::TRegKeyIterator Class Reference

Iterator for walking thru the subkeys of a key. More...

#include <owl/registry.h>

Public Member Functions

 TRegKeyIterator (const TRegKey &key)
 Creates a subkey iterator for a registration key.
 
 operator bool ()
 Tests the validity of this iterator.
 
uint32 operator++ ()
 Preincrements to the next subkey.
 
uint32 operator++ (int)
 Postincrements to the next subkey.
 
uint32 operator-- ()
 Predecrements to the previous subkey.
 
uint32 operator-- (int)
 Postdecrements to the previous subkey.
 
uint32 operator[] (int index)
 Sets the index of the iterator to the passed value.
 
int Current () const
 Returns the index to the current subkey.
 
const TRegKey & BaseKey () const
 Returns the registration key this iterator is bound to.
 
void Reset ()
 Resets the subkey index to zero.
 

Detailed Description

Iterator for walking thru the subkeys of a key.

Definition at line 402 of file registry.h.

Constructor & Destructor Documentation

◆ TRegKeyIterator()

owl::TRegKeyIterator::TRegKeyIterator ( const TRegKey & key)
inline

Creates a subkey iterator for a registration key.

Definition at line 1131 of file registry.h.

Member Function Documentation

◆ BaseKey()

const TRegKey & owl::TRegKeyIterator::BaseKey ( ) const
inline

Returns the registration key this iterator is bound to.

Definition at line 1200 of file registry.h.

◆ Current()

int owl::TRegKeyIterator::Current ( ) const
inline

Returns the index to the current subkey.

Definition at line 1192 of file registry.h.

◆ operator bool()

owl::TRegKeyIterator::operator bool ( )
inline

Tests the validity of this iterator.

Returns
True if the iterator's index is greater than or equal to 0 and less than the number of subkeys.

Definition at line 1142 of file registry.h.

◆ operator++() [1/2]

uint32 owl::TRegKeyIterator::operator++ ( )
inline

Preincrements to the next subkey.

Definition at line 1150 of file registry.h.

◆ operator++() [2/2]

uint32 owl::TRegKeyIterator::operator++ ( int )
inline

Postincrements to the next subkey.

Definition at line 1158 of file registry.h.

◆ operator--() [1/2]

uint32 owl::TRegKeyIterator::operator-- ( )
inline

Predecrements to the previous subkey.

Definition at line 1166 of file registry.h.

◆ operator--() [2/2]

uint32 owl::TRegKeyIterator::operator-- ( int )
inline

Postdecrements to the previous subkey.

Definition at line 1174 of file registry.h.

◆ operator[]()

uint32 owl::TRegKeyIterator::operator[] ( int index)
inline

Sets the index of the iterator to the passed value.

Returns
The new index.

Definition at line 1183 of file registry.h.

References owl::TRegKey::GetSubkeyCount(), and PRECONDITION.

◆ Reset()

void owl::TRegKeyIterator::Reset ( )
inline

Resets the subkey index to zero.

Definition at line 1208 of file registry.h.


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