xapian-core  1.4.26
Classes | Functions | Variables
Xapian::Internal Namespace Reference

Classes

class  AndContext
 
class  Bo1EWeight
 This class implements the Bo1 scheme for query expansion. More...
 
struct  CmpMaxOrTerms
 Class providing an operator which sorts postlists to select max or terms. More...
 
struct  ComparePostListTermFreqAscending
 Comparison functor which orders PostList* by descending get_termfreq_est(). More...
 
struct  constinfo
 
class  Context
 
class  ExpandStats
 Collates statistics while calculating term weight in an ESet. More...
 
class  ExpandTerm
 Class combining a term and its expand weight. More...
 
class  ExpandWeight
 Class for calculating ESet term weights. More...
 
class  intrusive_base
 Base class for objects managed by intrusive_ptr. More...
 
class  intrusive_ptr
 A smart pointer that uses intrusive reference counting. More...
 
class  MSetItem
 An item resulting from a query. More...
 
class  opt_intrusive_base
 Base class for objects managed by opt_intrusive_ptr. More...
 
class  opt_intrusive_ptr
 A smart pointer that optionally uses intrusive reference counting. More...
 
class  OrContext
 
class  QueryAnd
 
class  QueryAndLike
 
class  QueryAndMaybe
 
class  QueryAndNot
 
class  QueryBranch
 
class  QueryEliteSet
 
class  QueryFilter
 
class  QueryInvalid
 
class  QueryMax
 
class  QueryNear
 
class  QueryOr
 
class  QueryOrLike
 
class  QueryPhrase
 
class  QueryPostingSource
 
class  QueryScaleWeight
 
class  QuerySynonym
 
class  QueryTerm
 
class  QueryValueBase
 
class  QueryValueGE
 
class  QueryValueLE
 
class  QueryValueRange
 
class  QueryWildcard
 
class  QueryWindowed
 
class  QueryXor
 
class  TradEWeight
 This class implements the TradWeight scheme for query expansion. More...
 
class  XorContext
 

Functions

const struct constinfoget_constinfo_ ()
 
void closefrom (int fd)
 
string str (int value)
 Convert int to std::string. More...
 
string str (unsigned int value)
 Convert unsigned int to std::string. More...
 
string str (long value)
 Convert long to std::string. More...
 
string str (unsigned long value)
 Convert unsigned long to std::string. More...
 
string str (long long value)
 Convert long long to std::string. More...
 
string str (unsigned long long value)
 Convert unsigned long long to std::string. More...
 
template<class T >
static string format (const char *fmt, T value)
 
string str (double value)
 Convert double to std::string. More...
 
string str (const void *value)
 Convert const void * to std::string. More...
 
std::string str (const std::string &value)
 Convert std::string to std::string. More...
 
std::string str (const char *value)
 Convert const char * to std::string. More...
 
std::string str (bool value)
 Convert bool to std::string. More...
 
template<class T , class U >
bool operator== (intrusive_ptr< T > const &a, intrusive_ptr< U > const &b)
 
template<class T , class U >
bool operator!= (intrusive_ptr< T > const &a, intrusive_ptr< U > const &b)
 
template<class T , class U >
bool operator== (intrusive_ptr< T > const &a, U *b)
 
template<class T , class U >
bool operator!= (intrusive_ptr< T > const &a, U *b)
 
template<class T , class U >
bool operator== (T *a, intrusive_ptr< U > const &b)
 
template<class T , class U >
bool operator!= (T *a, intrusive_ptr< U > const &b)
 
template<class T , class U >
bool operator== (opt_intrusive_ptr< T > const &a, opt_intrusive_ptr< U > const &b)
 
template<class T , class U >
bool operator!= (opt_intrusive_ptr< T > const &a, opt_intrusive_ptr< U > const &b)
 
template<class T , class U >
bool operator== (opt_intrusive_ptr< T > const &a, U *b)
 
template<class T , class U >
bool operator!= (opt_intrusive_ptr< T > const &a, U *b)
 
template<class T , class U >
bool operator== (T *a, opt_intrusive_ptr< U > const &b)
 
template<class T , class U >
bool operator!= (T *a, opt_intrusive_ptr< U > const &b)
 

Variables

const unsigned char HEX_MASK = 0x0f
 
const unsigned char IS_UPPER = 0x10
 
const unsigned char IS_ALPHA = 0x20
 
const unsigned char IS_DIGIT = 0x40
 
const unsigned char IS_SPACE = 0x80
 

