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
tableDataModelTableThe table, a sub sequence of which, is the vector
rowIndexIndexThe row index within the containing table of the vector being referenced at which the vector begins
typeDataModelTypeThe type of the objects being referenced
countintThe 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
CreateForSequence(DataModel, DataModelType, IEnumerable<object?>)
Creates a DataModelVector based on a sequence of values
public static DataModelVector CreateForSequence(DataModel dataModel, DataModelType type, IEnumerable<object?> sequence)
Parameters
dataModelDataModelThe model of which the vector is a part
typeDataModelTypeThe type of elements in the vector
sequenceIEnumerable<object>The sequence of elements comprising the vector
Returns
CreateNullReference(int)
Creates a DataModelVector null reference
public static DataModelVector CreateNullReference(int count = 0)
Parameters
countintThe number of elements (probably should be
0)