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

Iterator for walking through the values of a key. More...

#include <owl/registry.h>

Public Member Functions

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

Detailed Description

Iterator for walking through the values of a key.

Definition at line 428 of file registry.h.

Constructor & Destructor Documentation

◆ TRegValueIterator()

owl::TRegValueIterator::TRegValueIterator ( const TRegKey & regKey)
inline

Creates a value iterator for a registration key.

Definition at line 1220 of file registry.h.

Member Function Documentation

◆ BaseKey()

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

Returns the registration key that this iterator is bound to.

Definition at line 1286 of file registry.h.

◆ Current()

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

Returns the index to the current value.

Definition at line 1278 of file registry.h.

◆ operator bool()

owl::TRegValueIterator::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 values.

Definition at line 1228 of file registry.h.

◆ operator++() [1/2]

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

Preincrements to the next value.

Definition at line 1236 of file registry.h.

◆ operator++() [2/2]

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

Postincrements to the next value.

Definition at line 1244 of file registry.h.

◆ operator--() [1/2]

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

Predecrements to the previous value.

Definition at line 1252 of file registry.h.

◆ operator--() [2/2]

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

Postdecrements to the previous value.

Definition at line 1260 of file registry.h.

◆ operator[]()

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

Sets the index of the iterator to the passed value.

Returns
The new index.

Definition at line 1269 of file registry.h.

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

◆ Reset()

void owl::TRegValueIterator::Reset ( )
inline

Resets the value index to zero.

Definition at line 1294 of file registry.h.


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