ConstSmbiosTableIterator Class Reference

Iterator for const ISmbiosTable objects. More...

#include <ISmbios.h>

Inheritance diagram for ConstSmbiosTableIterator:

SmbiosTableIteratorBase List of all members.

Public Types

typedef std::forward_iterator_tag iterator_category
typedef const ISmbiosItem value_type
typedef value_typereference
typedef value_typepointer
typedef std::ptrdiff_t difference_type

Public Member Functions

virtual ~ConstSmbiosTableIterator () throw ()
 ConstSmbiosTableIterator (const ISmbiosTable *initialTable=0, int typeToMatch=-1)
reference operator * () const
pointer operator-> () const
ConstSmbiosTableIteratoroperator++ ()
const ConstSmbiosTableIterator operator++ (int)
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 for const ISmbiosTable objects.

In order to properly enforce difference between iterator and const_iterator, we need to derive them both separately from the base iterator class. the const_iterator cannot inherit from iterator, or compiler will automatically convert between the two, which is not good.

This class is stable. Do not add or remove any members from it.

Definition at line 533 of file ISmbios.h.


Member Typedef Documentation

typedef std::ptrdiff_t difference_type
 

Definition at line 542 of file ISmbios.h.

typedef std::forward_iterator_tag iterator_category
 

Definition at line 538 of file ISmbios.h.

typedef value_type* pointer
 

Definition at line 541 of file ISmbios.h.

typedef value_type& reference
 

Definition at line 540 of file ISmbios.h.

typedef const ISmbiosItem value_type
 

Definition at line 539 of file ISmbios.h.


Constructor & Destructor Documentation

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

Definition at line 544 of file ISmbios.h.

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

Definition at line 545 of file ISmbios.h.


Member Function Documentation

ISmbiosItem & dereference  )  const [protected, inherited]
 

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, inherited]
 

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

reference operator *  )  const [inline]
 

Definition at line 547 of file ISmbios.h.

References SmbiosTableIteratorBase::dereference().

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

Definition at line 480 of file ISmbios.h.

References SmbiosTableIteratorBase::current.

const ConstSmbiosTableIterator operator++ int   )  [inline]
 

Definition at line 550 of file ISmbios.h.

ConstSmbiosTableIterator& operator++  )  [inline]
 

Definition at line 549 of file ISmbios.h.

References SmbiosTableIteratorBase::incrementIterator().

pointer operator->  )  const [inline]
 

Definition at line 548 of file ISmbios.h.

References SmbiosTableIteratorBase::dereference().

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

Definition at line 479 of file ISmbios.h.

References SmbiosTableIteratorBase::current.


Member Data Documentation

const void* current [mutable, protected, inherited]
 

Definition at line 488 of file ISmbios.h.

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

int matchType [protected, inherited]
 

Definition at line 486 of file ISmbios.h.

Referenced by SmbiosTableIteratorBase::incrementIterator().

const ISmbiosTable* table [protected, inherited]
 

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 file:
Generated on Tue Jan 17 02:59:09 2006 for SMBIOS Library by  doxygen 1.4.6