Main Page | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

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 391 of file ISmbios.h.


Constructor & Destructor Documentation

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

Definition at line 395 of file ISmbios.h.

References SmbiosTableIteratorBase::current, SmbiosTableIteratorBase::incrementIterator(), SmbiosTableIteratorBase::matchType, and SmbiosTableIteratorBase::table.

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

Definition at line 398 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, SmbiosTable::nextSmbiosStruct(), and SmbiosTableIteratorBase::table.

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

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

Definition at line 400 of file ISmbios.h.

References SmbiosTableIteratorBase::current.

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

Definition at line 399 of file ISmbios.h.

References SmbiosTableIteratorBase::current.


Member Data Documentation

const void* current [mutable, protected]
 

Definition at line 408 of file ISmbios.h.

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

int matchType [protected]
 

Definition at line 406 of file ISmbios.h.

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

const ISmbiosTable* table [protected]
 

Definition at line 407 of file ISmbios.h.

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


The documentation for this class was generated from the following files:
Generated on Wed Apr 11 16:25:12 2007 for SMBIOS Library by doxygen 1.3.5