CernVM-FS  2.9.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
UniquePtr< T > Class Template Reference

#include <pointer.h>

Inheritance diagram for UniquePtr< T >:
Collaboration diagram for UniquePtr< T >:

Public Member Functions

 UniquePtr ()
 
 UniquePtr (T *ref)
 
T & operator* () const
 
- Public Member Functions inherited from UniquePtrBase< T, UniquePtr< T > >
 UniquePtrBase ()
 
 UniquePtrBase (T *ref)
 
 ~UniquePtrBase ()
 
T * operator-> () const
 
UniquePtr< T > & operator= (T *ref)
 
T * weak_ref () const
 
bool IsValid () const
 
T * Release ()
 
void Destroy ()
 

Protected Member Functions

void Free ()
 
- Protected Member Functions inherited from UniquePtrBase< T, UniquePtr< T > >
void Free ()
 

Private Types

typedef UniquePtrBase< T,
UniquePtr< T > > 
BaseT
 

Friends

class UniquePtrBase< T, UniquePtr< T > >
 

Additional Inherited Members

- Protected Attributes inherited from UniquePtrBase< T, UniquePtr< T > >
T * ref_
 

Detailed Description

template<class T>
class UniquePtr< T >

Definition at line 56 of file pointer.h.

Member Typedef Documentation

template<class T>
typedef UniquePtrBase<T, UniquePtr<T> > UniquePtr< T >::BaseT
private

Definition at line 60 of file pointer.h.

Constructor & Destructor Documentation

template<class T>
UniquePtr< T >::UniquePtr ( )
inline

Definition at line 63 of file pointer.h.

template<class T>
UniquePtr< T >::UniquePtr ( T *  ref)
inlineexplicit

Definition at line 64 of file pointer.h.

Member Function Documentation

template<class T>
void UniquePtr< T >::Free ( )
inlineprotected

Definition at line 67 of file pointer.h.

template<class T>
T& UniquePtr< T >::operator* ( ) const
inline

Definition at line 65 of file pointer.h.

Friends And Related Function Documentation

template<class T>
friend class UniquePtrBase< T, UniquePtr< T > >
friend

Definition at line 57 of file pointer.h.


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