cheshirekow  v0.1.0
Node.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2012 Josh Bialkowski (jbialk@mit.edu)
3  *
4  * This file is part of mpblocks.
5  *
6  * mpblocks is free software: you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License as published by
8  * the Free Software Foundation, either version 3 of the License, or
9  * (at your option) any later version.
10  *
11  * mpblocks is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  * GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with mpblocks. If not, see <http://www.gnu.org/licenses/>.
18  */
27 #ifndef MPBLOCKS_SIMPLEX_TREE_NODE_H_
28 #define MPBLOCKS_SIMPLEX_TREE_NODE_H_
29 
30 #include <Eigen/Dense>
31 #include <vector>
32 #include <list>
33 
34 namespace mpblocks {
35 namespace simplex_tree {
36 
38 
47 template <class Traits>
48 class Node
49 {
50  public:
51  typedef typename Traits::Format Format_t;
52  typedef typename Traits::Node Node_t;
53 
54  typedef unsigned int Index_t;
55  typedef Eigen::Matrix<Format_t,Traits::NDim,1> Vector_t;
56  typedef Eigen::Matrix<Format_t,Traits::NDim,1> Point_t;
57 
58  protected:
60 
61  public:
62  const Point_t& getPoint();
63 
64 };
65 
66 
67 
68 
69 
70 
71 } // namespace simplex_tree
72 } // namespace mpblocks
73 
74 
75 
76 
77 
78 
79 
80 
81 
82 
83 
84 
85 #endif // NODE_H_
Eigen::Matrix< Format_t, Traits::NDim, 1 > Point_t
Definition: Node.h:56
unsigned int Index_t
Definition: Node.h:54
const Point_t & getPoint()
Traits::Format Format_t
Definition: Node.h:51
Eigen::Matrix< Format_t, Traits::NDim, 1 > Vector_t
Definition: Node.h:55
Traits::Node Node_t
Definition: Node.h:52
base class for nodes, implements storage and interface for the simplex tree
Definition: Node.h:48