MorphoGraphX
EdgeData.hpp
Go to the documentation of this file.
1 //
2 // This file is part of MorphoGraphX - http://www.MorphoGraphX.org
3 // Copyright (C) 2012-2015 Richard S. Smith and collaborators.
4 //
5 // If you use MorphoGraphX in your work, please cite:
6 // http://dx.doi.org/10.7554/eLife.05864
7 //
8 // MorphoGraphX is free software, and is licensed under under the terms of the
9 // GNU General (GPL) Public License version 2.0, http://www.gnu.org/licenses.
10 //
11 #ifndef EDGE_DATA_H
12 #define EDGE_DATA_H
13 
14 #include <Config.hpp>
15 
22 namespace mgx {
27 struct EdgeData {
28  double len;
29  EdgeData()
30  : len(0.0)
31  {
32  }
33  virtual ~EdgeData() {
34  }
35  bool operator==(const EdgeData& other) const {
36  return len == other.len;
37  }
38 };
39 } // namespace mgx
40 
41 #endif
This namespace contains all the API of MorphoGraphX.
Definition: Assert.hpp:26
double len
Length of the edge.
Definition: EdgeData.hpp:28
This class defines the fields available from an edge.
Definition: EdgeData.hpp:27