Skip to content

Commit

Permalink
Inline graph_deserializer deserialize
Browse files Browse the repository at this point in the history
Signed-off-by: methylDragon <methylDragon@gmail.com>
  • Loading branch information
methylDragon committed Oct 14, 2022
1 parent 297a212 commit 095dfa1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
5 changes: 4 additions & 1 deletion fuse_core/include/fuse_core/graph_deserializer.h
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,10 @@ class GraphDeserializer
* @param[in] msg The SerializedGraph message to be deserialized
* @return A unique_ptr to a derived Graph object
*/
fuse_core::Graph::UniquePtr deserialize(const fuse_msgs::msg::SerializedGraph::SharedPtr msg) const;
inline fuse_core::Graph::UniquePtr deserialize(const fuse_msgs::msg::SerializedGraph::ConstSharedPtr msg) const
{
return deserialize(*msg);
}

/**
* @brief Deserialize a SerializedGraph message into a fuse Graph object.
Expand Down
5 changes: 0 additions & 5 deletions fuse_core/src/graph_deserializer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -77,11 +77,6 @@ GraphDeserializer::GraphDeserializer() :
}
}

fuse_core::Graph::UniquePtr GraphDeserializer::deserialize(const fuse_msgs::msg::SerializedGraph::SharedPtr msg) const
{
return deserialize(*msg);
}

fuse_core::Graph::UniquePtr GraphDeserializer::deserialize(const fuse_msgs::msg::SerializedGraph& msg) const
{
// Create a Graph object using pluginlib. This will throw if the plugin name is not found.
Expand Down

0 comments on commit 095dfa1

Please sign in to comment.