pcl::CopyIfFieldExists< PointInT, OutT > Struct Template Reference

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

#include <pcl/point_traits.h>

Collaboration diagram for pcl::CopyIfFieldExists< PointInT, OutT >:
Collaboration graph
[legend]

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.

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 197 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 199 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] 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.

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

Constructor.

Parameters:
[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.


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 230 of file point_traits.h.


The documentation for this struct was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on 16 Oct 2012 for Point Cloud Library (PCL) by  doxygen 1.6.1