Tulip  5.1.0
Large graphs analysis and drawing
BmdLink.h
1 /*
2  *
3  * This file is part of Tulip (http://tulip.labri.fr)
4  *
5  * Authors: David Auber and the Tulip development Team
6  * from LaBRI, University of Bordeaux
7  *
8  * Tulip is free software; you can redistribute it and/or modify
9  * it under the terms of the GNU Lesser General Public License
10  * as published by the Free Software Foundation, either version 3
11  * of the License, or (at your option) any later version.
12  *
13  * Tulip is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
16  * See the GNU General Public License for more details.
17  *
18  */
19 ///@cond DOXYGEN_HIDDEN
20 
21 
22 #ifndef BMDLINK_H
23 #define BMDLINK_H
24 
25 #ifndef DOXYGEN_NOTFOR_USER
26 
27 template <typename TYPE> class BmdList;
28 template <typename TYPE> class BmdListTest;
29 
30 namespace tlp {
31 template <typename TYPE>
32 class BmdLink {
33 
34  friend class BmdList<TYPE>;
35  friend class BmdListTest<TYPE>;
36 public:
37  TYPE getData() {
38  return data;
39  }
40  BmdLink *prev() {
41  return pre;
42  }
43  BmdLink *succ() {
44  return suc;
45  }
46  //protected:
47  TYPE data;
48  BmdLink *pre;
49  BmdLink *suc;
50  BmdLink(TYPE a, BmdLink<TYPE> *pre, BmdLink<TYPE> *suc);
51 };
52 }
53 #include <tulip/cxx/BmdLink.cxx>
54 
55 #endif
56 #endif
57 ///@endcond