1 -- File: SMDS_MeshElementIDFactory.cdl
2 -- Created: Tue May 7 16:19:36 2002
3 -- Author: Jean-Michel BOULCOURT
4 -- <jmb@localhost.localdomain>
5 ---Copyright: Matra Datavision 2002
8 private class MeshElementIDFactory from SMDS inherits MeshIDFactory
13 DataMapOfIntegerMeshElement from SMDS,
18 Create returns mutable MeshElementIDFactory from SMDS;
20 GetFreeID(me:mutable) returns Integer is redefined static;
21 ---Purpose: returns a free identifier for mesh from
25 ReleaseID(me: mutable;ID :Integer) is redefined static;
26 ---Purpose: free the ID and give it back to the pool of ID
29 BindID(me: mutable;ID :Integer; elem : MeshElement from SMDS )
31 ---Purpose: bind the ID with the mesh element
32 -- returns False if the ID is already bound.
33 -- In this case the element is not replaced
36 MeshElement(me;ID :Integer) returns MeshElement from SMDS;
37 ---Purpose: returns the MeshElement associated with ID
38 -- raises an exception if the ID is not bound
43 myIDElements : DataMapOfIntegerMeshElement from SMDS;
45 end MeshElementIDFactory;