#include <STopology.h>
Inherits STypeInfo, and SObservable.
Inherited by SHypercube [virtual]
, SMeshN [virtual]
, and SSetTopology [virtual]
.
Inheritance diagram for STopology:
Public Methods | |
STopology () | |
virtual | ~STopology () |
virtual STopologyMod & | getModifier ()=0 |
virtual int | getCount () const=0 |
virtual int | getIDAt (int pos) const=0 |
virtual int | getPos (int ID) const=0 |
virtual bool | isPosFree (int pos) const=0 |
virtual leda_list< int > | getFreePos () const |
virtual bool | canEmbedAt (const STopology &top, int pos) const=0 |
virtual leda_list< int > | canEmbedAt (const STopology &top) const |
virtual void | embed (const STopology &top, int pos, int ID)=0 |
virtual void | embed (const STopology &top, const SComplexPosition *pComplexPos, int ID) |
virtual void | remove (int ID)=0 |
virtual leda_list< int > | getEmbeddedIDs () const |
virtual void | clear () |
virtual bool | fitsInto (const STopology *top) const=0 |
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) |
|
Contructor |
|
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
Implemented in SHypercube, SMeshN, SSetTopology, and SSingleTopology. |
|
Remove all embedded objects. Attention: This method has a very inefficient default implementation. Reimplemented in SHypercube, and SMeshN. |
|
Here another component can delete himself from the list of observers of this component
|
|
Reimplemented in SHypercube, and SMeshN. |
|
Embed a topology.
Implemented in SHypercube, SMeshN, SSetTopology, and SSingleTopology. |
|
Test whether this Topology is at most as large as another
Implemented in SHypercube, SMeshN, SSetTopology, and SSingleTopology. |
|
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.
Implemented in SHypercube, SMeshN, SSetTopology, and SSingleTopology. |
|
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'
Implemented in SHypercube, SMeshN, SSetTopology, and SSingleTopology. |
|
Get access to the modifier Implemented in SHypercube, SLineTopology, SMeshN, SMeshTopology, SSetTopology, and SSingleTopology. |
|
Return position at which the topology with id 'ID' is currently embedded
Implemented in SHypercube, SMeshN, SSetTopology, and SSingleTopology. |
|
Checks whether the object is an instance of the specified or a specialized class
|
|
Return whether no topology overlaps with 'pos'
Implemented in SHypercube, SMeshN, SSetTopology, and SSingleTopology. |
|
Inform all observers of this component about an event. The Observers will receive this event by their SObserver::update()-method.
|
|
Reverse the embedding
Implemented in SHypercube, SMeshN, SSetTopology, and SSingleTopology. |