diff --git a/include/ion/graph.h b/include/ion/graph.h index f9bb75d7..35efda6c 100644 --- a/include/ion/graph.h +++ b/include/ion/graph.h @@ -12,13 +12,10 @@ class Builder; class Graph { public: - struct Impl; Graph(); - - Graph(Builder & builder , const std::string& name = ""); Graph& operator+=(const Graph& rhs); @@ -48,7 +45,6 @@ class Graph { private: std::shared_ptr impl_; - }; } // namespace ion diff --git a/src/graph.cc b/src/graph.cc index 9cc790c8..9218db81 100644 --- a/src/graph.cc +++ b/src/graph.cc @@ -49,9 +49,7 @@ Graph operator+(const Graph& lhs, const Graph& rhs) Node Graph::add(const std::string& name) { - auto ptr =impl_->builder; - auto n = ptr.add(name,impl_->id); - + auto n = impl_->builder.add(name,impl_->id); impl_->nodes.push_back(n); return n; } @@ -93,5 +91,4 @@ std::vector& Graph::nodes() { } - } // namespace ion