DGtal  0.9.3beta
Public Member Functions | Data Fields
DGtal::Clone< T >::TempPtr Struct Reference

#include <DGtal/base/Clone.h>

Public Member Functions

 TempPtr (T *ptr)
 
 ~TempPtr ()
 

Data Fields

T * _ptr
 

Detailed Description

template<typename T>
struct DGtal::Clone< T >::TempPtr

Internal class that is used for a late deletion of an acquired pointer.

Definition at line 277 of file Clone.h.

Constructor & Destructor Documentation

template<typename T>
DGtal::Clone< T >::TempPtr::TempPtr ( T *  ptr)
inline

Constructor from pointer.

Parameters
ptrAny pointer that is acquired by 'this'.

Definition at line 282 of file Clone.h.

282 : _ptr( ptr ) {}
T * _ptr
Acquired pointer.
Definition: Clone.h:288
template<typename T>
DGtal::Clone< T >::TempPtr::~TempPtr ( )
inline

Destructor. Performs delete on _ptr member.

Definition at line 286 of file Clone.h.

References DGtal::Clone< T >::TempPtr::_ptr.

286 { ASSERT( _ptr != 0 ); delete _ptr; }
T * _ptr
Acquired pointer.
Definition: Clone.h:288

Field Documentation

template<typename T>
T* DGtal::Clone< T >::TempPtr::_ptr

Acquired pointer.

Definition at line 288 of file Clone.h.

Referenced by DGtal::Clone< T >::TempPtr::~TempPtr().


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