openrave.org

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | List of all members
OpenRAVE::utils::smart_pointer_deleter< P > Struct Template Reference

allow to add different custom deleter funtions to a shared_ptr without touching its original custom deleter More...

#include <utils.h>

Public Member Functions

 smart_pointer_deleter (P const &p, const boost::function< void(void const *)> &deleterfn, const boost::function< void()> &postdeleterfn=boost::function< void()>())
 
void operator() (void const *x)
 
P const & get () const
 

Detailed Description

template<class P>
struct OpenRAVE::utils::smart_pointer_deleter< P >

allow to add different custom deleter funtions to a shared_ptr without touching its original custom deleter

Can specify pre-delete and post-delete functions

Definition at line 167 of file utils.h.

Constructor & Destructor Documentation

template<class P >
OpenRAVE::utils::smart_pointer_deleter< P >::smart_pointer_deleter ( P const &  p,
const boost::function< void(void const *)> &  deleterfn,
const boost::function< void()> &  postdeleterfn = boost::function<void()>() 
)
inline

Definition at line 174 of file utils.h.

Member Function Documentation

template<class P >
P const& OpenRAVE::utils::smart_pointer_deleter< P >::get ( ) const
inline

Definition at line 189 of file utils.h.

template<class P >
void OpenRAVE::utils::smart_pointer_deleter< P >::operator() ( void const *  x)
inline

Definition at line 178 of file utils.h.


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