SMBIOS Library
|
Iterator base class for ISmbiosTable objects. More...
#include <ISmbios.h>
Public Types | |
typedef std::forward_iterator_tag | iterator_category |
typedef std::ptrdiff_t | difference_type |
Public Member Functions | |
SmbiosTableIteratorBase (const ISmbiosTable *initialTable=0, int typeToMatch=-1) | |
SmbiosTableIteratorBase & | operator= (const SmbiosTableIteratorBase &) |
virtual | ~SmbiosTableIteratorBase () throw () |
bool | operator== (const SmbiosTableIteratorBase &other) const |
bool | operator!= (const SmbiosTableIteratorBase &other) const |
void | incrementIterator () |
const ISmbiosItem & | dereference () const |
ISmbiosItem & | dereference () |
void | reset () |
bool | eof () |
Protected Attributes | |
int | matchType |
const ISmbiosTable * | table |
const u8 * | current |
Iterator base class for ISmbiosTable objects.
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.
typedef std::ptrdiff_t difference_type |
typedef std::forward_iterator_tag iterator_category |
|
explicit |
Definition at line 90 of file SmbiosTableIterator.cpp.
References SmbiosTableIteratorBase::incrementIterator().
|
virtual |
Definition at line 30 of file SmbiosTableIterator.cpp.
const ISmbiosItem & dereference | ( | ) | const |
Definition at line 138 of file SmbiosTableIterator.cpp.
References _, SmbiosTableIteratorBase::current, ISmbiosTable::getSmbiosItem(), and SmbiosTableIteratorBase::table.
Referenced by SmbiosTableIterator::operator*(), ConstSmbiosTableIterator::operator*(), SmbiosTableIterator::operator->(), and ConstSmbiosTableIterator::operator->().
ISmbiosItem & dereference | ( | ) |
Definition at line 128 of file SmbiosTableIterator.cpp.
References _, SmbiosTableIteratorBase::current, and SmbiosTableIteratorBase::table.
bool eof | ( | ) |
Definition at line 40 of file SmbiosTableIterator.cpp.
void incrementIterator | ( | ) |
Definition at line 148 of file SmbiosTableIterator.cpp.
References SmbiosTableIteratorBase::current, SmbiosTableIteratorBase::matchType, ISmbiosTable::nextSmbiosStruct(), and SmbiosTableIteratorBase::table.
Referenced by SmbiosTableIterator::operator++(), ConstSmbiosTableIterator::operator++(), and SmbiosTableIteratorBase::SmbiosTableIteratorBase().
bool operator!= | ( | const SmbiosTableIteratorBase & | other | ) | const |
Definition at line 101 of file SmbiosTableIterator.cpp.
References SmbiosTableIteratorBase::current.
SmbiosTableIteratorBase & operator= | ( | const SmbiosTableIteratorBase & | rhs | ) |
Reimplemented in ConstSmbiosTableIterator.
Definition at line 76 of file SmbiosTableIterator.cpp.
References SmbiosTableIteratorBase::current, SmbiosTableIteratorBase::matchType, and SmbiosTableIteratorBase::table.
bool operator== | ( | const SmbiosTableIteratorBase & | other | ) | const |
Definition at line 96 of file SmbiosTableIterator.cpp.
References SmbiosTableIteratorBase::current.
void reset | ( | ) |
Definition at line 34 of file SmbiosTableIterator.cpp.
|
protected |
Definition at line 376 of file ISmbios.h.
Referenced by SmbiosTableIteratorBase::dereference(), SmbiosTableIteratorBase::incrementIterator(), SmbiosTableIteratorBase::operator!=(), SmbiosTableIteratorBase::operator=(), and SmbiosTableIteratorBase::operator==().
|
protected |
Definition at line 374 of file ISmbios.h.
Referenced by SmbiosTableIteratorBase::incrementIterator(), and SmbiosTableIteratorBase::operator=().
|
protected |
Definition at line 375 of file ISmbios.h.
Referenced by SmbiosTableIteratorBase::dereference(), SmbiosTableIteratorBase::incrementIterator(), and SmbiosTableIteratorBase::operator=().