SMBIOS Library
Public Types | Public Member Functions | Protected Attributes | List of all members
SmbiosTableIteratorBase Class Reference

Iterator base class for ISmbiosTable objects. More...

#include <ISmbios.h>

Inheritance diagram for SmbiosTableIteratorBase:
Inheritance graph
Collaboration diagram for SmbiosTableIteratorBase:
Collaboration graph

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)
SmbiosTableIteratorBaseoperator= (const SmbiosTableIteratorBase &)
virtual ~SmbiosTableIteratorBase () throw ()
bool operator== (const SmbiosTableIteratorBase &other) const
bool operator!= (const SmbiosTableIteratorBase &other) const
void incrementIterator ()
const ISmbiosItemdereference () const
ISmbiosItemdereference ()
void reset ()
bool eof ()

Protected Attributes

int matchType
const ISmbiosTabletable
const u8current

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

Member Typedef Documentation

typedef std::ptrdiff_t difference_type

Definition at line 358 of file ISmbios.h.

typedef std::forward_iterator_tag iterator_category

Definition at line 357 of file ISmbios.h.

Constructor & Destructor Documentation

SmbiosTableIteratorBase ( const ISmbiosTable initialTable = 0,
int  typeToMatch = -1 
)
explicit

Definition at line 90 of file SmbiosTableIterator.cpp.

References SmbiosTableIteratorBase::incrementIterator().

Here is the call graph for this function:

~SmbiosTableIteratorBase ( ) throw ()
virtual

Definition at line 30 of file SmbiosTableIterator.cpp.

Member Function Documentation

const ISmbiosItem & dereference ( ) const
ISmbiosItem & dereference ( )
bool eof ( )

Definition at line 40 of file SmbiosTableIterator.cpp.

void incrementIterator ( )
bool operator!= ( const SmbiosTableIteratorBase other) const

Definition at line 101 of file SmbiosTableIterator.cpp.

References SmbiosTableIteratorBase::current.

SmbiosTableIteratorBase & operator= ( const SmbiosTableIteratorBase rhs)
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.

Member Data Documentation

const u8* current
protected
int matchType
protected
const ISmbiosTable* table
protected

The documentation for this class was generated from the following files: