Public Types | Public Member Functions | Private Attributes
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 <point_traits.h>

List of all members.

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::stringname_
Podpt_
const InT & value_

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.


Member Data Documentation

template<typename PointOutT , typename InT >
const std::string& pcl::SetIfFieldExists< PointOutT, InT >::name_ [private]

Definition at line 275 of file point_traits.h.

template<typename PointOutT , typename InT >
Pod& pcl::SetIfFieldExists< PointOutT, InT >::pt_ [private]

Definition at line 274 of file point_traits.h.

template<typename PointOutT , typename InT >
const InT& pcl::SetIfFieldExists< PointOutT, InT >::value_ [private]

Definition at line 276 of file point_traits.h.


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


pcl
Author(s): Open Perception
autogenerated on Wed Aug 26 2015 15:43:35