xapian-core  2.0.0
Public Member Functions | Private Attributes | List of all members
PrefixCompressedStringWriter Class Reference

#include <prefix_compressed_strings.h>

+ Collaboration diagram for PrefixCompressedStringWriter:

Public Member Functions

 PrefixCompressedStringWriter (std::string &out_)
 Construct for glass. More...
 
 PrefixCompressedStringWriter (std::string &out_, const std::string &key)
 Construct for honey. More...
 
void append (const std::string &word)
 

Private Attributes

std::string current
 
std::string & out
 
int tail = 0
 

Detailed Description

Definition at line 142 of file prefix_compressed_strings.h.

Constructor & Destructor Documentation

◆ PrefixCompressedStringWriter() [1/2]

PrefixCompressedStringWriter::PrefixCompressedStringWriter ( std::string &  out_)
inlineexplicit

Construct for glass.

Parameters
out_where to write data to.

Definition at line 153 of file prefix_compressed_strings.h.

◆ PrefixCompressedStringWriter() [2/2]

PrefixCompressedStringWriter::PrefixCompressedStringWriter ( std::string &  out_,
const std::string &  key 
)
inline

Construct for honey.

Parameters
out_where to write data to.
keythe key.

Definition at line 160 of file prefix_compressed_strings.h.

References Assert, AssertRel, current, Honey::KEY_PREFIX_BOOKEND, Honey::KEY_PREFIX_HEAD, Honey::KEY_PREFIX_TAIL, Honey::KEY_PREFIX_WORD, and tail.

Member Function Documentation

◆ append()

void PrefixCompressedStringWriter::append ( const std::string &  word)
inline

Member Data Documentation

◆ current

std::string PrefixCompressedStringWriter::current
private

Definition at line 143 of file prefix_compressed_strings.h.

Referenced by append(), and PrefixCompressedStringWriter().

◆ out

std::string& PrefixCompressedStringWriter::out
private

Definition at line 144 of file prefix_compressed_strings.h.

Referenced by append().

◆ tail

int PrefixCompressedStringWriter::tail = 0
private

Definition at line 146 of file prefix_compressed_strings.h.

Referenced by append(), and PrefixCompressedStringWriter().


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