Salome HOME
This commit was generated by cvs2git to create branch 'IMPORT'.
[modules/smesh.git] / src / SMDS / SMDS_MeshElementIDFactory.cdl
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
6
7
8 private class MeshElementIDFactory from SMDS inherits MeshIDFactory
9
10         ---Purpose: 
11
12 uses
13     DataMapOfIntegerMeshElement from SMDS,
14     MeshElement from SMDS
15
16 is
17
18     Create returns mutable MeshElementIDFactory from SMDS;
19
20     GetFreeID(me:mutable) returns Integer is redefined static;
21         ---Purpose: returns a free identifier for mesh from
22         --          the pool of ID
23         ---C++: inline
24         
25     ReleaseID(me: mutable;ID :Integer) is redefined static;
26         ---Purpose: free the ID and give it back to the pool of ID
27         ---C++: inline
28
29     BindID(me: mutable;ID :Integer; elem : MeshElement from SMDS )
30     returns Boolean;
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
34         ---C++: inline
35
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
39         ---C++: inline
40
41
42 fields
43     myIDElements : DataMapOfIntegerMeshElement from SMDS;
44     
45 end MeshElementIDFactory;