pinocchio  3.7.0
A fast and flexible implementation of Rigid Body Dynamics algorithms and their analytical derivatives
 
Loading...
Searching...
No Matches
InstanceFilterBase< T > Struct Template Referenceabstract

Instance filter base class. More...

#include <pinocchio/multibody/instance-filter.hpp>

Public Member Functions

template<typename Allocator >
std::vector< size_tapply (const std::vector< T, Allocator > &object_vector) const
 Apply the filter on the given vector of objects and returns the list of indexes of the objects matching the filter conditions.
 
virtual bool operator() (const T &obj) const =0
 Returns true if the input obj matches the filter conditions.
 

Detailed Description

template<typename T>
struct pinocchio::InstanceFilterBase< T >

Instance filter base class.

Definition at line 15 of file instance-filter.hpp.

Member Function Documentation

◆ apply()

template<typename T >
template<typename Allocator >
std::vector< size_t > apply ( const std::vector< T, Allocator > &  object_vector) const
inline

Apply the filter on the given vector of objects and returns the list of indexes of the objects matching the filter conditions.

Parameters
[in]object_vectorvector of objects.
Returns
the list of indexes of the objects matching the filter conditions.

Definition at line 35 of file instance-filter.hpp.

◆ operator()()

template<typename T >
virtual bool operator() ( const T obj) const
pure virtual

Returns true if the input obj matches the filter conditions.

Parameters
[in]objinput geometry object to filter or not.
Returns
true if the obj matches the filter conditions

Implemented in GeometryObjectFilterNothing, and GeometryObjectFilterSelectByJoint.


The documentation for this struct was generated from the following file: