Point Cloud Library (PCL)  1.7.1
List of all members | Public Types | Public Member Functions
pcl::SetIfFieldExists< PointOutT, InT > Struct Template Reference

A helper functor that can set a specific value in a field if the field exists. More...

#include <pcl/point_traits.h>

Public Types

typedef traits::POD< PointOutT >
::type 
Pod
 

Public Member Functions

 SetIfFieldExists (PointOutT &pt, const std::string &field, const InT &value)
 Constructor. More...
 
template<typename Key >
void operator() ()
 Operator. More...
 

Detailed Description

template<typename PointOutT, typename InT>
struct pcl::SetIfFieldExists< PointOutT, InT >

A helper functor that can set a specific value in a field if the field exists.

Definition at line 245 of file point_traits.h.

Member Typedef Documentation

template<typename PointOutT , typename InT >
typedef traits::POD<PointOutT>::type pcl::SetIfFieldExists< PointOutT, InT >::Pod

Definition at line 247 of file point_traits.h.

Constructor & Destructor Documentation

template<typename PointOutT , typename InT >
pcl::SetIfFieldExists< PointOutT, InT >::SetIfFieldExists ( PointOutT &  pt,
const std::string &  field,
const InT &  value 
)
inline

Constructor.

Parameters
[in]ptthe input point
[in]fieldthe name of the field
[out]valuethe value to set

Definition at line 254 of file point_traits.h.

Member Function Documentation

template<typename PointOutT , typename InT >
template<typename Key >
void pcl::SetIfFieldExists< PointOutT, InT >::operator() ( )
inline

Operator.

Data copy happens here.

Definition at line 263 of file point_traits.h.


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