24 #ifndef OM_HGUARD_DOCUMENT_H    25 #define OM_HGUARD_DOCUMENT_H    44     friend class ::DocumentValueList;
    45     friend class ::ValueStreamDocument;
   126             swap(values, values_);
   199             return terms_here || values_here || 
data_here;
   223             : database(database_), data_here(
false), values_here(
false),
   224               terms_here(
false), positions_modified(
false), did(did_) { }
   227             : database(), data_here(
false), values_here(
false),
   228               terms_here(
false), positions_modified(
false), did(0) { }
   238 #endif  // OM_HGUARD_DOCUMENT_H 
bool term_positions_modified() const
Return true if term positions may have been modified. 
 
document_values values
The values associated with this document. 
 
map< Xapian::valueno, string > document_values
Type to store values in. 
 
bool values_modified() const
Return true if the values in the document may have been modified. 
 
Xapian::docid did
The document ID of the document in that database. 
 
void set_data(const string &)
 
void add_posting(const string &, Xapian::termpos, Xapian::termcount)
 
A document which gets its values from a ValueStreamManager. 
 
TermList * open_term_list() const
Open a term list. 
 
Internal(Xapian::Internal::intrusive_ptr< const Xapian::Database::Internal > database_, Xapian::docid did_)
Constructor. 
 
internal class representing a term in a modified document 
 
document_terms terms
The terms (and their frequencies and positions) in this document. 
 
Iteration over values in a document. 
 
A document in the database, possibly plus modifications. 
 
Abstract base class for termlists. 
 
virtual string do_get_data() const
 
virtual void do_get_all_values(map< Xapian::valueno, string > &values_) const
 
Xapian::termcount termlist_count() const
 
Xapian::valueno values_count() const
 
void remove_posting(const string &, Xapian::termpos, Xapian::termcount)
 
Xapian::termcount termlist_size
The number of distinct terms in terms. 
 
virtual ~Internal()
Destructor. 
 
unsigned XAPIAN_TERMCOUNT_BASE_TYPE termcount
A counts of terms. 
 
string get_data() const
Get data stored in document. 
 
string get_value(Xapian::valueno slot) const
Get value by value number. 
 
Xapian::Internal::intrusive_ptr< const Xapian::Database::Internal > database
The database this document is in. 
 
bool modified() const
Return true if the document may have been modified. 
 
void set_all_values(map< Xapian::valueno, string > &values_)
Set all the values. 
 
Base class for objects managed by intrusive_ptr. 
 
Internal & operator=(const Internal &)
 
bool data_modified() const
Return true if the data in the document may have been modified. 
 
Xapian::docid get_docid() const
Get the docid which is associated with this document (if any). 
 
void remove_term(const string &)
 
virtual string do_get_value(Xapian::valueno) const
 
void remove_value(Xapian::valueno)
 
void add_term(const string &, Xapian::termcount)
 
unsigned valueno
The number for a value slot in a document. 
 
unsigned XAPIAN_TERMPOS_BASE_TYPE termpos
A term position within a document or query. 
 
Abstract base class for termlists. 
 
bool terms_modified() const
Return true if the terms in the document may have been modified. 
 
unsigned XAPIAN_DOCID_BASE_TYPE docid
A unique identifier for a document. 
 
map< string, OmDocumentTerm > document_terms
Type to store terms in. 
 
void add_value(Xapian::valueno, const string &)
 
Xapian::termpos remove_postings(const string &, Xapian::termpos, Xapian::termpos, Xapian::termcount)
 
string data
The (user defined) data associated with this document. 
 
string get_description() const
Return a string describing this object.