Verified Commit 134bdf8f authored by Justin Carpentier's avatar Justin Carpentier Committed by Justin Carpentier
Browse files

[Multibody/Model] Make FilterFrame templated by Scalar,Options

parent 2c4e1845
...@@ -32,13 +32,19 @@ namespace se3 ...@@ -32,13 +32,19 @@ namespace se3
{ {
namespace details namespace details
{ {
struct FilterFrame { struct FilterFrame
const std::string& name; {
const std::string & name;
const FrameType & typeMask; const FrameType & typeMask;
FilterFrame(const std::string& name, const FrameType& typeMask)
: name(name), typeMask(typeMask) {} FilterFrame(const std::string& name, const FrameType & typeMask)
bool operator()(const Frame& frame) const : name(name), typeMask(typeMask)
{}
template<typename Scalar, int Options>
bool operator()(const FrameTpl<Scalar,Options> & frame) const
{ return (typeMask & frame.type) && (name == frame.name); } { return (typeMask & frame.type) && (name == frame.name); }
}; };
} }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment