WMI Library
Public Types | Public Member Functions | Private Types | Private Member Functions | Private Attributes
WMI::ObjectIterator Class Reference

The iterator type used for collections of WBEM Class Objects. More...

#include <ObjectIterator.hpp>

List of all members.

Public Types

typedef WCL::ComPtr
< IEnumWbemClassObject > 
IEnumWbemClassObjectPtr
 The underlying WMI iterator type.
typedef WCL::ComPtr
< IWbemClassObject > 
IWbemClassObjectPtr
 The iterator value type.

Public Member Functions

 ObjectIterator ()
 Constructor for the End iterator.
 ObjectIterator (IEnumWbemClassObjectPtr enumerator)
 Constructor for the Begin iterator.
 ~ObjectIterator ()
 Destructor.
const Objectoperator* () const
 Dereference operator.
const Objectoperator-> () const
 Pointer-to-member operator.
void operator++ ()
 Advance the iterator.
bool equals (const ObjectIterator &rhs) const
 Compare to another iterator for equivalence.

Private Types

typedef Core::SharedPtr< ObjectValuePtr
 The value shared pointer type.

Private Member Functions

void increment ()
 Move the iterator forward.
void reset ()
 Move the iterator to the End.

Private Attributes

IEnumWbemClassObjectPtr m_enumerator
 The underlyng WMI iterator.
ValuePtr m_value
 The current iterator value.

Detailed Description

The iterator type used for collections of WBEM Class Objects.

Note:
Although the iterator is copyable it only creates a shallow copy of the underlying COM object and so cannot be independently advanced.

Member Typedef Documentation

typedef WCL::ComPtr<IEnumWbemClassObject> WMI::ObjectIterator::IEnumWbemClassObjectPtr

The underlying WMI iterator type.

typedef WCL::ComPtr<IWbemClassObject> WMI::ObjectIterator::IWbemClassObjectPtr

The iterator value type.

typedef Core::SharedPtr<Object> WMI::ObjectIterator::ValuePtr [private]

The value shared pointer type.


Constructor & Destructor Documentation

Constructor for the End iterator.

Constructor for the Begin iterator.

Destructor.


Member Function Documentation

const Object & WMI::ObjectIterator::operator* ( ) const

Dereference operator.

const Object * WMI::ObjectIterator::operator-> ( ) const

Pointer-to-member operator.

void WMI::ObjectIterator::operator++ ( ) [inline]

Advance the iterator.

bool WMI::ObjectIterator::equals ( const ObjectIterator rhs) const

Compare to another iterator for equivalence.

void WMI::ObjectIterator::increment ( ) [private]

Move the iterator forward.

void WMI::ObjectIterator::reset ( ) [private]

Move the iterator to the End.


Member Data Documentation

The underlyng WMI iterator.

The current iterator value.


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