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
{
namespace details
{
struct FilterFrame {
const std::string& name;
struct FilterFrame
{
const std::string & name;
const FrameType & typeMask;
FilterFrame(const std::string& name, const FrameType& typeMask)
: name(name), typeMask(typeMask) {}
bool operator()(const Frame& frame) const
FilterFrame(const std::string& name, const FrameType & typeMask)
: name(name), typeMask(typeMask)
{}
template<typename Scalar, int Options>
bool operator()(const FrameTpl<Scalar,Options> & frame) const
{ 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