Fawkes API  Fawkes Development Version
fawkes::pcl_utils::PointCloudNonDeleter Struct Reference

Helper struct to avoid deletion of PointClouds. More...

#include <utils.h>

Public Member Functions

template<typename T >
void operator() (T *t)
 Delete operator that does nothing. More...
 

Detailed Description

Helper struct to avoid deletion of PointClouds.

The input point cloud is accessible using a RefPtr. Since the PCL expectes Boost shared_ptr, we need to create such a shared pointer. But destruction of this would cause the deletion of the point cloud, which we do not want. Therefore, we provide this helper deleter that causes the PointCloud not to be deleted on reset.

Definition at line 293 of file utils.h.

Member Function Documentation

◆ operator()()

template<typename T >
void fawkes::pcl_utils::PointCloudNonDeleter::operator() ( T *  t)
inline

Delete operator that does nothing.

Parameters
tobject to destroy

Definition at line 297 of file utils.h.


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