Bridge++  Version 1.5.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Bridge::unique_ptr< T > Class Template Reference

#include <unique_pointer.h>

Public Types

typedef T * pointer
 
typedef T element_type
 

Public Member Functions

 unique_ptr (pointer p=pointer())
 
 ~unique_ptr ()
 
void reset (pointer p=pointer())
 
element_typeoperator* () const
 
pointer operator-> () const
 
pointer get () const
 
pointer release ()
 
void swap (unique_ptr &_u)
 
 operator unspecified_bool_type () const
 

Private Types

typedef unique_ptr< T > this_type
 
typedef element_type *(this_type::* unspecified_bool_type )() const
 

Private Member Functions

 unique_ptr (unique_ptr const &)
 
unique_ptroperator= (unique_ptr const &)
 

Private Attributes

pointer _ptr
 

Detailed Description

template<typename T>
class Bridge::unique_ptr< T >

Definition at line 24 of file unique_pointer.h.

Member Typedef Documentation

template<typename T>
typedef T Bridge::unique_ptr< T >::element_type

Definition at line 28 of file unique_pointer.h.

template<typename T>
typedef T* Bridge::unique_ptr< T >::pointer

Definition at line 27 of file unique_pointer.h.

template<typename T>
typedef unique_ptr<T> Bridge::unique_ptr< T >::this_type
private

Definition at line 36 of file unique_pointer.h.

template<typename T>
typedef element_type*(this_type::* Bridge::unique_ptr< T >::unspecified_bool_type)() const
private

Definition at line 39 of file unique_pointer.h.

Constructor & Destructor Documentation

template<typename T>
Bridge::unique_ptr< T >::unique_ptr ( unique_ptr< T > const &  )
private
template<typename T>
Bridge::unique_ptr< T >::unique_ptr ( pointer  p = pointer())
inlineexplicit

Definition at line 44 of file unique_pointer.h.

template<typename T>
Bridge::unique_ptr< T >::~unique_ptr ( )
inline

Definition at line 46 of file unique_pointer.h.

Member Function Documentation

template<typename T>
pointer Bridge::unique_ptr< T >::get ( ) const
inline

Definition at line 70 of file unique_pointer.h.

template<typename T>
Bridge::unique_ptr< T >::operator unspecified_bool_type ( ) const
inline

Definition at line 95 of file unique_pointer.h.

template<typename T>
element_type& Bridge::unique_ptr< T >::operator* ( ) const
inline

Definition at line 58 of file unique_pointer.h.

template<typename T>
pointer Bridge::unique_ptr< T >::operator-> ( ) const
inline

Definition at line 64 of file unique_pointer.h.

template<typename T>
unique_ptr& Bridge::unique_ptr< T >::operator= ( unique_ptr< T > const &  )
private
template<typename T>
pointer Bridge::unique_ptr< T >::release ( )
inline

Definition at line 75 of file unique_pointer.h.

template<typename T>
void Bridge::unique_ptr< T >::reset ( pointer  p = pointer())
inline

Definition at line 52 of file unique_pointer.h.

template<typename T>
void Bridge::unique_ptr< T >::swap ( unique_ptr< T > &  _u)
inline

Definition at line 83 of file unique_pointer.h.

Member Data Documentation

template<typename T>
pointer Bridge::unique_ptr< T >::_ptr
private

Definition at line 31 of file unique_pointer.h.


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