#include <base.h>

Public Member Functions | |
| T * | operator-> () const |
| T & | operator* () const |
| T * | get () const |
| RefCntPtr (T *dest_) | |
| Make a RefCntPtr for an object which may already have reference counted pointers. | |
| RefCntPtr () | |
| RefCntPtr (const RefCntPtr &other) | |
| void | operator= (const RefCntPtr &other) |
| void | operator= (T *dest_) |
| ~RefCntPtr () | |
| template<class U > | |
| RefCntPtr (const RefCntPtr< U > &other) | |
Private Attributes | |
| T * | dest |
For internal use only.
A reference-counted pointer. Can be used with any class derived from RefCntBase, as long as it is allocated on the heap by new (not new[]!).
Definition at line 67 of file base.h.
| Xapian::Internal::RefCntPtr< T >::RefCntPtr | ( | T * | dest_ | ) | [inline] |
Make a RefCntPtr for an object which may already have reference counted pointers.
You usually pass in a newly created object, or an object may pass in "this" to get a RefCntPtr to itself to pass to other classes. (e.g. a database might pass a newly created postlist a reference counted pointer to itself.)
Definition at line 95 of file base.h.
References Xapian::Internal::RefCntPtr< T >::dest.
| Xapian::Internal::RefCntPtr< T >::RefCntPtr | ( | ) | [inline] |
| Xapian::Internal::RefCntPtr< T >::RefCntPtr | ( | const RefCntPtr< T > & | other | ) | [inline] |
| Xapian::Internal::RefCntPtr< T >::~RefCntPtr | ( | ) | [inline] |
| Xapian::Internal::RefCntPtr< T >::RefCntPtr | ( | const RefCntPtr< U > & | other | ) | [inline] |
| T * Xapian::Internal::RefCntPtr< T >::get | ( | ) | const [inline] |
Definition at line 169 of file base.h.
References Xapian::Internal::RefCntPtr< T >::dest.
Referenced by Xapian::Query::add_subquery(), ContiguousAllDocsPostList::at_end(), BrassAllDocsPostList::BrassAllDocsPostList(), BrassPostList::BrassPostList(), ChertAllDocsModifiedPostList::ChertAllDocsModifiedPostList(), ChertAllDocsPostList::ChertAllDocsPostList(), ChertPostList::ChertPostList(), InMemoryDocument::do_get_data(), InMemoryDocument::do_get_value(), Xapian::MSet::Internal::fetch_items(), FlintPostList::FlintPostList(), Xapian::Document::Internal::get_data(), Xapian::Document::Internal::get_description(), ChertPostList::get_doclength(), BrassPostList::get_doclength(), Xapian::Enquire::Internal::get_mset(), Xapian::MSet::get_termfreq(), Xapian::Document::Internal::get_value(), Xapian::TermGenerator::Internal::index_text(), Xapian::Document::Internal::need_terms(), Xapian::Document::Internal::need_values(), ChertPostList::open_position_list(), BrassPostList::open_position_list(), Xapian::Document::Internal::open_term_list(), Xapian::operator==(), Xapian::Query::Query(), NetworkPostList::read_position_list(), ChertPostList::read_position_list(), BrassPostList::read_position_list(), FlintWritableDatabase::replace_document(), ChertWritableDatabase::replace_document(), BrassWritableDatabase::replace_document(), and Xapian::Document::Internal::~Internal().
| T & Xapian::Internal::RefCntPtr< T >::operator* | ( | ) | const [inline] |
| T * Xapian::Internal::RefCntPtr< T >::operator-> | ( | ) | const [inline] |
| void Xapian::Internal::RefCntPtr< T >::operator= | ( | T * | dest_ | ) | [inline] |
| void Xapian::Internal::RefCntPtr< T >::operator= | ( | const RefCntPtr< T > & | other | ) | [inline] |
T* Xapian::Internal::RefCntPtr< T >::dest [private] |
Definition at line 69 of file base.h.
Referenced by Xapian::Internal::RefCntPtr< T >::get(), Xapian::Internal::RefCntPtr< T >::operator*(), Xapian::Internal::RefCntPtr< T >::operator->(), Xapian::Internal::RefCntPtr< T >::operator=(), Xapian::Internal::RefCntPtr< T >::RefCntPtr(), and Xapian::Internal::RefCntPtr< T >::~RefCntPtr().