Abstract base class for IVectorConst implementations.
abstract class
|
VectorConstBase
|
with
|
<T>
|
||
extends
|
BagConstBase<T>
|
||||
implements
|
IVectorConst<T>
|
||||
base of
|
ChoiceOptions
|
||||
DequeBase
|
|||||
EmptyVector
|
|||||
LodRegions
|
|||||
ValueArray
|
The number of elements in this collection.
public
abstract
property
|
Count
{
get
}
|
||
type
|
int32
|
||
value
|
|
The number of elements. | |
inherited
|
BagConstBase.Count
|
Returns if this collection contains the given element.
[Pure]
|
||||
public
override
method
|
Contains
(T element)
|
|||
type
|
bool
|
|||
params
|
element
|
The element. | ||
returns
|
true
if
element
is
contained
in
this
collection,
false
if
not.
|
|||
implements
|
BagConstBase.Contains
|
Returns if this collection contains all given elements.
public
method
|
ContainsAll
(IEnumerable<T> elements)
|
||
type
|
bool
|
||
params
|
elements
|
[not-null]
|
The elements. |
returns
|
true
if
all
elements
are
contained
in
this
collection,
false
if
not.
|
||
inherited
|
BagConstBase.ContainsAll
|
Compares this object with the given one.
[Pure]
|
||||
public
method
|
Equals
(IVectorConst<T> other)
|
|||
type
|
bool
|
|||
params
|
other
|
The object to compare to. | ||
returns
|
true
if
this
object
is
equal
to
other,
false
if
not.
|
|||
implements
|
IEquatable.Equals
|
Returns the first enumerated value.
[Pure]
|
||||
public
override
method
|
First
()
|
|||
type
|
T
|
|||
returns
|
The first enumerated value. | |||
overrides
|
BagConstBase.First
|
Exceptions:
Returns the element at the given list index.
[Pure]
|
||||
public
abstract
method
|
GetAt
(int32 index)
|
|||
type
|
T
|
|||
params
|
index
|
[0..Count-1]
|
The list index. | |
returns
|
The element. | |||
implements
|
IVectorConst.GetAt
|
public
abstract
method
|
GetEnumerator
()
|
||
type
|
IEnumerator<T>
|
||
inherited
|
EnumerableBase.GetEnumerator
|
Returns the list index of the given element.
[Pure]
|
||||
public
abstract
method
|
IndexOf
(T element)
|
|||
type
|
int32
|
|||
params
|
element
|
The element. | ||
returns
|
The
list
index
or
-1
if
the
element
is
not
contained
in
the
list. |
|||
implements
|
IVectorConst.IndexOf
|
Returns the last enumerated value.
[Pure]
|
||||
public
override
method
|
Last
()
|
|||
type
|
T
|
|||
returns
|
The last enumerated value. | |||
overrides
|
BagConstBase.Last
|
Exceptions:
Returns the elements of this enumerable object as a fresh array.
[Pure]
|
||||
public
method
|
ToArray
()
|
|||
type
|
T[]
|
|||
returns
|
|
The array of elements. | ||
inherited
|
BagConstBase.ToArray
|
Returns the elements of this collection as an array.
public
override
method
|
ToArrayCopy
(T[] array,
int32 offset = 0)
|
||
type
|
T[]
|
||
params
|
array
|
[not-null]
|
The output array. |
offset
|
[>=0]
|
Offset
into
array.
Defaults
to
0 .
|
|
returns
|
|
The filled array. | |
implements
|
BagConstBase.ToArrayCopy
|
Remarks:
The elements in this collection will be copied into the given array, starting at the array index specified by offset.
Returns the elements of this enumerable object as a list.
[Pure]
|
||||
public
virtual
method
|
ToArrayList
()
|
|||
type
|
IArrayVector<T>
|
|||
returns
|
|
The list of elements. | ||
inherited
|
BagConstBase.ToArrayList
|
Returns the elements of this enumerable object as a list.
[Pure]
|
||||
public
override
method
|
ToList
()
|
|||
type
|
IVectorConst<T>
|
|||
returns
|
|
The list of elements. | ||
overrides
|
BagConstBase.ToList
|
protected
constructor
|
VectorConstBase
(EqualsDelegate<T> equals)
|
||
params
|
equals
|
Compares the given collection elements.
protected
virtual
method
|
CompareElements
(T a,
T b)
|
||
type
|
int32
|
||
params
|
a
|
First collection element. | |
b
|
Second collection element. | ||
returns
|
|
if
a
is
less
than
b.
[=0] if a is equal to b. [>0] if a is greater than b. |
|
inherited
|
BagConstBase.CompareElements
|
Remarks:
The default implementation invokes the CompareDelegate that has been specified for this collection.
protected
method
|
EmptyEnumeration
(string source)
|
||
type
|
FailedAssertionException
|
||
params
|
source
|
||
inherited
|
EnumerableBase.EmptyEnumeration
|
Checks if the given collection elements are equal.
protected
virtual
method
|
EqualsElements
(T a,
T b)
|
||
type
|
bool
|
||
params
|
a
|
First collection element. | |
b
|
Second collection element. | ||
returns
|
true
if
the
collection
elements
are
equal,
false
if
not. |
||
inherited
|
BagConstBase.EqualsElements
|
Remarks:
The
default
implementation
invokes
the
EqualsDelegate
that
has
been
specified
for
this
collection.
If
a
CompareDelegate
has
been
given
instead,
it
will
be
invoked
and
its
return
value
tested
against
0
.