コード例 #1
0
 public ImmuTable without(Position index) {
   return new OffsetImmuTable((myTable.without((myDsp.inverseOf(index)))), myDsp);
   /*
   udanax-top.st:47657:OffsetImmuTable methodsFor: 'SEF manipulation'!
   {ImmuTable} without: index {Position}
   	^OffsetImmuTable create: (myTable without: (myDsp inverseOf: index)) with: myDsp!
   */
 }
コード例 #2
0
  public boolean includesKey(Position aKey) {
    return myTable.includesKey((myDsp.inverseOf(aKey)));
    /*
    udanax-top.st:47592:OffsetImmuTable methodsFor: 'testing'!
    {BooleanVar} includesKey: aKey {Position}

    	^ myTable includesKey: (myDsp inverseOf: aKey)!
    */
  }
コード例 #3
0
 public XnRegion runAt(Position key) {
   if (includesKey((myDsp.inverseOf(key)))) {
     return key.asRegion();
   } else {
     return myTable.coordinateSpace().emptyRegion();
   }
   /*
   udanax-top.st:47575:OffsetImmuTable methodsFor: 'runs'!
   {XnRegion} runAt: key {Position}
   	(self includesKey: (myDsp inverseOf: key))
   		ifTrue: [^ key asRegion]
   		ifFalse: [^ myTable coordinateSpace emptyRegion]!
   */
 }
コード例 #4
0
 public ImmuTable combineWith(ImmuTable other) {
   MuTable newTable;
   TableStepper others;
   newTable = (MuTable) myTable.copy().asMuTable();
   others = other.stepper();
   while (others.hasValue()) {
     newTable.store((myDsp.inverseOf(others.position())), others.fetch());
     others.step();
   }
   others.destroy();
   return new OffsetImmuTable(newTable.asImmuTable(), myDsp);
   /*
   udanax-top.st:47646:OffsetImmuTable methodsFor: 'SEF manipulation'!
   {ImmuTable} combineWith: other {ImmuTable}
   	| newTable {MuTable} others {TableStepper} |
   	newTable _ myTable copy asMuTable.
   	others _ other stepper.
   	[others hasValue] whileTrue:
   		[newTable at: (myDsp inverseOf: others position) store: others fetch.
   		others step].
   	others destroy.
   	^OffsetImmuTable create: newTable asImmuTable with: myDsp!
   */
 }