Public Member Functions | List of all members
pinocchio::InstanceFilterBase< T > Struct Template Referenceabstract

Instance filter base class. More...

#include <instance-filter.hpp>

Public Member Functions

template<typename Allocator >
std::vector< size_t > apply (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. More...
 
virtual bool operator() (const T &obj) const =0
 Returns true if the input obj matches the filter conditions. More...
 

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> pinocchio::InstanceFilterBase< 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 pinocchio::InstanceFilterBase< T >::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 pinocchio::GeometryObjectFilterSelectByJoint, and pinocchio::GeometryObjectFilterNothing.


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


pinocchio
Author(s):
autogenerated on Mon Dec 16 2024 03:41:07