![]() |
Tulip
4.6.0
Better Visualization Through Research
|
00001 /* 00002 * 00003 * This file is part of Tulip (www.tulip-software.org) 00004 * 00005 * Authors: David Auber and the Tulip development Team 00006 * from LaBRI, University of Bordeaux 00007 * 00008 * Tulip is free software; you can redistribute it and/or modify 00009 * it under the terms of the GNU Lesser General Public License 00010 * as published by the Free Software Foundation, either version 3 00011 * of the License, or (at your option) any later version. 00012 * 00013 * Tulip is distributed in the hope that it will be useful, 00014 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00015 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 00016 * See the GNU General Public License for more details. 00017 * 00018 */ 00019 ///@cond DOXYGEN_HIDDEN 00020 00021 00022 #ifndef BMDLINK_H 00023 #define BMDLINK_H 00024 00025 #ifndef DOXYGEN_NOTFOR_USER 00026 00027 template <typename TYPE> class BmdList; 00028 template <typename TYPE> class BmdListTest; 00029 00030 namespace tlp { 00031 template <typename TYPE> 00032 class BmdLink { 00033 00034 friend class BmdList<TYPE>; 00035 friend class BmdListTest<TYPE>; 00036 public: 00037 TYPE getData() { 00038 return data; 00039 } 00040 BmdLink *prev() { 00041 return pre; 00042 } 00043 BmdLink *succ() { 00044 return suc; 00045 } 00046 //protected: 00047 TYPE data; 00048 BmdLink *pre; 00049 BmdLink *suc; 00050 BmdLink(TYPE a, BmdLink<TYPE> *pre, BmdLink<TYPE> *suc); 00051 }; 00052 } 00053 #include <tulip/cxx/BmdLink.cxx> 00054 00055 #endif 00056 #endif 00057 ///@endcond