Moka kernel
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
embedding.hh
Go to the documentation of this file.
1 /*
2  * lib-gmapkernel : Un noyau de 3-G-cartes et des opérations.
3  * Copyright (C) 2004, Moka Team, Université de Poitiers, Laboratoire SIC
4  * http://www.sic.sp2mi.univ-poitiers.fr/
5  * Copyright (C) 2009, Guillaume Damiand, CNRS, LIRIS,
6  * guillaume.damiand@liris.cnrs.fr, http://liris.cnrs.fr/
7  *
8  * This file is part of lib-gmapkernel
9  *
10  * This program is free software: you can redistribute it and/or modify
11  * it under the terms of the GNU Lesser General Public License as published by
12  * the Free Software Foundation, either version 3 of the License, or
13  * (at your option) any later version.
14  *
15  * This program is distributed in the hope that it will be useful,
16  * but WITHOUT ANY WARRANTY; without even the implied warranty of
17  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18  * GNU Lesser General Public License for more details.
19  *
20  * You should have received a copy of the GNU Lesser General Public License
21  * along with this program. If not, see <http://www.gnu.org/licenses/>.
22  */
23 
24 //******************************************************************************
25 #ifndef EMBEDDING_HH
26 #define EMBEDDING_HH
27 //******************************************************************************
28 #include "kernel-types.hh"
29 #include "inline-macro.hh"
30 //******************************************************************************
31 class CAttribute;
32 
43 {
44 public:
45  // @name Constructeurs et destructeur
46  // @{
47 
56  CEmbedding(TOrbit AOrbit);
57 
64  CEmbedding(const CEmbedding& AEmbedding);
65 
71  ~CEmbedding();
72 
84  CEmbedding* copy() const;
85 
93  void destroy();
94 
95  // @}
96 
97  // @name Accesseurs
98  // @{
99 
103  TOrbit getOrbit() const;
104 
112  CEmbedding* getNext() const;
113 
120  void setNext(CEmbedding* AEmbedding);
121 
127  CEmbedding* getPrev() const;
128 
135  void setPrev(CEmbedding* AEmbedding);
136 
140  CAttribute* getFirstAttribute() const;
141 
148  void setFirstAttribute(CAttribute* AAttribute);
149 
155  bool isEmpty() const;
156 
157  // @}
158  // @name Méthodes pour travailler sur les attributs
159  // @{
160 
169  CAttribute* getAttribute(TAttributeId AAttribType) const;
170 
179  void addAttribute(CAttribute* AAttribute);
180 
190  CAttribute* removeAttribute(CAttribute* AAttribute);
191 
200 
210  void deleteAttribute(CAttribute* AAttribute);
211 
219  void deleteAttribute(TAttributeId attribType);
220 
230  void mergeAttribute(CEmbedding* AEmbedding);
231 
232  // @}
233 
234 private:
235  // @name Champs privés
236  // @{
237 
239  CAttribute* FFirstAttribute;
240 
242  TOrbit FId;
243 
245  CEmbedding* FPrev;
246  CEmbedding* FNext;
247 
248  // @}
249 };
250 //******************************************************************************
251 #include INCLUDE_INLINE("embedding.icc")
252 //******************************************************************************
253 #endif // EMBEDDING_HH
254 //******************************************************************************