All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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...

Collaboration diagram for SurgSim::Framework::ReuseFactory< T >::Deleter:
Collaboration graph
[legend]

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

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

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

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: