Supports simple iteration over a collection.
- Available extensions
Constructors
-
IIterator.fromPtr(Pointer<
COMObject> ptr, {T creator(Pointer<COMObject> )?, T enumCreator(int)?, DoubleType? doubleType, IntType? intType}) -
Creates an instance of IIterator from the given
ptr.factory
Properties
- current → T
-
Gets the current item in the collection.
no setter
- hasCurrent → bool
-
Gets a value that indicates whether the iterator refers to a current item
or is at the end of the collection.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
-
ptr
↔ Pointer<
COMObject> -
getter/setter pairinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
addRef(
) → int -
Increments the reference count for an interface pointer to a COM object.
inherited
-
cast<
T extends IUnknown> (T creator(Pointer< COMObject> ), String iid) → T -
Available on IUnknown, provided by the IUnknownHelpers extension
Casts this COM object to an interface specified iniid. -
detach(
) → void -
Detaches the object from the
Finalizer.inherited -
getIids(
Pointer< Uint32> iidCount, Pointer<Pointer< iids) → intGUID> > -
inherited
-
getMany(
int capacity) → (int, {List< T> items}) - Retrieves multiple items from the iterator.
-
getRuntimeClassName(
Pointer< IntPtr> className) → int -
inherited
-
getTrustLevel(
Pointer< Int32> trustLevel) → int -
inherited
-
moveNext(
) → bool - Advances the iterator to the next item in the collection.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
queryInterface(
Pointer< GUID> riid, Pointer<Pointer< ppvObject) → intNativeType> > -
Queries a COM object for a pointer to one of its interface; identifying
the interface by a reference to its interface identifier (IID).
inherited
-
release(
) → int -
Decrements the reference count for an interface on a COM object.
inherited
-
toInterface(
String iid) → Pointer< COMObject> -
Cast an existing COM object to a specified interface.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
tryCast<
T extends IUnknown> (T creator(Pointer< COMObject> ), String iid) → T? -
Available on IUnknown, provided by the IUnknownHelpers extension
Tries to cast this COM object to an interface specified iniid.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited