JASSv2
Public Member Functions | Public Attributes | List of all members
JASS::deserialised_jass_v1::metadata Class Reference

metadata for a given term including pointer to postings and number of impacts. More...

#include <deserialised_jass_v1.h>

Collaboration diagram for JASS::deserialised_jass_v1::metadata:
Collaboration graph
[legend]

Public Member Functions

 metadata ()
 Constructor.
 
 metadata (const slice &term, const void *offset, uint64_t impacts)
 Constructor. More...
 
bool operator< (const slice &with) const
 Less than operator used for sorting terms in the vocabulary. More...
 

Public Attributes

slice term
 Pointer to a '\0' terminated string that is this term's name.
 
uint8_t * offset
 Offset to the postings for this term.
 
uint64_t impacts
 The numner of impact segments this term has.
 

Detailed Description

metadata for a given term including pointer to postings and number of impacts.

Constructor & Destructor Documentation

◆ metadata()

JASS::deserialised_jass_v1::metadata::metadata ( const slice term,
const void *  offset,
uint64_t  impacts 
)
inline

Constructor.

Parameters
term[in] The term this object represents
offset[in] The a ppointer to the postings lists for this term
impacts[in] The number of impacts for this term

Member Function Documentation

◆ operator<()

bool JASS::deserialised_jass_v1::metadata::operator< ( const slice with) const
inline

Less than operator used for sorting terms in the vocabulary.

Parameters
with[in] what to compare to.
Returns
true if this is less than with, else false.

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