Skip to content
Snippets Groups Projects
Commit 4b677518 authored by Joseph Mirabel's avatar Joseph Mirabel Committed by Joseph Mirabel
Browse files

Make static vector of connected component private.

parent e46347d4
No related branches found
No related tags found
No related merge requests found
...@@ -45,10 +45,6 @@ namespace hpp { ...@@ -45,10 +45,6 @@ namespace hpp {
name_ = name; name_ = name;
} }
/// Keep track of the create components in order to retrieve them
/// easily.
static std::vector < GraphComponentWkPtr_t > components;
/// Get the component by its ID. The validity of the GraphComponent /// Get the component by its ID. The validity of the GraphComponent
/// is not checked. /// is not checked.
static GraphComponentWkPtr_t get(int id) static GraphComponentWkPtr_t get(int id)
...@@ -75,12 +71,15 @@ namespace hpp { ...@@ -75,12 +71,15 @@ namespace hpp {
{} {}
private: private:
/// Keep track of the created components in order to retrieve them
/// easily.
static std::vector < GraphComponentWkPtr_t > components;
std::string name_; std::string name_;
GraphComponentWkPtr_t wkPtr_; GraphComponentWkPtr_t wkPtr_;
int id_; int id_;
}; };
/// Description of the constraint graph /// Description of the constraint graph
/// This class contains a graph representing a robot with several /// This class contains a graph representing a robot with several
/// end-effectors. /// end-effectors.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment