ValueChunkReader Class Reference

#include <chert_values.h>

Collaboration diagram for ValueChunkReader:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 ValueChunkReader ()
 Create a ValueChunkReader which is already at_end().
 ValueChunkReader (const char *p_, size_t len, Xapian::docid did_)
void assign (const char *p_, size_t len, Xapian::docid did_)
bool at_end () const
Xapian::docid get_docid () const
const std::string & get_value () const
void next ()
void skip_to (Xapian::docid target)

Private Attributes

const char * p
const char * end
Xapian::docid did
std::string value


Detailed Description

Definition at line 168 of file chert_values.h.


Constructor & Destructor Documentation

ValueChunkReader::ValueChunkReader (  )  [inline]

Create a ValueChunkReader which is already at_end().

Definition at line 178 of file chert_values.h.

ValueChunkReader::ValueChunkReader ( const char *  p_,
size_t  len,
Xapian::docid  did_ 
) [inline]

Definition at line 180 of file chert_values.h.

References assign().


Member Function Documentation

void ValueChunkReader::assign ( const char *  p_,
size_t  len,
Xapian::docid  did_ 
)

Definition at line 71 of file chert_values.cc.

References did, end, p, unpack_string(), and value.

Referenced by ValueUpdater::update(), ChertValueList::update_reader(), and ValueChunkReader().

bool ValueChunkReader::at_end (  )  const [inline]

Xapian::docid ValueChunkReader::get_docid (  )  const [inline]

Definition at line 188 of file chert_values.h.

References did.

Referenced by ChertValueList::get_docid(), ValueUpdater::update(), and ValueUpdater::~ValueUpdater().

const std::string& ValueChunkReader::get_value (  )  const [inline]

Definition at line 190 of file chert_values.h.

References value.

Referenced by ChertValueList::get_value(), ValueUpdater::update(), and ValueUpdater::~ValueUpdater().

void ValueChunkReader::next (  ) 

void ValueChunkReader::skip_to ( Xapian::docid  target  ) 

Definition at line 97 of file chert_values.cc.

References did, end, p, rare, unpack_uint(), and value.

Referenced by ChertValueList::check(), and ChertValueList::skip_to().


Member Data Documentation

Definition at line 172 of file chert_values.h.

Referenced by assign(), get_docid(), next(), and skip_to().

const char* ValueChunkReader::end [private]

Definition at line 170 of file chert_values.h.

Referenced by assign(), next(), and skip_to().

const char* ValueChunkReader::p [private]

Definition at line 169 of file chert_values.h.

Referenced by assign(), at_end(), next(), and skip_to().

std::string ValueChunkReader::value [private]

Definition at line 174 of file chert_values.h.

Referenced by assign(), get_value(), next(), and skip_to().


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

Documentation for Xapian (version 1.2.13).
Generated on 9 Jan 2013 by Doxygen 1.5.9.