Class VectorOfTriangle2DF
Wrapped class of the C++ standard vector of Triangle2DF.
public class VectorOfTriangle2DF : UnmanagedVector, IAsyncDisposable, ISerializable, IInputOutputArray, IInputArrayOfArrays, IOutputArrayOfArrays, IOutputArray, IInputArray, IDisposable
- Inheritance
-
VectorOfTriangle2DF
- Implements
- Inherited Members
- Extension Methods
Constructors
VectorOfTriangle2DF()
Create an empty standard vector of Triangle2DF
public VectorOfTriangle2DF()
VectorOfTriangle2DF(Triangle2DF[])
Create a standard vector of Triangle2DF with the initial values
public VectorOfTriangle2DF(Triangle2DF[] values)
Parameters
values
Triangle2DF[]The initial values
VectorOfTriangle2DF(int)
Create a standard vector of Triangle2DF of the specific size
public VectorOfTriangle2DF(int size)
Parameters
size
intThe size of the vector
VectorOfTriangle2DF(SerializationInfo, StreamingContext)
Constructor used to deserialize runtime serialized object
public VectorOfTriangle2DF(SerializationInfo info, StreamingContext context)
Parameters
info
SerializationInfoThe serialization info
context
StreamingContextThe streaming context
VectorOfTriangle2DF(Span<Triangle2DF>)
Create a standard vector of Triangle2DF with the initial values
public VectorOfTriangle2DF(Span<Triangle2DF> values)
Parameters
values
Span<Triangle2DF>The initial values
Properties
this[int]
Get the item in the specific index
public Triangle2DF this[int index] { get; }
Parameters
index
intThe index
Property Value
- Triangle2DF
The item in the specific index
Length
The size of memory in bytes, that is needed to hold all the items in this vector
public override long Length { get; }
Property Value
Size
Get the size of the vector
public override int Size { get; }
Property Value
SizeOfItemInBytes
The size of the item in this Vector, counted as size in bytes.
public static int SizeOfItemInBytes { get; }
Property Value
StartAddress
The pointer to the first element on the vector. In case of an empty vector, IntPtr.Zero will be returned.
public override nint StartAddress { get; }
Property Value
Methods
Clear()
Clear the vector
public void Clear()
DisposeObject()
Release the standard vector
protected override void DisposeObject()
GetInputArray()
Get the data as InputArray
public InputArray GetInputArray()
Returns
- InputArray
The input array
GetInputOutputArray()
Get the data as InputOutputArray
public InputOutputArray GetInputOutputArray()
Returns
- InputOutputArray
The input output array
GetObjectData(SerializationInfo, StreamingContext)
A function used for runtime serialization of the object
public void GetObjectData(SerializationInfo info, StreamingContext context)
Parameters
info
SerializationInfoSerialization info
context
StreamingContextStreaming context
GetOutputArray()
Get the data as OutputArray
public OutputArray GetOutputArray()
Returns
- OutputArray
The output array
GetSpan()
Returns a memory span that wraps the underlying memory buffer.
public Span<Triangle2DF> GetSpan()
Returns
- Span<Triangle2DF>
A memory span that wraps the underlying memory buffer.
Push(Triangle2DF[])
Push an array of values into the standard vector
public void Push(Triangle2DF[] values)
Parameters
values
Triangle2DF[]The values to be pushed to the vector
Push(VectorOfTriangle2DF)
Push multiple values from the other vector into this vector
public void Push(VectorOfTriangle2DF other)
Parameters
other
VectorOfTriangle2DFThe other vector, from which the values will be pushed to the current vector
Push(Span<Triangle2DF>)
Push an array of values into the standard vector
public void Push(Span<Triangle2DF> values)
Parameters
values
Span<Triangle2DF>The value to be pushed to the vector
ToArray()
Convert the standard vector to an array of Triangle2DF
public Triangle2DF[] ToArray()
Returns
- Triangle2DF[]
An array of Triangle2DF