Represents a random-access collection of elements.
- Implemented types
-
- IIterable<
T>
- IIterable<
- Available extensions
Constructors
-
IVector.fromPtr(Pointer<
COMObject> ptr, {required String iterableIid, T creator(Pointer<COMObject> )?, T enumCreator(int)?, DoubleType? doubleType, IntType? intType}) -
Creates an instance of IVector from the given
ptr
anditerableIid
.factory
Properties
Methods
-
addRef(
) → int -
Increments the reference count for an interface pointer to a COM object.
inherited
-
append(
T value) → void - Appends an item to the end of the vector.
-
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
. -
clear(
) → void - Removes all items from the vector.
-
detach(
) → void -
Detaches the object from the
Finalizer
.inherited -
first(
) → IIterator< T> -
Returns an iterator for the items in the collection.
override
-
getAt(
int index) → T - Returns the item at the specified index in the vector view.
-
getIids(
Pointer< Uint32> iidCount, Pointer<Pointer< iids) → intGUID> > -
inherited
-
getMany(
int startIndex, int valueSize) → (int, {List< T> items}) - Retrieves multiple items from the the vector beginning at the given index.
-
getRuntimeClassName(
Pointer< IntPtr> className) → int -
inherited
-
getTrustLevel(
Pointer< Int32> trustLevel) → int -
inherited
-
getView(
) → List< T> - Returns an immutable view of the vector.
-
indexOf(
T value) → (bool, {int index}) - Retrieves the index of a specified item in the vector.
-
insertAt(
int index, T value) → void - Inserts an item at a specified index in the vector.
-
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
-
removeAt(
int index) → void - Removes the item at the specified index in the vector.
-
removeAtEnd(
) → void - Removes the last item from the vector.
-
replaceAll(
List< T> value) → void - Replaces all the items in the vector with the specified items.
-
setAt(
int index, T value) → void - Sets the value at the specified index in the vector.
-
toInterface(
String iid) → Pointer< COMObject> -
Cast an existing COM object to a specified interface.
inherited
-
toList(
) → List< T> - Creates an unmodifiable List from the current IVector instance.
-
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 +(
List< T> other) → List<T> -
Returns the concatenation of this list and
other
. -
operator ==(
Object other) → bool -
The equality operator.
inherited
-
operator [](
int index) → T -
The object at the given
index
in the list. -
operator []=(
int index, T value) → void -
Sets the value at the given
index
in the list tovalue
.