xapian-core  1.4.27
Public Member Functions | Private Attributes | List of all members
Glass::ValueChunkReader Class Reference

#include <glass_values.h>

+ Collaboration diagram for Glass::ValueChunkReader:

Public Member Functions

 ValueChunkReader ()
 Create a ValueChunkReader which is already at_end(). More...
 
 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 180 of file glass_values.h.

Constructor & Destructor Documentation

◆ ValueChunkReader() [1/2]

Glass::ValueChunkReader::ValueChunkReader ( )
inline

Create a ValueChunkReader which is already at_end().

Definition at line 190 of file glass_values.h.

◆ ValueChunkReader() [2/2]

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

Definition at line 192 of file glass_values.h.

Member Function Documentation

◆ assign()

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

Definition at line 72 of file glass_values.cc.

References unpack_string().

Referenced by Glass::ValueUpdater::update().

◆ at_end()

bool Glass::ValueChunkReader::at_end ( ) const
inline

◆ get_docid()

Xapian::docid Glass::ValueChunkReader::get_docid ( ) const
inline

◆ get_value()

const std::string& Glass::ValueChunkReader::get_value ( ) const
inline

◆ next()

void ValueChunkReader::next ( )

◆ skip_to()

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

Definition at line 98 of file glass_values.cc.

References rare, and unpack_uint().

Referenced by GlassValueManager::get_value().

Member Data Documentation

◆ did

Xapian::docid Glass::ValueChunkReader::did
private

Definition at line 184 of file glass_values.h.

◆ end

const char* Glass::ValueChunkReader::end
private

Definition at line 182 of file glass_values.h.

◆ p

const char* Glass::ValueChunkReader::p
private

Definition at line 181 of file glass_values.h.

◆ value

std::string Glass::ValueChunkReader::value
private

Definition at line 186 of file glass_values.h.


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