Class DataModelVector
- Namespace
- LlamaLogic.Packages.Models.Data
- Assembly
- LlamaLogic.Packages.dll
Represents a VECTOR reference in a SimData or CombinedTuning resource (🔓)
public sealed class DataModelVector : DataModelReference
- Inheritance
-
DataModelVector
- Inherited Members
Constructors
DataModelVector(DataModelTable, Index, DataModelType, int)
Initializes a new DataModelVector (🔄️🏃)
public DataModelVector(DataModelTable table, Index rowIndex, DataModelType type, int count)
Parameters
table
DataModelTableThe table, a sub sequence of which, is the vector
rowIndex
IndexThe row index within the containing table of the vector being referenced at which the vector begins
type
DataModelTypeThe type of the objects being referenced
count
intThe number of elements in the vector
Properties
Count
Gets the number of elements in the vector
public int Count { get; }
Property Value
Indicies
Gets the indicies of the vector
public IEnumerable<int> Indicies { get; }
Property Value
IsValid
Gets whether the reference has remained valid
public override bool IsValid { get; }
Property Value
Range
Gets the range rows of the vector
public Range Range { get; }
Property Value
Values
Gets/sets the sequence of values referenced by the vector (💤)
public IEnumerable<object?> Values { get; set; }
Property Value
Methods
CreateNullReference(int)
Create a DataModelVector null reference
public static DataModelVector CreateNullReference(int count = 0)
Parameters
count
intThe number of elements (probably should be
0
)