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

#include <pointer.h>

Inherits SingleCopy.

Collaboration diagram for UniquePtrBase< T, DerivedT >:

Public Member Functions

 UniquePtrBase ()
 
 UniquePtrBase (T *ref)
 
 ~UniquePtrBase ()
 
 operator bool () const
 
T * operator-> () const
 
 operator T * ()
 
DerivedT & operator= (T *ref)
 
T * weak_ref () const
 
bool IsValid () const
 
T * Release ()
 
void Destroy ()
 

Protected Member Functions

void Free ()
 

Protected Attributes

T * ref_
 

Additional Inherited Members

- Private Member Functions inherited from SingleCopy
 SingleCopy ()
 

Detailed Description

template<class T, class DerivedT>
class UniquePtrBase< T, DerivedT >

Definition at line 27 of file pointer.h.

Constructor & Destructor Documentation

template<class T, class DerivedT>
UniquePtrBase< T, DerivedT >::UniquePtrBase ( )
inline

Definition at line 29 of file pointer.h.

template<class T, class DerivedT>
UniquePtrBase< T, DerivedT >::UniquePtrBase ( T *  ref)
inlineexplicit

Definition at line 30 of file pointer.h.

template<class T, class DerivedT>
UniquePtrBase< T, DerivedT >::~UniquePtrBase ( )
inline

Definition at line 31 of file pointer.h.

Member Function Documentation

template<class T, class DerivedT>
void UniquePtrBase< T, DerivedT >::Destroy ( )
inline
template<class T, class DerivedT>
void UniquePtrBase< T, DerivedT >::Free ( )
inlineprotected

Definition at line 49 of file pointer.h.

template<class T, class DerivedT>
UniquePtrBase< T, DerivedT >::operator bool ( ) const
inline

Definition at line 33 of file pointer.h.

template<class T, class DerivedT>
UniquePtrBase< T, DerivedT >::operator T * ( )
inline

Definition at line 35 of file pointer.h.

template<class T, class DerivedT>
T* UniquePtrBase< T, DerivedT >::operator-> ( ) const
inline

Definition at line 34 of file pointer.h.

template<class T, class DerivedT>
DerivedT& UniquePtrBase< T, DerivedT >::operator= ( T *  ref)
inline

Definition at line 36 of file pointer.h.

template<class T, class DerivedT>
T* UniquePtrBase< T, DerivedT >::Release ( )
inline

Definition at line 45 of file pointer.h.

Referenced by swissknife::CommandTag::CloseAndPublishHistory(), ServerTool::FetchRemoteManifest(), and upload::S3Uploader::FinalizeStreamedUpload().

Here is the caller graph for this function:

Member Data Documentation

template<class T, class DerivedT>
T* UniquePtrBase< T, DerivedT >::ref_
protected

Definition at line 52 of file pointer.h.


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