AutoPtr< _Tp > Class Template Reference

#include <autoptr.h>

Inheritance diagram for AutoPtr< _Tp >:

Inheritance graph
[legend]
Collaboration diagram for AutoPtr< _Tp >:

Collaboration graph
[legend]
List of all members.

Public Types

typedef _Tp element_type

Public Member Functions

 AutoPtr (_Tp *__p=0)
 AutoPtr (AutoPtr &__a)
template<class _Tp1>
 AutoPtr (AutoPtr< _Tp1 > &__a)
AutoPtroperator= (AutoPtr &__a)
template<class _Tp1>
AutoPtroperator= (AutoPtr< _Tp1 > &__a)
 ~AutoPtr ()
_Tp & operator * () const
_Tp * operator-> () const
_Tp * get () const
_Tp * release ()
void reset (_Tp *__p=0)
 AutoPtr (AutoPtrRef< _Tp > __ref)
AutoPtroperator= (AutoPtrRef< _Tp > __ref)
template<class _Tp1>
 operator AutoPtrRef ()
template<class _Tp1>
 operator AutoPtr ()

Private Attributes

_Tp * _M_ptr

Detailed Description

template<class _Tp>
class AutoPtr< _Tp >

Definition at line 54 of file autoptr.h.


Member Typedef Documentation

template<class _Tp>
typedef _Tp AutoPtr< _Tp >::element_type

Definition at line 59 of file autoptr.h.


Constructor & Destructor Documentation

template<class _Tp>
AutoPtr< _Tp >::AutoPtr ( _Tp *  __p = 0  )  [inline, explicit]

Definition at line 61 of file autoptr.h.

template<class _Tp>
AutoPtr< _Tp >::AutoPtr ( AutoPtr< _Tp > &  __a  )  [inline]

Definition at line 62 of file autoptr.h.

template<class _Tp>
template<class _Tp1>
AutoPtr< _Tp >::AutoPtr ( AutoPtr< _Tp1 > &  __a  )  [inline]

Definition at line 64 of file autoptr.h.

template<class _Tp>
AutoPtr< _Tp >::~AutoPtr (  )  [inline]

Definition at line 82 of file autoptr.h.

template<class _Tp>
AutoPtr< _Tp >::AutoPtr ( AutoPtrRef< _Tp >  __ref  )  [inline]

Definition at line 110 of file autoptr.h.


Member Function Documentation

template<class _Tp>
AutoPtr& AutoPtr< _Tp >::operator= ( AutoPtr< _Tp > &  __a  )  [inline]

Definition at line 67 of file autoptr.h.

template<class _Tp>
template<class _Tp1>
AutoPtr& AutoPtr< _Tp >::operator= ( AutoPtr< _Tp1 > &  __a  )  [inline]

Definition at line 73 of file autoptr.h.

template<class _Tp>
_Tp& AutoPtr< _Tp >::operator * (  )  const [inline]

Definition at line 84 of file autoptr.h.

template<class _Tp>
_Tp* AutoPtr< _Tp >::operator-> (  )  const [inline]

Definition at line 87 of file autoptr.h.

template<class _Tp>
_Tp* AutoPtr< _Tp >::get (  )  const [inline]

Definition at line 90 of file autoptr.h.

Referenced by OmExpand::build_tree(), Stats::create_weight_internal(), DEFINE_TESTCASE(), OmExpand::expand(), Xapian::Enquire::Internal::get_eset(), Xapian::Database::spellings_begin(), Xapian::Database::synonym_keys_begin(), Xapian::Database::synonyms_begin(), and test_autoptr1().

template<class _Tp>
_Tp* AutoPtr< _Tp >::release (  )  [inline]

Definition at line 93 of file autoptr.h.

Referenced by OmExpand::build_tree(), Stats::create_weight_internal(), QUnserial::decode(), RemoteDatabase::open_allterms(), QuartzPostList::open_position_list(), QuartzWritableDatabase::open_position_list(), QuartzDatabase::open_position_list(), FlintDatabase::open_position_list(), RemoteDatabase::open_term_list(), AutoPtr< Bcursor >::operator AutoPtr(), AutoPtr< Bcursor >::operator AutoPtrRef(), AutoPtr< Bcursor >::operator=(), LocalSubMatch::postlist_from_op_leaf_query(), Xapian::Database::spellings_begin(), Xapian::Database::synonym_keys_begin(), and Xapian::Database::synonyms_begin().

template<class _Tp>
void AutoPtr< _Tp >::reset ( _Tp *  __p = 0  )  [inline]

Definition at line 98 of file autoptr.h.

Referenced by AutoPtr< Bcursor >::operator=().

template<class _Tp>
AutoPtr& AutoPtr< _Tp >::operator= ( AutoPtrRef< _Tp >  __ref  )  [inline]

Definition at line 113 of file autoptr.h.

template<class _Tp>
template<class _Tp1>
AutoPtr< _Tp >::operator AutoPtrRef (  )  [inline]

Definition at line 121 of file autoptr.h.

template<class _Tp>
template<class _Tp1>
AutoPtr< _Tp >::operator AutoPtr (  )  [inline]

Definition at line 123 of file autoptr.h.


Member Data Documentation

template<class _Tp>
_Tp* AutoPtr< _Tp >::_M_ptr [private]

Definition at line 56 of file autoptr.h.

Referenced by AutoPtr< Bcursor >::get(), AutoPtr< Bcursor >::operator *(), AutoPtr< Bcursor >::operator->(), AutoPtr< Bcursor >::operator=(), AutoPtr< Bcursor >::release(), AutoPtr< Bcursor >::reset(), and AutoPtr< Bcursor >::~AutoPtr().


The documentation for this class was generated from the following file:
Documentation for Xapian (version 1.0.10).
Generated on 24 Dec 2008 by Doxygen 1.5.2.