Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

SMeshN Class Reference

#include <SMeshN.h>

Inherits STopology.

Inherited by SMeshTopology.

Inheritance diagram for SMeshN:

Inheritance graph
[legend]
List of all members.

Public Methods

 SMeshN (SDimArray &meshSize)
 SMeshN (int dim)
virtual ~SMeshN ()
virtual STopologyModgetModifier ()
virtual int getCount () const
virtual int getDim () const
virtual SDimArray getSize () 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 *pMeshNPos, 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 (SDimArray &newSize)

Protected Attributes

SDimArray _size
leda_h_array< int, SMeshNEntry * > _IDtoEntry

Static Protected Attributes

SMeshNEntry _defaultEntry

Friends

class SMeshNMod

Detailed Description

n-dimensional mesh topology, its classifier is "meshN". Access the modifier to set properties.
See also:
SMeshNMod


Constructor & Destructor Documentation

SMeshN::SMeshN SDimArray   meshSize
 

Constructor.

Parameters:
meshSize  size of mesh in each dimension

SMeshN::SMeshN int    dim
 

Constructor.

Parameters:
dim  dimension of mesh

virtual SMeshN::~SMeshN   [inline, virtual]
 

Destructor


Member Function Documentation

void SObservable::addObserver SObserver   obs [inline, inherited]
 

Here another component can register himself as observer of this component

Parameters:
obs  observer that wants to be notified of events created by this class

virtual void STypeInfo::assureInstanceOf const leda_string &    classifier const [pure virtual, inherited]
 

The same as isInstanceOf(), only that the program is stopped with an error in case of failure

Parameters:
classifier  e.g. "P", "Q", "R", etc

leda_list< int > STopology::canEmbedAt const STopology   top const [virtual, inherited]
 

Return a list of all positions where the topology may be embedded. Default implementation: just call canEmbedAt for all free positions

Parameters:
top  topology
Returns:
list of positions

Reimplemented in SSetTopology, and SSingleTopology.

bool SMeshN::canEmbedAt const SComplexPosition   rHcPos const [virtual]
 

bool SMeshN::canEmbedAt const STopology   top,
int    pos
const [virtual]
 

Return whether the topology can be embedded at a certain position

Parameters:
top  topology
pos  position
Returns:
true if topology can be embedded, otherwise false

Implements STopology.

Reimplemented in SSingleTopology.

void SMeshN::clear   [virtual]
 

Remove all embedded objects.

Reimplemented from STopology.

void SObservable::deleteObserver SObserver   obs [inline, inherited]
 

Here another component can delete himself from the list of observers of this component

Parameters:
obs  observer that doesn't want to be notified anymore

void SMeshN::embed const STopology   top,
const SComplexPosition   pMeshNPos,
int    ID
[virtual]
 

Reimplemented from STopology.

void SMeshN::embed const STopology   top,
int    pos,
int    ID
[virtual]
 

Embed a topology.

Parameters:
top  topology
pos  position where topology is embedded
ID  ID of the embedded topology

Implements STopology.

Reimplemented in SSingleTopology.

virtual bool SMeshN::fitsInto const STopology   top const [inline, virtual]
 

Test whether this Topology is at most as large as another

Parameters:
top  topology to compare with

Implements STopology.

Reimplemented in SSingleTopology.

virtual leda_string STypeInfo::getClassifier   [pure virtual, inherited]
 

Get the classifier of the object, using the classification scheme. E.g. "P" for Identical Processors

Returns:
classifier string

virtual int SMeshN::getCount   const [inline, virtual]
 

Return the number of positions in the linearized representation. Only positions 0..getCount()-1 are allowed.

Returns:
number of positions

Implements STopology.

Reimplemented in SSingleTopology.

virtual int SMeshN::getDim   const [inline, virtual]
 

Get dimension of mesh

Returns:
dimension of the mesh

leda_list< int > STopology::getEmbeddedIDs   [virtual, inherited]
 

Get all IDs that are currently embedded in the topology. Attention: This method has a very inefficient default implementation.

Returns:
list of embedded IDs

leda_list< int > STopology::getFreePos   [virtual, inherited]
 

Get a list of all positions where no topology is overlapping

Returns:
list of free positions

Reimplemented in SSetTopology, and SSingleTopology.

int SMeshN::getIDAt int    pos const [virtual]
 

Return ID of the topology which is overlapping position 'pos'

Parameters:
pos  position
Returns:
topology ID (-1 if none)

Implements STopology.

Reimplemented in SSingleTopology.

virtual STopologyMod& SMeshN::getModifier   [inline, virtual]
 

Get access to the modifier

Implements STopology.

Reimplemented in SLineTopology, SMeshTopology, and SSingleTopology.

int SMeshN::getPos int    ID const [virtual]
 

Return position at which the topology with id 'ID' is currently embedded

Parameters:
ID  topology ID
Returns:
position

Implements STopology.

Reimplemented in SSingleTopology.

virtual SDimArray SMeshN::getSize   const [inline, virtual]
 

Get size of mesh

Returns:
size of mesh

virtual bool STypeInfo::isInstanceOf const leda_string &    classifier const [pure virtual, inherited]
 

Checks whether the object is an instance of the specified or a specialized class

Parameters:
classifier  e.g. "P", "Q", "R", etc
Returns:
true if the object can be casted to the specified class

bool SMeshN::isPosFree int    pos const [virtual]
 

Return whether no topology overlaps with 'pos'

Parameters:
pos  position
Returns:
true if no topology overlaps with 'pos', otherise false

Implements STopology.

Reimplemented in SSingleTopology.

void SObservable::notifyObservers const SEvent   event [inline, inherited]
 

Inform all observers of this component about an event. The Observers will receive this event by their SObserver::update()-method.

Parameters:
event  an event that is sent to all observers of this component
See also:
SObserver::update()

void SMeshN::remove int    ID [virtual]
 

Reverse the embedding

Parameters:
ID  ID of topology

Implements STopology.

Reimplemented in SSingleTopology.

void SMeshN::setSize SDimArray   newSize [protected]
 


Friends And Related Function Documentation

friend class SMeshNMod [friend]
 


Member Data Documentation

SMeshNEntry SMeshN::_defaultEntry [static, protected]
 

leda_h_array<int, SMeshNEntry*> SMeshN::_IDtoEntry [protected]
 

SDimArray SMeshN::_size [protected]
 


The documentation for this class was generated from the following files:
Generated on Thu May 22 16:50:48 2003 for Sketch-it! by doxygen1.2.18