SmbiosTableIteratorBase Class Reference

Iterator base class for ISmbiosTable objects. More...

#include <ISmbios.h>

Inheritance diagram for SmbiosTableIteratorBase:

ConstSmbiosTableIterator SmbiosTableIterator List of all members.

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 ()
ISmbiosItemdereference () const

Protected Attributes

int matchType
const ISmbiosTabletable
const void * current

Detailed Description

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.

Definition at line 471 of file ISmbios.h.


Constructor & Destructor Documentation

SmbiosTableIteratorBase const ISmbiosTable initialTable = 0,
int  typeToMatch = -1
[inline, explicit]
 

Definition at line 475 of file ISmbios.h.

References SmbiosTableIteratorBase::incrementIterator().

virtual ~SmbiosTableIteratorBase  )  throw () [inline, virtual]
 

Definition at line 478 of file ISmbios.h.


Member Function Documentation

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->().

void incrementIterator  )  [protected]
 

Definition at line 55 of file SmbiosTableIterator.cpp.

References SmbiosTableIteratorBase::current, SmbiosTableIteratorBase::matchType, SmbiosTableIteratorBase::table, and smbios_structure_header::type.

Referenced by ConstSmbiosTableIterator::operator++(), SmbiosTableIterator::operator++(), and SmbiosTableIteratorBase::SmbiosTableIteratorBase().

bool operator!= const SmbiosTableIteratorBase  other  )  const [inline]
 

Definition at line 480 of file ISmbios.h.

References SmbiosTableIteratorBase::current.

bool operator== const SmbiosTableIteratorBase  other  )  const [inline]
 

Definition at line 479 of file ISmbios.h.

References SmbiosTableIteratorBase::current.


Member Data Documentation

const void* current [mutable, protected]
 

Definition at line 488 of file ISmbios.h.

Referenced by SmbiosTableIteratorBase::dereference(), SmbiosTableIteratorBase::incrementIterator(), SmbiosTableIteratorBase::operator!=(), and SmbiosTableIteratorBase::operator==().

int matchType [protected]
 

Definition at line 486 of file ISmbios.h.

Referenced by SmbiosTableIteratorBase::incrementIterator().

const ISmbiosTable* table [protected]
 

Definition at line 487 of file ISmbios.h.

Referenced by SmbiosTableIteratorBase::dereference(), and SmbiosTableIteratorBase::incrementIterator().


The documentation for this class was generated from the following files:
Generated on Tue Jan 17 02:59:09 2006 for SMBIOS Library by  doxygen 1.4.6