Blender V4.3
libmv::scoped_ptr< T > Class Template Reference

#include <scoped_ptr.h>

Public Member Functions

 scoped_ptr (T *resource)
 
 ~scoped_ptr ()
 
Tget () const
 
Toperator-> () const
 
Toperator* () const
 
void reset (T *new_resource)
 
Trelease ()
 

Detailed Description

template<typename T>
class libmv::scoped_ptr< T >

A handle for a heap-allocated resource that should be freed when it goes out of scope. This looks similar to the one found in TR1.

Definition at line 34 of file scoped_ptr.h.

Constructor & Destructor Documentation

◆ scoped_ptr()

template<typename T >
libmv::scoped_ptr< T >::scoped_ptr ( T * resource)
inline

Definition at line 36 of file scoped_ptr.h.

◆ ~scoped_ptr()

template<typename T >
libmv::scoped_ptr< T >::~scoped_ptr ( )
inline

Definition at line 37 of file scoped_ptr.h.

References reset().

Member Function Documentation

◆ get()

template<typename T >
T * libmv::scoped_ptr< T >::get ( ) const
inline

Definition at line 39 of file scoped_ptr.h.

◆ operator*()

template<typename T >
T & libmv::scoped_ptr< T >::operator* ( ) const
inline

Definition at line 41 of file scoped_ptr.h.

◆ operator->()

template<typename T >
T * libmv::scoped_ptr< T >::operator-> ( ) const
inline

Definition at line 40 of file scoped_ptr.h.

◆ release()

template<typename T >
T * libmv::scoped_ptr< T >::release ( )
inline

Definition at line 50 of file scoped_ptr.h.

◆ reset()

template<typename T >
void libmv::scoped_ptr< T >::reset ( T * new_resource)
inline

Definition at line 43 of file scoped_ptr.h.


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