A helper functor that can copy a specific value if the given field exists.
More...
#include <pcl/type_traits.h>
|
using | Pod = typename traits::POD< PointInT >::type |
|
template<typename PointInT, typename OutT>
struct pcl::CopyIfFieldExists< PointInT, OutT >
A helper functor that can copy a specific value if the given field exists.
- Note
- In order to actually copy the value an instance of this functor should be passed to a pcl::for_each_type loop. See the example below.
PointInT p;
bool exists;
float value;
using FieldList = typename pcl::traits::fieldList<PointInT>::type;
A helper functor that can copy a specific value if the given field exists.
Definition at line 132 of file type_traits.h.
◆ Pod
template<typename PointInT , typename OutT >
◆ CopyIfFieldExists() [1/2]
template<typename PointInT , typename OutT >
Constructor.
- Parameters
-
[in] | pt | the input point |
[in] | field | the name of the field |
[out] | exists | set to true if the field exists, false otherwise |
[out] | value | the copied field value |
Definition at line 142 of file type_traits.h.
◆ CopyIfFieldExists() [2/2]
template<typename PointInT , typename OutT >
Constructor.
- Parameters
-
[in] | pt | the input point |
[in] | field | the name of the field |
[out] | value | the copied field value |
Definition at line 156 of file type_traits.h.
◆ operator()()
template<typename PointInT , typename OutT >
template<typename Key >
The documentation for this struct was generated from the following file: