00001 /* 00002 * lib-gmapkernel : Un noyau de 3-G-cartes et des opérations. 00003 * Copyright (C) 2004, Moka Team, Université de Poitiers, Laboratoire SIC 00004 * http://www.sic.sp2mi.univ-poitiers.fr/ 00005 * Copyright (C) 2009, Guillaume Damiand, CNRS, LIRIS, 00006 * guillaume.damiand@liris.cnrs.fr, http://liris.cnrs.fr/ 00007 * 00008 * This file is part of lib-gmapkernel 00009 * 00010 * This program is free software: you can redistribute it and/or modify 00011 * it under the terms of the GNU Lesser General Public License as published by 00012 * the Free Software Foundation, either version 3 of the License, or 00013 * (at your option) any later version. 00014 * 00015 * This program is distributed in the hope that it will be useful, 00016 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00017 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00018 * GNU Lesser General Public License for more details. 00019 * 00020 * You should have received a copy of the GNU Lesser General Public License 00021 * along with this program. If not, see <http://www.gnu.org/licenses/>. 00022 */ 00023 00024 //****************************************************************************** 00025 #ifndef EMBEDDING_HH 00026 #define EMBEDDING_HH 00027 //****************************************************************************** 00028 #include "kernel-types.hh" 00029 #include "inline-macro.hh" 00030 //****************************************************************************** 00031 class CAttribute; 00032 00042 class CEmbedding 00043 { 00044 public: 00045 // @name Constructeurs et destructeur 00046 // @{ 00047 00056 CEmbedding(TOrbit AOrbit); 00057 00064 CEmbedding(const CEmbedding& AEmbedding); 00065 00071 ~CEmbedding(); 00072 00084 CEmbedding* copy() const; 00085 00093 void destroy(); 00094 00095 // @} 00096 00097 // @name Accesseurs 00098 // @{ 00099 00103 TOrbit getOrbit() const; 00104 00112 CEmbedding* getNext() const; 00113 00120 void setNext(CEmbedding* AEmbedding); 00121 00127 CEmbedding* getPrev() const; 00128 00135 void setPrev(CEmbedding* AEmbedding); 00136 00140 CAttribute* getFirstAttribute() const; 00141 00148 void setFirstAttribute(CAttribute* AAttribute); 00149 00155 bool isEmpty() const; 00156 00157 // @} 00158 // @name Méthodes pour travailler sur les attributs 00159 // @{ 00160 00169 CAttribute* getAttribute(TAttributeId AAttribType) const; 00170 00179 void addAttribute(CAttribute* AAttribute); 00180 00190 CAttribute* removeAttribute(CAttribute* AAttribute); 00191 00199 CAttribute* removeAttribute(TAttributeId attribType); 00200 00210 void deleteAttribute(CAttribute* AAttribute); 00211 00219 void deleteAttribute(TAttributeId attribType); 00220 00230 void mergeAttribute(CEmbedding* AEmbedding); 00231 00232 // @} 00233 00234 private: 00235 // @name Champs privés 00236 // @{ 00237 00239 CAttribute* FFirstAttribute; 00240 00242 TOrbit FId; 00243 00245 CEmbedding* FPrev; 00246 CEmbedding* FNext; 00247 00248 // @} 00249 }; 00250 //****************************************************************************** 00251 #include INCLUDE_INLINE("embedding.icc") 00252 //****************************************************************************** 00253 #endif // EMBEDDING_HH 00254 //******************************************************************************