Public Member Functions | Private Attributes | List of all members
SurgSim::Framework::ReuseFactory< T >::Deleter Class Reference

Custom deleter to keep unused objects for reuse, rather than actually deleting them. More...

Public Member Functions

 Deleter (ReuseFactory *factory)
 Constructor. More...
 
void operator() (T *unusedObject) const
 Deletion method, adds the object to the ReuseFactory's collection. More...
 

Private Attributes

ReuseFactorym_factory
 ReuseFactory with the collection of unused objects for reuse. More...
 

Detailed Description

template<class T>
class SurgSim::Framework::ReuseFactory< T >::Deleter

Custom deleter to keep unused objects for reuse, rather than actually deleting them.

Constructor & Destructor Documentation

§ Deleter()

template<class T >
SurgSim::Framework::ReuseFactory< T >::Deleter::Deleter ( ReuseFactory factory)
inlineexplicit

Constructor.

Parameters
factoryReuseFactory with the collection of unused object for reuse.

Member Function Documentation

§ operator()()

template<class T >
void SurgSim::Framework::ReuseFactory< T >::Deleter::operator() ( T *  unusedObject) const
inline

Deletion method, adds the object to the ReuseFactory's collection.

Parameters
unusedObjectObject that is no longer referenced by any shared pointers

Member Data Documentation

§ m_factory

template<class T >
ReuseFactory* SurgSim::Framework::ReuseFactory< T >::Deleter::m_factory
private

ReuseFactory with the collection of unused objects for reuse.


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