WMI Library
|
A type-safe version of ObjectIterator. More...
#include <TypedObjectIterator.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 | |
TypedObjectIterator () | |
Constructor for the End iterator. | |
TypedObjectIterator (IEnumWbemClassObjectPtr enumerator) | |
Constructor for the Begin iterator. | |
TypedObjectIterator (ObjectIterator enumerator) | |
Constructor for the Begin iterator. | |
~TypedObjectIterator () | |
Destructor. | |
const T & | operator* () const |
Dereference operator. | |
const T * | operator-> () const |
Pointer-to-member operator. | |
void | operator++ () |
Advance the iterator. | |
bool | equals (const TypedObjectIterator< T > &rhs) const |
Compare to another iterator for equivalence. | |
Private Types | |
typedef Core::SharedPtr< T > | 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 | |
ObjectIterator | m_end |
The underlyng end iterator. | |
ObjectIterator | m_enumerator |
The underlyng iterator. | |
ValuePtr | m_value |
The current iterator value. |
A type-safe version of ObjectIterator.
Internally this uses ObjectIterator and relies on the Win32_* WMI classes checking that they are being constructed with a WMI object of the correct class.
typedef WCL::ComPtr<IEnumWbemClassObject> WMI::TypedObjectIterator< T >::IEnumWbemClassObjectPtr |
The underlying WMI iterator type.
typedef WCL::ComPtr<IWbemClassObject> WMI::TypedObjectIterator< T >::IWbemClassObjectPtr |
The iterator value type.
typedef Core::SharedPtr<T> WMI::TypedObjectIterator< T >::ValuePtr [private] |
The value shared pointer type.
WMI::TypedObjectIterator< T >::TypedObjectIterator | ( | ) |
Constructor for the End iterator.
WMI::TypedObjectIterator< T >::TypedObjectIterator | ( | IEnumWbemClassObjectPtr | enumerator | ) |
Constructor for the Begin iterator.
WMI::TypedObjectIterator< T >::TypedObjectIterator | ( | ObjectIterator | enumerator | ) |
Constructor for the Begin iterator.
WMI::TypedObjectIterator< T >::~TypedObjectIterator | ( | ) |
Destructor.
const T & WMI::TypedObjectIterator< T >::operator* | ( | ) | const |
Dereference operator.
const T * WMI::TypedObjectIterator< T >::operator-> | ( | ) | const |
Pointer-to-member operator.
void WMI::TypedObjectIterator< T >::operator++ | ( | ) |
Advance the iterator.
bool WMI::TypedObjectIterator< T >::equals | ( | const TypedObjectIterator< T > & | rhs | ) | const |
Compare to another iterator for equivalence.
void WMI::TypedObjectIterator< T >::increment | ( | ) | [private] |
Move the iterator forward.
void WMI::TypedObjectIterator< T >::reset | ( | ) | [private] |
Move the iterator to the End.
ObjectIterator WMI::TypedObjectIterator< T >::m_end [private] |
The underlyng end iterator.
ObjectIterator WMI::TypedObjectIterator< T >::m_enumerator [private] |
The underlyng iterator.
ValuePtr WMI::TypedObjectIterator< T >::m_value [private] |
The current iterator value.