xapian-core
1.4.27
|
Base class for objects managed by intrusive_ptr. More...
#include <intrusive_ptr.h>
Public Member Functions | |
intrusive_base () | |
Construct with no references. More... | |
Public Attributes | |
unsigned | _refs |
Reference count. More... | |
Private Member Functions | |
intrusive_base (const intrusive_base &) | |
Prevent copying. More... | |
void | operator= (const intrusive_base &) |
Prevent assignment. More... | |
Base class for objects managed by intrusive_ptr.
Definition at line 49 of file intrusive_ptr.h.
|
private |
Prevent copying.
|
inline |
Construct with no references.
The references get added if/when this object is put into an intrusive_ptr.
Definition at line 62 of file intrusive_ptr.h.
|
private |
Prevent assignment.
Referenced by Xapian::Internal::intrusive_ptr< Xapian::QueryParser::Internal >::~intrusive_ptr(), and Xapian::Internal::opt_intrusive_ptr< Xapian::PostingSource >::~opt_intrusive_ptr().
|
mutable |
Reference count.
This needs to be mutable so we can add/remove references through const pointers.
Definition at line 73 of file intrusive_ptr.h.
Referenced by Xapian::Internal::QueryWildcard::change_combiner(), Xapian::PostingIterator::operator=(), Xapian::TermIterator::operator=(), Xapian::PositionIterator::operator=(), Xapian::ValueIterator::operator=(), Xapian::PostingIterator::post_advance(), Xapian::TermIterator::post_advance(), Xapian::Internal::opt_intrusive_base::ref(), test_refcnt1(), and Xapian::Internal::opt_intrusive_base::unref().