Skip to main content
Definition: LIBS/DotNetUtils/Phoenix.ModelCenter.PlugIn/ArrayIndexer.cs (line 17)

Members

Private attributes

Variable mcArray

Definition: LIBS/DotNetUtils/Phoenix.ModelCenter.PlugIn/ArrayIndexer.cs (line 19)
Type: IArray

Variable mcObj

Definition: LIBS/DotNetUtils/Phoenix.ModelCenter.PlugIn/ArrayIndexer.cs (line 20)
Type: IObjectVariable

Variable mIndex

Definition: LIBS/DotNetUtils/Phoenix.ModelCenter.PlugIn/ArrayIndexer.cs (line 21)
Type: string

Variable numElements

Definition: LIBS/DotNetUtils/Phoenix.ModelCenter.PlugIn/ArrayIndexer.cs (line 22)
Type: int

Variable numDimensions

Definition: LIBS/DotNetUtils/Phoenix.ModelCenter.PlugIn/ArrayIndexer.cs (line 23)
Type: int

Variable currentElement

Definition: LIBS/DotNetUtils/Phoenix.ModelCenter.PlugIn/ArrayIndexer.cs (line 24)
Type: int

Variable elementCount

Definition: LIBS/DotNetUtils/Phoenix.ModelCenter.PlugIn/ArrayIndexer.cs (line 25)
Type: int

Variable arrayIndices

Definition: LIBS/DotNetUtils/Phoenix.ModelCenter.PlugIn/ArrayIndexer.cs (line 26)
Type: int[]

Variable getValueCalled

Definition: LIBS/DotNetUtils/Phoenix.ModelCenter.PlugIn/ArrayIndexer.cs (line 27)
Type: bool

Properties

Property CurrentElement

Definition: LIBS/DotNetUtils/Phoenix.ModelCenter.PlugIn/ArrayIndexer.cs (line 179)
The index of the element in the array the indexer is currently on. Return type: int

Property CurrentElementString

Definition: LIBS/DotNetUtils/Phoenix.ModelCenter.PlugIn/ArrayIndexer.cs (line 187)
The string representation of the current element. Return type: string

Property ElementValue

Definition: LIBS/DotNetUtils/Phoenix.ModelCenter.PlugIn/ArrayIndexer.cs (line 207)
The value of the current element. Return type: object

Property NumDimensions

Definition: LIBS/DotNetUtils/Phoenix.ModelCenter.PlugIn/ArrayIndexer.cs (line 237)
The number of dimensions in the array. Return type: int

Property NumElements

Definition: LIBS/DotNetUtils/Phoenix.ModelCenter.PlugIn/ArrayIndexer.cs (line 245)
The number of elements in the array. Return type: int

Property Value

Definition: LIBS/DotNetUtils/Phoenix.ModelCenter.PlugIn/ArrayIndexer.cs (line 250)
Return type: object

Public functions

Function ArrayIndexer

Constructor. Parameters:
  • array: The variable that implements IArray.
Parameters:
  • IArray array
Return type:

Function ArrayIndexer

Constructor. Parameters:
  • objVar: The variable that implements IObjectVariable.
  • mIndex: The member index of the object.
Parameters:
  • IObjectVariable objVar
  • string mIndex
Return type:

Function getElementValue

Gets the value of the specified element number, and moves the active element to the next element in the array. Parameters:
  • elementNumber: The number of the element to get.
Returns: The value at the given element number. Parameters:
  • int elementNumber
Return type: object

Function getValue

Gets the value at the array element specifed. Parameters:
  • variableName: The string representation of the array element.
Returns: The value at that element. Parameters:
  • string variableName
Return type: object

Private functions

Function getLength

Parameters:
  • int dim
Return type: int

Function reset

Return type: void