Public Member Functions | Private Member Functions | Private Attributes
Clasp::SingleOwnerPtr< T, D > Class Template Reference

#include <misc_types.h>

List of all members.

Public Member Functions

T * acquire ()
T * get () const
bool is_owner () const
T & operator* () const
T * operator-> () const
SingleOwnerPtroperator= (T *ptr)
T * release ()
void reset (T *x)
 SingleOwnerPtr ()
 SingleOwnerPtr (T *ptr)
void swap (SingleOwnerPtr &o)
 ~SingleOwnerPtr ()

Private Member Functions

SingleOwnerPtroperator= (const SingleOwnerPtr &)
 SingleOwnerPtr (const SingleOwnerPtr &)

Private Attributes

uintp ptr_

Detailed Description

template<class T, class D = DeleteObject>
class Clasp::SingleOwnerPtr< T, D >

Definition at line 335 of file misc_types.h.


Constructor & Destructor Documentation

template<class T, class D = DeleteObject>
Clasp::SingleOwnerPtr< T, D >::SingleOwnerPtr ( ) [inline]

Definition at line 337 of file misc_types.h.

template<class T, class D = DeleteObject>
Clasp::SingleOwnerPtr< T, D >::SingleOwnerPtr ( T *  ptr) [inline, explicit]

Definition at line 338 of file misc_types.h.

template<class T, class D = DeleteObject>
Clasp::SingleOwnerPtr< T, D >::~SingleOwnerPtr ( ) [inline]

Definition at line 339 of file misc_types.h.

template<class T, class D = DeleteObject>
Clasp::SingleOwnerPtr< T, D >::SingleOwnerPtr ( const SingleOwnerPtr< T, D > &  ) [private]

Member Function Documentation

template<class T, class D = DeleteObject>
T* Clasp::SingleOwnerPtr< T, D >::acquire ( ) [inline]

Definition at line 347 of file misc_types.h.

template<class T, class D = DeleteObject>
T* Clasp::SingleOwnerPtr< T, D >::get ( ) const [inline]

Definition at line 341 of file misc_types.h.

template<class T, class D = DeleteObject>
bool Clasp::SingleOwnerPtr< T, D >::is_owner ( ) const [inline]

Definition at line 340 of file misc_types.h.

template<class T, class D = DeleteObject>
T& Clasp::SingleOwnerPtr< T, D >::operator* ( ) const [inline]

Definition at line 342 of file misc_types.h.

template<class T, class D = DeleteObject>
T* Clasp::SingleOwnerPtr< T, D >::operator-> ( ) const [inline]

Definition at line 343 of file misc_types.h.

template<class T, class D = DeleteObject>
SingleOwnerPtr& Clasp::SingleOwnerPtr< T, D >::operator= ( T *  ptr) [inline]

Definition at line 344 of file misc_types.h.

template<class T, class D = DeleteObject>
SingleOwnerPtr& Clasp::SingleOwnerPtr< T, D >::operator= ( const SingleOwnerPtr< T, D > &  ) [private]
template<class T, class D = DeleteObject>
T* Clasp::SingleOwnerPtr< T, D >::release ( ) [inline]

Definition at line 346 of file misc_types.h.

template<class T, class D = DeleteObject>
void Clasp::SingleOwnerPtr< T, D >::reset ( T *  x) [inline]

Definition at line 348 of file misc_types.h.

template<class T, class D = DeleteObject>
void Clasp::SingleOwnerPtr< T, D >::swap ( SingleOwnerPtr< T, D > &  o) [inline]

Definition at line 345 of file misc_types.h.


Member Data Documentation

template<class T, class D = DeleteObject>
uintp Clasp::SingleOwnerPtr< T, D >::ptr_ [private]

Definition at line 355 of file misc_types.h.


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


clasp
Author(s): Benjamin Kaufmann
autogenerated on Thu Aug 27 2015 12:41:41