#include <SHypercube.h>
Inherits STopology.
Inheritance diagram for SHypercube:
Public Methods | |
SHypercube (int dim) | |
virtual | ~SHypercube () |
virtual STopologyMod & | getModifier () |
virtual int | getCount () const |
virtual int | getDim () const |
virtual int | getIDAt (int pos) const |
virtual int | getPos (int ID) const |
virtual bool | isPosFree (int pos) const |
virtual bool | canEmbedAt (const STopology &top, int pos) const |
virtual bool | canEmbedAt (const SComplexPosition &rHcPos) const |
virtual void | embed (const STopology &top, int pos, int ID) |
virtual void | embed (const STopology &top, const SComplexPosition *pHcPos, int ID) |
virtual void | remove (int ID) |
virtual void | clear () |
virtual bool | fitsInto (const STopology *top) const |
virtual leda_list< int > | getFreePos () const |
virtual leda_list< int > | canEmbedAt (const STopology &top) const |
virtual leda_list< int > | getEmbeddedIDs () const |
virtual leda_string | getClassifier () const=0 |
virtual bool | isInstanceOf (const leda_string &classifier) const=0 |
virtual void | assureInstanceOf (const leda_string &classifier) const=0 |
void | addObserver (SObserver &obs) |
void | deleteObserver (SObserver &obs) |
void | notifyObservers (const SEvent &event) |
Protected Methods | |
void | setSize (int dim) |
Protected Attributes | |
leda_h_array< int, SHypercubeEntry * > | _IDtoEntry |
Static Protected Attributes | |
SHypercubeEntry | _defaultEntry |
Friends | |
class | SHypercubeMod |
|
Constructor.
|
|
Destructor |
|
Here another component can register himself as observer of this component
|
|
The same as isInstanceOf(), only that the program is stopped with an error in case of failure
|
|
Return a list of all positions where the topology may be embedded. Default implementation: just call canEmbedAt for all free positions
Reimplemented in SSetTopology, and SSingleTopology. |
|
|
|
Return whether the topology can be embedded at a certain position
Implements STopology. |
|
Remove all embedded objects. Reimplemented from STopology. |
|
Here another component can delete himself from the list of observers of this component
|
|
Reimplemented from STopology. |
|
Embed a topology.
Implements STopology. |
|
Test whether this Topology is at most as large as another
Implements STopology. |
|
Get the classifier of the object, using the classification scheme. E.g. "P" for Identical Processors
|
|
Return the number of positions in the linearized representation. Only positions 0..getCount()-1 are allowed.
Implements STopology. |
|
Get dimension of hypercube
|
|
Get all IDs that are currently embedded in the topology. Attention: This method has a very inefficient default implementation.
|
|
Get a list of all positions where no topology is overlapping
Reimplemented in SSetTopology, and SSingleTopology. |
|
Return ID of the topology which is overlapping position 'pos'
Implements STopology. |
|
Get access to the modifier Implements STopology. |
|
Return position at which the topology with id 'ID' is currently embedded
Implements STopology. |
|
Checks whether the object is an instance of the specified or a specialized class
|
|
Return whether no topology overlaps with 'pos'
Implements STopology. |
|
Inform all observers of this component about an event. The Observers will receive this event by their SObserver::update()-method.
|
|
Reverse the embedding
Implements STopology. |
|
|
|
|
|
|
|
|