USGS

Isis 3.0 Developer's Reference (API)

Home

Isis::PointerRemoval< T > Struct Template Reference

Supplies a policy for deleting pointers that CollectorMap owns. More...

#include <CollectorMap.h>

List of all members.

Protected Member Functions

void destroy (T *element)
 Destroys the CollectorMap pointer's CollectorMap.

Detailed Description

template<typename T>
struct Isis::PointerRemoval< T >

Supplies a policy for deleting pointers that CollectorMap owns.

Defines a method to delete pointers when removed from a CollectorMap. This is necessary to prevent memory leaks and defer the deletion to removal from CollectorMap class.


Member Function Documentation

template<typename T >
void Isis::PointerRemoval< T >::destroy ( T *  element) [inline, protected]

Destroys the CollectorMap pointer's CollectorMap.

Parameters:
elementThe pointer pointing to the CollectorMap to be destroyed

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