#include <SSetTopology.h>
Inherits STopology.
Inherited by SSingleTopology.
Inheritance diagram for SSetTopology:
Public Methods | |
SSetTopology (int cardinality) | |
virtual | ~SSetTopology () |
virtual STopologyMod & | getModifier () |
virtual int | getCount () const |
virtual int | getIDAt (int pos) const |
virtual int | getPos (int ID) const |
virtual bool | isPosFree (int pos) const |
virtual leda_list< int > | getFreePos () const |
virtual bool | canEmbedAt (const STopology &top, int pos) const |
virtual leda_list< int > | canEmbedAt (const STopology &top) const |
virtual void | embed (const STopology &top, int pos, int ID) |
virtual void | remove (int ID) |
virtual bool | fitsInto (const STopology *top) const |
virtual void | embed (const STopology &top, const SComplexPosition *pComplexPos, int ID) |
virtual leda_list< int > | getEmbeddedIDs () const |
virtual void | clear () |
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) |
Friends | |
class | SSetTopologyMod |
|
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 position where the topology may be embedded (list contains one zero-entry)
Reimplemented from STopology. Reimplemented in SSingleTopology. |
|
Return whether the topology can be embedded at a certain position
Implements STopology. Reimplemented in 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 topology.
Implements STopology. Reimplemented in SSingleTopology. |
|
Test whether this Topology is at most as large as another
Implements STopology. Reimplemented in 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.
Implements STopology. Reimplemented in SSingleTopology. |
|
Get all IDs that are currently embedded in the topology. Attention: This method has a very inefficient default implementation.
|
|
Get a list with as many zero-entries as there are free positions
Reimplemented from STopology. Reimplemented in SSingleTopology. |
|
Return ID of the topology which is overlapping position 'pos'
Implements STopology. Reimplemented in SSingleTopology. |
|
Get access to the modifier Implements STopology. Reimplemented in SSingleTopology. |
|
Return position at which the topology with id 'ID' is currently embedded. This method has no meaning for SSetTopology since the jobs are not embedded at fixed positions.
Implements STopology. Reimplemented in SSingleTopology. |
|
Checks whether the object is an instance of the specified or a specialized class
|
|
Return whether there is at least one free position left.
Implements STopology. Reimplemented in SSingleTopology. |
|
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. Reimplemented in SSingleTopology. |
|
|