Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound 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 Methods

 SmbiosTableIteratorBase (const ISmbiosTable *initialTable=0, int typeToMatch=-1)
virtual ~SmbiosTableIteratorBase () throw ()
bool operator== (const SmbiosTableIteratorBase other) const
bool operator!= (const SmbiosTableIteratorBase other) const

Protected Methods

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   [protected]
 

Definition at line 30 of file SmbiosTableIterator.cpp.

References _, SmbiosTable::cacheItem(), SmbiosTableIteratorBase::current, SmbiosTable::getCachedItem(), and SmbiosTable::makeItem().

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, and SmbiosTable::nextSmbiosStruct().

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 [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::SmbiosTableIteratorBase().


The documentation for this class was generated from the following files:
Generated on Tue Jul 3 18:35:15 2007 for SMBIOS Library by doxygen1.2.18