Index - All Packages - All Categories - All Classes

Class GenericCrossRegion

Represents a region as a two-dimensional array of crosses of subregions.
Was NOTA.TYPE but that obstructed compilation.
I think this might work better if the array is lexically sorted, but I am not sure there is any meaningful way to do so. Thus there is no sorting assumed in the algorithms, although the protocol may occasionally suggest that there might be.

Eventually this implementation may save space by using nil to represent repetitions of a sub region such that
fetchBoxProjection (box, dim) == nil
only if
box > 0
&& boxProjection (box, dim)->isEqual (boxProjection (box - 1, dim))
&& (dim == 0
|| fetchBoxProjection (box, dim - 1) == nil)

Package: Udanax-Gold
All Superclasses: Object Heaper XnRegion CrossRegion
Protocols: Object
Categories: Xanadu-Spaces-Cross

Class Methods

empty: space


full: space with: subSpaces


make: space with: count with: regions



Instance Methods

actualHashForEqual



Overrides: CrossRegion

actualStepper: order



Overrides: CrossRegion

asSimpleRegion



Overrides: CrossRegion

boxCount


boxes



Overrides: CrossRegion

boxProjection: box with: dimension

A region is at a given 2D place in the array

boxProjectionStepper

A stepper over all projections of all boxes in the region

boxStepper

A stepper over all boxes

complement



Overrides: CrossRegion

coordinateSpace



Overrides: CrossRegion

count



Overrides: CrossRegion

create: space with: count with: regions


createRcvr: receiver


crossSpace


distinctions



Overrides: CrossRegion

hasBoxProjection: other with: box with: dimension


hasMember: position



Overrides: CrossRegion

intersect: region



Overrides: CrossRegion

intersects: other



Overrides: XnRegion

isBox



Overrides: CrossRegion

isDistinction



Overrides: XnRegion

isEmpty



Overrides: CrossRegion

isEnumerable: order



Overrides: CrossRegion

isEqual: other



Overrides: CrossRegion

isFinite



Overrides: CrossRegion

isFull



Overrides: XnRegion

isSimple



Overrides: CrossRegion

isSubsetOf: other



Overrides: XnRegion

printOn: oo



Overrides: Object

projection: index



Overrides: CrossRegion

projections



Overrides: CrossRegion

secretRegions

The array holding the regions. DO NOT MODIFY

sendSelfTo: xmtr


simpleRegions: order



Overrides: CrossRegion

theOne



Overrides: XnRegion

unionWith: region



Overrides: CrossRegion


Index - All Packages - All Categories - All Classes