JASSv2
Public Member Functions | Public Attributes | List of all members
JASS::serialise_jass_v1::vocab_tripple Class Reference

The tripple used in CIvocab.bin. More...

#include <serialise_jass_v1.h>

Collaboration diagram for JASS::serialise_jass_v1::vocab_tripple:
Collaboration graph
[legend]

Public Member Functions

 vocab_tripple (const slice &string, uint64_t term, uint64_t offset, uint64_t impacts)
 Constructor. More...
 
bool operator< (const vocab_tripple &other) const
 Compare (using strcmp() colaiting sequence) this object with another for less than. More...
 

Public Attributes

slice token
 The term as a string (needed for sorting the std::vector vocab_tripple array later)
 
uint64_t term
 The pointer to the \0 terminated string in the CI_vovab_terms.bin file.
 
uint64_t offset
 The pointer to the postings stored in the CIpostings.bin file.
 
uint64_t impacts
 The number of impacts that exist for this term.
 

Detailed Description

The tripple used in CIvocab.bin.

Constructor & Destructor Documentation

◆ vocab_tripple()

JASS::serialise_jass_v1::vocab_tripple::vocab_tripple ( const slice string,
uint64_t  term,
uint64_t  offset,
uint64_t  impacts 
)
inline

Constructor.

Parameters
string[in] The term that that this object represents.
term[in] The location of this term in CIvocab_terms.bin.
offset[in] The offset of the postings list in CIpostings.bin.
impacts[in] The number of impacts in the postings list.

Member Function Documentation

◆ operator<()

bool JASS::serialise_jass_v1::vocab_tripple::operator< ( const vocab_tripple other) const
inline

Compare (using strcmp() colaiting sequence) this object with another for less than.

Parameters
other[in] The object to compare to
Returns
true if this < other, else false

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