A helper functor that can copy a specific value if the given field exists.
More...
#include <pcl/point_traits.h>
Public Member Functions |
| | CopyIfFieldExists (const PointInT &pt, const std::string &field, bool &exists, OutT &value) |
| | Constructor.
|
| | CopyIfFieldExists (const PointInT &pt, const std::string &field, OutT &value) |
| | Constructor.
|
| template<typename Key > |
| void | operator() () |
| | Operator.
|
Detailed Description
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;
Definition at line 226 of file point_traits.h.
Member Typedef Documentation
template<typename PointInT , typename OutT >
Constructor & Destructor Documentation
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 236 of file point_traits.h.
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 250 of file point_traits.h.
Member Function Documentation
template<typename PointInT , typename OutT >
template<typename Key >
The documentation for this struct was generated from the following file: