Skip to main content

OpenTD .NET4 reference 2025 R2

OpenTD.Results.Dataset.DataArrayCollection Class Reference

Last update: 16.07.2025

A collection of DataArrays, with some metadata describing them. More...

Inheritance diagram for OpenTD.Results.Dataset.DataArrayCollection:
OpenTD.Results.Dataset.IAutoNameOpenTD.Results.Dataset.IAutoComment

Public Member Functions

 DataArrayCollection ()
 
 DataArrayCollection (IEnumerable< DataArray > collection)
 
 DataArrayCollection (StandardDataSubtypes subtype, IEnumerable< IEnumerable< double > > collection, UnitsData units, IDataset sourceDataset=null, ItemIdentifier sourceItem=null)
 
 DataArrayCollection (DataSubtype subtype, IEnumerable< IEnumerable< double > > collection, UnitsData units, IDataset sourceDataset=null, ItemIdentifier sourceItem=null)
 
 DataArrayCollection (DataArrayCollection collection)
 
virtual List< List< double > > GetValues ()
 
virtual List< List< double > > GetValues (UnitsData units)
 
virtual DataArrayCollection GetTranspose ()
 
DataArrayCollection Filter (DataItemIdentifierCollection dataItems)
 
void Add (DataArray x)
 
void Clear ()
 
bool Remove (DataArray x)
 
bool Contains (DataArray item)
 
void CopyTo (DataArray[] array, int arrayIndex)
 
IEnumerator< DataArray > GetEnumerator ()
 
int IndexOf (DataArray item)
 
void Insert (int index, DataArray item)
 
void RemoveAt (int index)
 
void AddRange (IEnumerable< DataArray > collection)
 
void InsertRange (int index, IEnumerable< DataArray > collection)
 
void RemoveRange (int index, int count)
 
override string ToString ()
 

Protected Member Functions

virtual string GetSelfSuggestedName ()
 
virtual string GetSelfSuggestedComment ()
 

Properties

virtual IDataset SourceDataset [get]
 If all the DataArrays in the collection have the same SourceDataset, this will equal that. Otherwise this will be null.
 
virtual ItemIdentifier SourceItem [get]
 If all the DataArrays in the collection have the same SourceItem, this will equal that. Otherwise this will be null.
 
virtual string SourceItemSubmodel [get]
 If all the DataArrays in the collection have the same SourceItem submodel, this will equal that. Otherwise this will be null.
 
virtual DataSubtype Subtype [get]
 If all the DataArrays in the collection have the same data subtype, this will equal that. Otherwise this will be null.
 
virtual UnitsData.UnitsType Dimension [get]
 If all the DataArrays in the collection have the same physical dimension, this will equal that. Otherwise this will be UnitsData.UnitsType.UNITS_NOT_SET.
 
virtual int DataItemCount [get]
 If all the DataArrays in the collection have the same number of items, this will equal that. Otherwise this will be -1.
 
virtual int MaxDataItemCount [get]
 The maximum item count found in the arrays of the collection.
 
virtual int MinDataItemCount [get]
 The minimum item count found in the arrays of the collection.
 
ItemIdentifierCollection SourceItemIdentifiers [get]
 The SourceItemIdentifiers associated with the DataArrays in this collection.
 
DataItemIdentifierCollection SourceDataItemIdentifiers [get]
 The SourceDataItemIdentifiers associated with the DataArrays in this collection.
 
int Count [get]
 
bool IsReadOnly [get]
 
DataArray this[int index] [get, set]
 
AutoNamer AutoNamer [get, set]
 
string Name [get, set]
 
string InternalSuggestedName [get, set]
 
AutoCommenter AutoCommenter [get, set]
 
string Comment [get, set]
 
string InternalSuggestedComment [get, set]
 

Detailed Description

A collection of DataArrays, with some metadata describing them.

See also
OpenTD.Results.Dataset.IAutoName, System.Collections.Generic.ICollection<OpenTD.Results.Dataset.DataArray>, System.Collections.Generic.IEnumerable<OpenTD.Results.Dataset.DataArray>, System.Collections.Generic.IList<OpenTD.Results.Dataset.DataArray>

Constructor & Destructor Documentation

◆ DataArrayCollection() [1/5]

OpenTD.Results.Dataset.DataArrayCollection.DataArrayCollection ( )
inline

◆ DataArrayCollection() [2/5]

OpenTD.Results.Dataset.DataArrayCollection.DataArrayCollection ( IEnumerable< DataArray > collection)
inline

◆ DataArrayCollection() [3/5]

OpenTD.Results.Dataset.DataArrayCollection.DataArrayCollection ( StandardDataSubtypes subtype,
IEnumerable< IEnumerable< double > > collection,
UnitsData units,
IDataset sourceDataset = null,
ItemIdentifier sourceItem = null )
inline

◆ DataArrayCollection() [4/5]

OpenTD.Results.Dataset.DataArrayCollection.DataArrayCollection ( DataSubtype subtype,
IEnumerable< IEnumerable< double > > collection,
UnitsData units,
IDataset sourceDataset = null,
ItemIdentifier sourceItem = null )
inline

◆ DataArrayCollection() [5/5]

OpenTD.Results.Dataset.DataArrayCollection.DataArrayCollection ( DataArrayCollection collection)
inline

Member Function Documentation

◆ Add()

void OpenTD.Results.Dataset.DataArrayCollection.Add ( DataArray x)
inline

◆ AddRange()

void OpenTD.Results.Dataset.DataArrayCollection.AddRange ( IEnumerable< DataArray > collection)
inline

◆ Clear()

void OpenTD.Results.Dataset.DataArrayCollection.Clear ( )
inline

◆ Contains()

bool OpenTD.Results.Dataset.DataArrayCollection.Contains ( DataArray item)
inline

◆ CopyTo()

void OpenTD.Results.Dataset.DataArrayCollection.CopyTo ( DataArray[] array,
int arrayIndex )
inline

◆ Filter()

DataArrayCollection OpenTD.Results.Dataset.DataArrayCollection.Filter ( DataItemIdentifierCollection dataItems)
inline

◆ GetEnumerator()

IEnumerator< DataArray > OpenTD.Results.Dataset.DataArrayCollection.GetEnumerator ( )
inline

◆ GetSelfSuggestedComment()

virtual string OpenTD.Results.Dataset.DataArrayCollection.GetSelfSuggestedComment ( )
inlineprotectedvirtual

◆ GetSelfSuggestedName()

virtual string OpenTD.Results.Dataset.DataArrayCollection.GetSelfSuggestedName ( )
inlineprotectedvirtual

◆ GetTranspose()

virtual DataArrayCollection OpenTD.Results.Dataset.DataArrayCollection.GetTranspose ( )
inlinevirtual

◆ GetValues() [1/2]

virtual List< List< double > > OpenTD.Results.Dataset.DataArrayCollection.GetValues ( )
inlinevirtual

◆ GetValues() [2/2]

virtual List< List< double > > OpenTD.Results.Dataset.DataArrayCollection.GetValues ( UnitsData units)
inlinevirtual

◆ IndexOf()

int OpenTD.Results.Dataset.DataArrayCollection.IndexOf ( DataArray item)
inline

◆ Insert()

void OpenTD.Results.Dataset.DataArrayCollection.Insert ( int index,
DataArray item )
inline

◆ InsertRange()

void OpenTD.Results.Dataset.DataArrayCollection.InsertRange ( int index,
IEnumerable< DataArray > collection )
inline

◆ Remove()

bool OpenTD.Results.Dataset.DataArrayCollection.Remove ( DataArray x)
inline

◆ RemoveAt()

void OpenTD.Results.Dataset.DataArrayCollection.RemoveAt ( int index)
inline

◆ RemoveRange()

void OpenTD.Results.Dataset.DataArrayCollection.RemoveRange ( int index,
int count )
inline

◆ ToString()

override string OpenTD.Results.Dataset.DataArrayCollection.ToString ( )
inline

Property Documentation

◆ AutoCommenter

AutoCommenter OpenTD.Results.Dataset.DataArrayCollection.AutoCommenter
getsetprotected

◆ AutoNamer

AutoNamer OpenTD.Results.Dataset.DataArrayCollection.AutoNamer
getsetprotected

◆ Comment

string OpenTD.Results.Dataset.DataArrayCollection.Comment
getset

◆ Count

int OpenTD.Results.Dataset.DataArrayCollection.Count
get

◆ DataItemCount

virtual int OpenTD.Results.Dataset.DataArrayCollection.DataItemCount
get

If all the DataArrays in the collection have the same number of items, this will equal that. Otherwise this will be -1.

◆ Dimension

virtual UnitsData.UnitsType OpenTD.Results.Dataset.DataArrayCollection.Dimension
get

If all the DataArrays in the collection have the same physical dimension, this will equal that. Otherwise this will be UnitsData.UnitsType.UNITS_NOT_SET.

◆ InternalSuggestedComment

string OpenTD.Results.Dataset.DataArrayCollection.InternalSuggestedComment
getset

◆ InternalSuggestedName

string OpenTD.Results.Dataset.DataArrayCollection.InternalSuggestedName
getset

◆ IsReadOnly

bool OpenTD.Results.Dataset.DataArrayCollection.IsReadOnly
get

◆ MaxDataItemCount

virtual int OpenTD.Results.Dataset.DataArrayCollection.MaxDataItemCount
get

The maximum item count found in the arrays of the collection.

◆ MinDataItemCount

virtual int OpenTD.Results.Dataset.DataArrayCollection.MinDataItemCount
get

The minimum item count found in the arrays of the collection.

◆ Name

string OpenTD.Results.Dataset.DataArrayCollection.Name
getset

◆ SourceDataItemIdentifiers

DataItemIdentifierCollection OpenTD.Results.Dataset.DataArrayCollection.SourceDataItemIdentifiers
get

The SourceDataItemIdentifiers associated with the DataArrays in this collection.

◆ SourceDataset

virtual IDataset OpenTD.Results.Dataset.DataArrayCollection.SourceDataset
get

If all the DataArrays in the collection have the same SourceDataset, this will equal that. Otherwise this will be null.

◆ SourceItem

virtual ItemIdentifier OpenTD.Results.Dataset.DataArrayCollection.SourceItem
get

If all the DataArrays in the collection have the same SourceItem, this will equal that. Otherwise this will be null.

◆ SourceItemIdentifiers

ItemIdentifierCollection OpenTD.Results.Dataset.DataArrayCollection.SourceItemIdentifiers
get

The SourceItemIdentifiers associated with the DataArrays in this collection.

◆ SourceItemSubmodel

virtual string OpenTD.Results.Dataset.DataArrayCollection.SourceItemSubmodel
get

If all the DataArrays in the collection have the same SourceItem submodel, this will equal that. Otherwise this will be null.

◆ Subtype

virtual DataSubtype OpenTD.Results.Dataset.DataArrayCollection.Subtype
get

If all the DataArrays in the collection have the same data subtype, this will equal that. Otherwise this will be null.

◆ this[int index]

DataArray OpenTD.Results.Dataset.DataArrayCollection.this[int index]
getset

The documentation for this class was generated from the following file:
  • C:/Users/mgarrett/source/repos/BuildsTdSuite/builds/TDDEV_ALPHA/buildXX/OpenTD.Results/Dataset/DataArrayCollection.cs

Connect with Ansys