WMI Library
|
The iterator type used for collections of WBEM Class Objects. More...
#include <ObjectIterator.hpp>
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 Object & | operator* () const |
Dereference operator. | |
const Object * | operator-> () 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< Object > | ValuePtr |
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. |
The iterator type used for collections of WBEM Class Objects.
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 for the End iterator.
WMI::ObjectIterator::ObjectIterator | ( | IEnumWbemClassObjectPtr | enumerator | ) |
Constructor for the Begin iterator.
Destructor.
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.
The underlyng WMI iterator.
ValuePtr WMI::ObjectIterator::m_value [private] |
The current iterator value.