From a90c6d1fc1b31875707a8406fa3979d64b158148 Mon Sep 17 00:00:00 2001
From: Joseph Mirabel <jmirabel@laas.fr>
Date: Tue, 29 Jul 2014 17:15:38 +0200
Subject: [PATCH] Separate definition and declaration of Graph

---
 include/hpp/manipulation/graph/graph.hh | 28 +++++++------------------
 src/graph/graph.cc                      | 25 ++++++++++++++++++++++
 2 files changed, 33 insertions(+), 20 deletions(-)

diff --git a/include/hpp/manipulation/graph/graph.hh b/include/hpp/manipulation/graph/graph.hh
index 1ad69b75..6f3a1804 100644
--- a/include/hpp/manipulation/graph/graph.hh
+++ b/include/hpp/manipulation/graph/graph.hh
@@ -75,32 +75,20 @@ namespace hpp {
           std::ostream& print (std::ostream& os) const;
 
           /// Set maximal number of iterations
-          void maxIterations (size_type iterations)
-          {
-            maxIterations_ = iterations;
-          }
+          void maxIterations (size_type iterations);
+
           /// Get maximal number of iterations in config projector
-          size_type maxIterations () const
-          {
-            return maxIterations_;
-          }
+          size_type maxIterations () const;
 
           /// Set error threshold
-          void errorThreshold (const value_type& threshold)
-          {
-            errorThreshold_ = threshold;
-          }
+          void errorThreshold (const value_type& threshold);
+
           /// Get errorimal number of threshold in config projector
-          value_type errorThreshold () const
-          {
-            return errorThreshold_;
-          }
+          value_type errorThreshold () const;
 
           /// Get the robot.
-          const RobotPtr_t& robot () const
-          {
-            return robot_;
-          }
+          const RobotPtr_t& robot () const;
+
         protected:
           /// Initialization of the object.
           void init (const GraphWkPtr_t& weak, RobotPtr_t robot);
diff --git a/src/graph/graph.cc b/src/graph/graph.cc
index 570035e5..4cbc0c42 100644
--- a/src/graph/graph.cc
+++ b/src/graph/graph.cc
@@ -48,6 +48,31 @@ namespace hpp {
         return newNodeSelector;
       }
 
+      void Graph::maxIterations (size_type iterations)
+      {
+        maxIterations_ = iterations;
+      }
+
+      size_type Graph::maxIterations () const
+      {
+        return maxIterations_;
+      }
+
+      void Graph::errorThreshold (const value_type& threshold)
+      {
+        errorThreshold_ = threshold;
+      }
+
+      value_type Graph::errorThreshold () const
+      {
+        return errorThreshold_;
+      }
+
+      const RobotPtr_t& Graph::robot () const
+      {
+        return robot_;
+      }
+
       Nodes_t Graph::getNode(const Configuration_t config)
       {
         Nodes_t nodes;
-- 
GitLab