Function Documentation

◆ closefrom()

void Xapian::Internal::closefrom ( int  fd)

◆ format()

template<class T >
static string Xapian::Internal::format ( const char *  fmt,
value 
)
inlinestatic

Definition at line 127 of file str.cc.

References AssertRel, and SNPRINTF.

Referenced by ChertTable_base::read(), and str().

◆ get_constinfo_()

const struct constinfo * Xapian::Internal::get_constinfo_ ( )

Rather than having a separate function to access each piece of information, we put it all into a structure and have a single function which returns a pointer to this (and we mark that function with attribute const, so the compiler should be able to CSE calls to it. This means that when Xapian is loaded as a shared library we save N-1 relocations (where N is the number of pieces of information), which reduces the library load time.

Definition at line 43 of file constinfo.cc.

References const_info.

Referenced by C_tab_(), Xapian::Stem::get_available_languages(), Xapian::major_version(), Xapian::minor_version(), Xapian::revision(), and Xapian::version_string().

◆ operator!=() [1/6]

template<class T , class U >
bool Xapian::Internal::operator!= ( intrusive_ptr< T > const &  a,
intrusive_ptr< U > const &  b 
)
inline

Definition at line 187 of file intrusive_ptr.h.

References Xapian::Internal::intrusive_ptr< T >::get().

◆ operator!=() [2/6]

template<class T , class U >
bool Xapian::Internal::operator!= ( intrusive_ptr< T > const &  a,
U *  b 
)
inline

Definition at line 197 of file intrusive_ptr.h.

References Xapian::Internal::intrusive_ptr< T >::get().

◆ operator!=() [3/6]

template<class T , class U >
bool Xapian::Internal::operator!= ( T *  a,
intrusive_ptr< U > const &  b 
)
inline

Definition at line 207 of file intrusive_ptr.h.

References Xapian::Internal::intrusive_ptr< T >::get().

◆ operator!=() [4/6]

template<class T , class U >
bool Xapian::Internal::operator!= ( opt_intrusive_ptr< T > const &  a,
opt_intrusive_ptr< U > const &  b 
)
inline

Definition at line 389 of file intrusive_ptr.h.

References Xapian::Internal::opt_intrusive_ptr< T >::get().

◆ operator!=() [5/6]

template<class T , class U >
bool Xapian::Internal::operator!= ( opt_intrusive_ptr< T > const &  a,
U *  b 
)
inline

Definition at line 399 of file intrusive_ptr.h.

References Xapian::Internal::opt_intrusive_ptr< T >::get().

◆ operator!=() [6/6]

template<class T , class U >
bool Xapian::Internal::operator!= ( T *  a,
opt_intrusive_ptr< U > const &  b 
)
inline

Definition at line 409 of file intrusive_ptr.h.

References Xapian::Internal::opt_intrusive_ptr< T >::get().

◆ operator==() [1/6]

template<class T , class U >
bool Xapian::Internal::operator== ( intrusive_ptr< T > const &  a,
intrusive_ptr< U > const &  b 
)
inline

Definition at line 182 of file intrusive_ptr.h.

References Xapian::Internal::intrusive_ptr< T >::get().

◆ operator==() [2/6]

template<class T , class U >
bool Xapian::Internal::operator== ( intrusive_ptr< T > const &  a,
U *  b 
)
inline

Definition at line 192 of file intrusive_ptr.h.

References Xapian::Internal::intrusive_ptr< T >::get().

◆ operator==() [3/6]

template<class T , class U >
bool Xapian::Internal::operator== ( T *  a,
intrusive_ptr< U > const &  b 
)
inline

Definition at line 202 of file intrusive_ptr.h.

References Xapian::Internal::intrusive_ptr< T >::get().

◆ operator==() [4/6]

template<class T , class U >
bool Xapian::Internal::operator== ( opt_intrusive_ptr< T > const &  a,
opt_intrusive_ptr< U > const &  b 
)
inline

Definition at line 384 of file intrusive_ptr.h.

References Xapian::Internal::opt_intrusive_ptr< T >::get().

◆ operator==() [5/6]

template<class T , class U >
bool Xapian::Internal::operator== ( opt_intrusive_ptr< T > const &  a,
U *  b 
)
inline

Definition at line 394 of file intrusive_ptr.h.

References Xapian::Internal::opt_intrusive_ptr< T >::get().

◆ operator==() [6/6]

template<class T , class U >
bool Xapian::Internal::operator== ( T *  a,
opt_intrusive_ptr< U > const &  b 
)
inline

Definition at line 404 of file intrusive_ptr.h.

References Xapian::Internal::opt_intrusive_ptr< T >::get().

◆ str() [1/11]

std::string Xapian::Internal::str ( const std::string &  value)
inline

Convert std::string to std::string.

This is useful as it allows macros and templates to apply str() to a type and have it work if that type is std::string.

Definition at line 58 of file str.h.

◆ str() [2/11]

std::string Xapian::Internal::str ( const char *  value)
inline

Convert const char * to std::string.

Definition at line 61 of file str.h.

◆ str() [3/11]

std::string Xapian::Internal::str ( bool  value)
inline

Convert bool to std::string.

Definition at line 64 of file str.h.

References str().

◆ str() [4/11]

std::string Xapian::Internal::str ( int  value)

Convert int to std::string.

Definition at line 90 of file str.cc.

References tostring().

Referenced by ChertDatabaseReplicator::apply_changeset_from_conn(), GlassDatabaseReplicator::apply_changeset_from_conn(), Xapian::DatabaseReplica::Internal::apply_next_changeset(), ChertTable::block_to_cursor(), GlassTable::block_to_cursor(), builddb_queries1(), builddb_valuestest1(), ChertTableCheck::check(), GlassTableCheck::check(), FDTracker::check(), check_db_dir(), Xapian::DatabaseReplica::Internal::check_message_type(), Xapian::RangeProcessor::check_range(), checked_system(), ChertTermList::ChertTermList(), GlassChanges::commit(), GlassDatabase::compact(), ChertDatabase::compact(), Xapian::Database::compact_(), BackendManagerMulti::createdb_multi(), dbcheck(), DEFINE_TESTCASE(), InMemoryDatabase::delete_document(), ChertRecordTable::delete_record(), docstats_to_string(), docterms_to_string(), errno_to_string(), failure(), Glass::LeafItem_wr::form_key(), Item_wr::form_key(), format_doc_termlist(), GlassFreeList::get_block(), ValueGePostList::get_description(), ChertAllDocsPostList::get_description(), GlassAllDocsPostList::get_description(), DocumentValueList::get_description(), ChertAllDocsModifiedPostList::get_description(), NearPostList::get_description(), Xapian::Internal::QueryTerm::get_description(), TermFreqs::get_description(), PhrasePostList::get_description(), GlassValueList::get_description(), ChertValueList::get_description(), Xapian::Internal::ExpandTerm::get_description(), SlowValueList::get_description(), ValueRangePostList::get_description(), ContiguousAllDocsPostList::get_description(), Xapian::Internal::QueryScaleWeight::get_description(), Xapian::ESet::Internal::get_description(), Xapian::Internal::MSetItem::get_description(), Xapian::Internal::QueryValueRange::get_description(), Xapian::Internal::QueryValueLE::get_description(), Xapian::LatLongCoord::get_description(), Xapian::Internal::QueryValueGE::get_description(), InMemoryPostList::get_description(), OmDocumentTerm::get_description(), InMemoryAllDocsPostList::get_description(), Xapian::Document::Internal::get_description(), GlassPostList::get_description(), Xapian::Weight::Internal::get_description(), Xapian::ESetIterator::get_description(), ChertPostList::get_description(), Xapian::LatLongCoords::get_description(), Xapian::TermGenerator::get_description(), Xapian::ValueCountMatchSpy::get_description(), Xapian::MSet::Internal::get_description(), Xapian::RSet::Internal::get_description(), Xapian::LatLongDistancePostingSource::get_description(), Xapian::MSetIterator::get_description(), Xapian::ValueWeightPostingSource::get_description(), Xapian::ValueMapPostingSource::get_description(), Xapian::FixedWeightPostingSource::get_description(), Xapian::Internal::QueryBranch::get_description_helper(), get_distro(), Xapian::MSet::Internal::get_doc_by_index(), ChertPostListTable::get_doclength(), Inverter::get_doclength(), GlassPostListTable::get_doclength(), InMemoryDatabase::get_doclength(), ChertWritableDatabase::get_doclength(), Xapian::Error::get_error_string(), RemoteServer::get_message(), RemoteDatabase::get_message(), get_ncpus(), BackendManagerRemote::get_remote_database_args(), StringAndFrequency::get_string(), RemoteTcpClient::get_tcpcontext(), InMemoryDatabase::get_unique_terms(), ChertWritableDatabase::get_unique_terms(), ChangeMaxweightPostingSource::get_weight(), BackendManagerRemote::get_writable_database_args(), GlassTermList::GlassTermList(), GlassVersion::GlassVersion(), PerfTestLogger::indexing_begin(), PerfTestLogger::indexing_log(), CompressionStream::lazy_alloc_deflate_zstream(), ChertTable::lazy_alloc_deflate_zstream(), CompressionStream::lazy_alloc_inflate_zstream(), ChertTable::lazy_alloc_inflate_zstream(), make_matchspy2_db(), make_ordecay_db(), make_sparse_db(), make_topercent7_db(), make_xordecay1_db(), GlassCompact::multimerge_postlists(), ChertCompact::multimerge_postlists(), GlassPostList::next_chunk(), ChertPostList::next_chunk(), PerfTestLogger::open(), InMemoryDatabase::open_document(), InMemoryDatabase::open_term_list(), Xapian::StringValueRangeProcessor::operator()(), operator<<(), test_driver::parse_command_line(), parsesigned_helper(), parseunsigned_helper(), positions_to_string(), Xapian::Internal::QueryWildcard::postlist(), postlist_to_string(), push_leaf_N(), querypairwise1_helper(), State::range(), ChertTable_base::read(), GlassVersion::read(), ChertVersion::read_and_check(), ChertTable::read_block(), GlassTable::read_block(), read_stub_file(), ChertTable::read_tag(), OmDocumentTerm::remove_position(), Xapian::Document::Internal::remove_value(), Resolver::Resolver(), RemoteServer::run(), PerfTestLogger::search_end(), RemoteConnection::send_message(), GlassDatabase::set_revision_number(), ChertDatabase::set_revision_number(), str(), termstats_to_string(), test_sortableserialise1(), test_strbool1(), test_tostring1(), test_uuid1(), PerfTestLogger::testcase_begin(), throw_block_error(), tostring_helper(), Xapian::Query::Internal::unserialise(), RemoteDatabase::update_stats(), validate_postingsource_params(), values_to_repr(), GlassDatabase::write_changesets_to_fd(), and ChertDatabase::write_changesets_to_fd().

◆ str() [5/11]

std::string Xapian::Internal::str ( unsigned int  value)

Convert unsigned int to std::string.

Definition at line 96 of file str.cc.

References tostring_unsigned().

◆ str() [6/11]

std::string Xapian::Internal::str ( long  value)

Convert long to std::string.

Definition at line 102 of file str.cc.

References tostring().

◆ str() [7/11]

std::string Xapian::Internal::str ( unsigned long  value)

Convert unsigned long to std::string.

Definition at line 108 of file str.cc.

References tostring_unsigned().

◆ str() [8/11]

std::string Xapian::Internal::str ( long long  value)

Convert long long to std::string.

Definition at line 114 of file str.cc.

References tostring().

◆ str() [9/11]

std::string Xapian::Internal::str ( unsigned long long  value)

Convert unsigned long long to std::string.

Definition at line 120 of file str.cc.

References tostring_unsigned().

◆ str() [10/11]

std::string Xapian::Internal::str ( double  value)

Convert double to std::string.

Definition at line 145 of file str.cc.

References format().

◆ str() [11/11]

std::string Xapian::Internal::str ( const void *  value)

Convert const void * to std::string.

Definition at line 151 of file str.cc.

References format().

Variable Documentation

◆ HEX_MASK

const unsigned char Xapian::Internal::HEX_MASK = 0x0f

Definition at line 155 of file stringutils.h.

Referenced by C_isxdigit(), and hex_digit().

◆ IS_ALPHA

const unsigned char Xapian::Internal::IS_ALPHA = 0x20

Definition at line 157 of file stringutils.h.

Referenced by C_isalnum(), C_isalpha(), C_islower(), C_tolower(), and C_toupper().

◆ IS_DIGIT

const unsigned char Xapian::Internal::IS_DIGIT = 0x40

Definition at line 158 of file stringutils.h.

Referenced by C_isalnum(), C_isdigit(), and C_isxdigit().

◆ IS_SPACE

const unsigned char Xapian::Internal::IS_SPACE = 0x80

Definition at line 159 of file stringutils.h.

Referenced by C_isspace().

◆ IS_UPPER

const unsigned char Xapian::Internal::IS_UPPER = 0x10

Definition at line 156 of file stringutils.h.

Referenced by C_islower(), and C_isupper().