java.lang.Object
simula.runtime.RTS_ARRAY
simula.runtime.RTS_RTObject.RTS_REF_ARRAY<T>
- Type Parameters:
T
- the actual array type
- Enclosing class:
RTS_RTObject
This class represent a Simula ref(T) array.
-
Field Summary
-
Constructor Summary
ConstructorDescriptionRTS_REF_ARRAY
(RTS_RTObject.RTS_BOUNDS... BOUNDS) Create a ref() array with the given bounds. -
Method Summary
Modifier and TypeMethodDescriptionCOPY()
Abstract method redefined for all subclass <type>_ARRAYgetELEMENT
(int... x) This method will return a value from ELTS[x...]putELEMENT
(int ix, T val) This method will put a object reference into ELTS[ix]Methods inherited from class simula.runtime.RTS_ARRAY
index, lowerBound, nDim, size, toString, upperBound
-
Field Details
-
ELTS
The elements in this RTS_REF_ARRAY
-
-
Constructor Details
-
RTS_REF_ARRAY
Create a ref() array with the given bounds.- Parameters:
BOUNDS
- the array bounds
-
-
Method Details
-
putELEMENT
This method will put a object reference into ELTS[ix]- Parameters:
ix
- the index of ELTSval
- the value to put- Returns:
- the value stored
-
getELEMENT
This method will return a value from ELTS[x...]- Parameters:
x
- the indexes of ELTS- Returns:
- the value loaded
-
COPY
Description copied from class:RTS_ARRAY
Abstract method redefined for all subclass <type>_ARRAY
-