A helper functor that can set a specific value in a field if the field exists. More...
#include <point_traits.h>
Public Types | |
| typedef traits::POD< PointOutT > ::type | Pod |
Public Member Functions | |
| template<typename Key > | |
| void | operator() () |
| Operator. Data copy happens here. | |
| SetIfFieldExists (PointOutT &pt, const std::string &field, const InT &value) | |
| Constructor. | |
Private Attributes | |
| const std::string & | name_ |
| Pod & | pt_ |
| const InT & | value_ |
A helper functor that can set a specific value in a field if the field exists.
Definition at line 252 of file point_traits.h.
| typedef traits::POD<PointOutT>::type pcl::SetIfFieldExists< PointOutT, InT >::Pod |
Definition at line 254 of file point_traits.h.
| pcl::SetIfFieldExists< PointOutT, InT >::SetIfFieldExists | ( | PointOutT & | pt, |
| const std::string & | field, | ||
| const InT & | value | ||
| ) | [inline] |
Constructor.
| [in] | pt | the input point |
| [in] | field | the name of the field |
| [out] | value | the value to set |
Definition at line 261 of file point_traits.h.
| void pcl::SetIfFieldExists< PointOutT, InT >::operator() | ( | ) | [inline] |
Operator. Data copy happens here.
Definition at line 270 of file point_traits.h.
const std::string& pcl::SetIfFieldExists< PointOutT, InT >::name_ [private] |
Definition at line 282 of file point_traits.h.
Pod& pcl::SetIfFieldExists< PointOutT, InT >::pt_ [private] |
Definition at line 281 of file point_traits.h.
const InT& pcl::SetIfFieldExists< PointOutT, InT >::value_ [private] |
Definition at line 283 of file point_traits.h.