FlintDocument Class Reference

A document from a Flint format database. More...

#include <flint_document.h>

Inheritance diagram for FlintDocument:

Inheritance graph
[legend]
Collaboration diagram for FlintDocument:

Collaboration graph
[legend]

List of all members.

Public Member Functions

string do_get_value (Xapian::valueno slot) const
 Retrieve a value from the database.
void do_get_all_values (map< Xapian::valueno, string > &values_) const
string do_get_data () const
 Retrieve the document data from the database.

Private Member Functions

 FlintDocument (Xapian::Internal::RefCntPtr< const Xapian::Database::Internal > database_, const FlintValueTable *value_table_, const FlintRecordTable *record_table_, Xapian::docid did_, bool lazy)
 Create a FlintDocument: this is only called by FlintDatabase::open_document().
 FlintDocument (const FlintDocument &)
FlintDocumentoperator= (const FlintDocument &)

Private Attributes

Xapian::Internal::RefCntPtr
< const
Xapian::Database::Internal
database
 The database this document is in.
const FlintValueTablevalue_table
const FlintRecordTablerecord_table

Friends

class FlintDatabase
class FlintWritableDatabase


Detailed Description

A document from a Flint format database.

Definition at line 34 of file flint_document.h.


Constructor & Destructor Documentation

FlintDocument::FlintDocument ( Xapian::Internal::RefCntPtr< const Xapian::Database::Internal database_,
const FlintValueTable value_table_,
const FlintRecordTable record_table_,
Xapian::docid  did_,
bool  lazy 
) [private]

FlintDocument::FlintDocument ( const FlintDocument  )  [private]


Member Function Documentation

void FlintDocument::do_get_all_values ( map< Xapian::valueno, string > &  values_  )  const

string FlintDocument::do_get_data (  )  const [virtual]

Retrieve the document data from the database.

Reimplemented from Xapian::Document::Internal.

Definition at line 74 of file flint_document.cc.

References Xapian::Document::Internal::did, FlintRecordTable::get_record(), LOGCALL, record_table, and RETURN.

string FlintDocument::do_get_value ( Xapian::valueno  slot  )  const [virtual]

Retrieve a value from the database.

Parameters:
slot The value number to retrieve.

Reimplemented from Xapian::Document::Internal.

Definition at line 54 of file flint_document.cc.

References Xapian::Document::Internal::did, FlintValueTable::get_value(), LOGCALL, RETURN, and value_table.

FlintDocument& FlintDocument::operator= ( const FlintDocument  )  [private]


Friends And Related Function Documentation

friend class FlintDatabase [friend]

Definition at line 35 of file flint_document.h.

friend class FlintWritableDatabase [friend]

Definition at line 36 of file flint_document.h.


Member Data Documentation

The database this document is in.

Reimplemented from Xapian::Document::Internal.

Definition at line 38 of file flint_document.h.

Definition at line 41 of file flint_document.h.

Referenced by do_get_data(), and FlintDocument().

Definition at line 40 of file flint_document.h.

Referenced by do_get_value().


The documentation for this class was generated from the following files:

Documentation for Xapian (version 1.2.8).
Generated on 14 Dec 2011 by Doxygen 1.5.9.