Public Types | Public Member Functions | Private Attributes
pcl::CopyIfFieldExists< PointInT, OutT > Struct Template Reference

A helper functor that can copy a specific value if the given field exists. More...

#include <point_traits.h>

List of all members.

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

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.

Definition at line 190 of file point_traits.h.


Member Typedef Documentation

template<typename PointInT , typename OutT >
typedef traits::POD<PointInT>::type pcl::CopyIfFieldExists< PointInT, OutT >::Pod

Definition at line 192 of file point_traits.h.


Constructor & Destructor Documentation

template<typename PointInT , typename OutT >
pcl::CopyIfFieldExists< PointInT, OutT >::CopyIfFieldExists ( const PointInT &  pt,
const std::string field,
bool &  exists,
OutT &  value 
) [inline]

Constructor.

Parameters:
[in]ptthe input point
[in]fieldthe name of the field
[out]existsset to true if the field exists, false otherwise
[out]valuethe copied field value

Definition at line 200 of file point_traits.h.

template<typename PointInT , typename OutT >
pcl::CopyIfFieldExists< PointInT, OutT >::CopyIfFieldExists ( const PointInT &  pt,
const std::string field,
OutT &  value 
) [inline]

Constructor.

Parameters:
[in]ptthe input point
[in]fieldthe name of the field
[out]valuethe copied field value

Definition at line 214 of file point_traits.h.


Member Function Documentation

template<typename PointInT , typename OutT >
template<typename Key >
void pcl::CopyIfFieldExists< PointInT, OutT >::operator() ( ) [inline]

Operator. Data copy happens here.

Definition at line 223 of file point_traits.h.


Member Data Documentation

template<typename PointInT , typename OutT >
bool& pcl::CopyIfFieldExists< PointInT, OutT >::exists_ [private]

Definition at line 237 of file point_traits.h.

template<typename PointInT , typename OutT >
bool pcl::CopyIfFieldExists< PointInT, OutT >::exists_tmp_ [private]

Definition at line 239 of file point_traits.h.

template<typename PointInT , typename OutT >
const std::string& pcl::CopyIfFieldExists< PointInT, OutT >::name_ [private]

Definition at line 236 of file point_traits.h.

template<typename PointInT , typename OutT >
const Pod& pcl::CopyIfFieldExists< PointInT, OutT >::pt_ [private]

Definition at line 235 of file point_traits.h.

template<typename PointInT , typename OutT >
OutT& pcl::CopyIfFieldExists< PointInT, OutT >::value_ [private]

Definition at line 240 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:39:27