#include <ISmbios.h>
Inheritance diagram for SmbiosTableIteratorBase:
Public Member Functions | |
SmbiosTableIteratorBase (const ISmbiosTable *initialTable=0, int typeToMatch=-1) | |
virtual | ~SmbiosTableIteratorBase () throw () |
bool | operator== (const SmbiosTableIteratorBase other) const |
bool | operator!= (const SmbiosTableIteratorBase other) const |
Protected Member Functions | |
void | incrementIterator () |
ISmbiosItem & | dereference () const |
Protected Attributes | |
int | matchType |
const ISmbiosTable * | table |
const void * | current |
The base class for iterators over ISmbiosTable. This class has all of the data items to keep track of the position. There is no good way to implement this as a pure abstract base class (interface) because of the way STL iterators were designed (I think.)
This class is stable and should not be modified.
Definition at line 391 of file ISmbios.h.
SmbiosTableIteratorBase | ( | const ISmbiosTable * | initialTable = 0 , |
|
int | typeToMatch = -1 | |||
) | [inline, explicit] |
virtual ~SmbiosTableIteratorBase | ( | ) | throw () [inline, virtual] |
bool operator== | ( | const SmbiosTableIteratorBase | other | ) | const [inline] |
bool operator!= | ( | const SmbiosTableIteratorBase | other | ) | const [inline] |
void incrementIterator | ( | ) | [protected] |
Definition at line 55 of file SmbiosTableIterator.cpp.
References SmbiosTableIteratorBase::current, SmbiosTableIteratorBase::matchType, SmbiosTable::nextSmbiosStruct(), and SmbiosTableIteratorBase::table.
Referenced by ConstSmbiosTableIterator::operator++(), SmbiosTableIterator::operator++(), and SmbiosTableIteratorBase::SmbiosTableIteratorBase().
ISmbiosItem & dereference | ( | ) | const [protected] |
Definition at line 30 of file SmbiosTableIterator.cpp.
References _, SmbiosTable::cacheItem(), SmbiosTableIteratorBase::current, SmbiosTable::getCachedItem(), SmbiosTable::makeItem(), and SmbiosTableIteratorBase::table.
Referenced by ConstSmbiosTableIterator::operator *(), SmbiosTableIterator::operator *(), ConstSmbiosTableIterator::operator->(), and SmbiosTableIterator::operator->().
int matchType [protected] |
Definition at line 406 of file ISmbios.h.
Referenced by SmbiosTableIteratorBase::incrementIterator().
const ISmbiosTable* table [protected] |
Definition at line 407 of file ISmbios.h.
Referenced by SmbiosTableIteratorBase::dereference(), and SmbiosTableIteratorBase::incrementIterator().
const void* current [mutable, protected] |
Definition at line 408 of file ISmbios.h.
Referenced by SmbiosTableIteratorBase::dereference(), SmbiosTableIteratorBase::incrementIterator(), SmbiosTableIteratorBase::operator!=(), and SmbiosTableIteratorBase::operator==().