A helper functor that can copy a specific value if the given field exists. More...
#include <point_traits.h>
Public Types | |
| typedef traits::POD< PointInT > ::type | Pod |
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. Data copy happens here. | |
Private Attributes | |
| bool & | exists_ |
| bool | exists_tmp_ |
| const std::string & | name_ |
| const Pod & | pt_ |
| OutT & | value_ |
A helper functor that can copy a specific value if the given field exists.
Definition at line 197 of file point_traits.h.
| typedef traits::POD<PointInT>::type pcl::CopyIfFieldExists< PointInT, OutT >::Pod |
Definition at line 199 of file point_traits.h.
| pcl::CopyIfFieldExists< PointInT, OutT >::CopyIfFieldExists | ( | const PointInT & | pt, |
| const std::string & | field, | ||
| bool & | exists, | ||
| OutT & | value | ||
| ) | [inline] |
Constructor.
| [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 207 of file point_traits.h.
| pcl::CopyIfFieldExists< PointInT, OutT >::CopyIfFieldExists | ( | const PointInT & | pt, |
| const std::string & | field, | ||
| OutT & | value | ||
| ) | [inline] |
Constructor.
| [in] | pt | the input point |
| [in] | field | the name of the field |
| [out] | value | the copied field value |
Definition at line 221 of file point_traits.h.
| void pcl::CopyIfFieldExists< PointInT, OutT >::operator() | ( | ) | [inline] |
Operator. Data copy happens here.
Definition at line 230 of file point_traits.h.
bool& pcl::CopyIfFieldExists< PointInT, OutT >::exists_ [private] |
Definition at line 244 of file point_traits.h.
bool pcl::CopyIfFieldExists< PointInT, OutT >::exists_tmp_ [private] |
Definition at line 246 of file point_traits.h.
const std::string& pcl::CopyIfFieldExists< PointInT, OutT >::name_ [private] |
Definition at line 243 of file point_traits.h.
const Pod& pcl::CopyIfFieldExists< PointInT, OutT >::pt_ [private] |
Definition at line 242 of file point_traits.h.
OutT& pcl::CopyIfFieldExists< PointInT, OutT >::value_ [private] |
Definition at line 247 of file point_traits.h.