JODA  0.13.1 (59b41972)
JSON On-Demand Analysis
Public Types | Public Member Functions | Protected Attributes
CacheEntry Class Reference

#include <CacheEntry.h>

Collaboration diagram for CacheEntry:
[legend]

Public Types

typedef std::vector< bool > CacheIndex
 

Public Member Functions

 CacheEntry (std::shared_ptr< const CacheIndex > docs, std::shared_ptr< joda::query::Predicate > predicate)
 
 CacheEntry (std::shared_ptr< const CacheIndex > &&docs, std::shared_ptr< joda::query::Predicate > predicate)
 
void acceptPredicate (joda::query::PredicateVisitor &v)
 
std::shared_ptr< const CacheIndexgetDocs () const
 
const long estimatedSize ()
 

Protected Attributes

std::shared_ptr< const CacheIndexdocs
 
std::shared_ptr< joda::query::Predicatepredicate
 

Detailed Description

One Cache entry, containing the result documents and the predicate responsible for them

Member Typedef Documentation

◆ CacheIndex

typedef std::vector<bool> CacheEntry::CacheIndex

Constructor & Destructor Documentation

◆ CacheEntry() [1/2]

CacheEntry::CacheEntry ( std::shared_ptr< const CacheIndex docs,
std::shared_ptr< joda::query::Predicate predicate 
)
Here is the caller graph for this function:

◆ CacheEntry() [2/2]

CacheEntry::CacheEntry ( std::shared_ptr< const CacheIndex > &&  docs,
std::shared_ptr< joda::query::Predicate predicate 
)

Member Function Documentation

◆ acceptPredicate()

void CacheEntry::acceptPredicate ( joda::query::PredicateVisitor v)

Executes the given PredicateVisitor on the stored predicate

Parameters
vA reference to the PredicateVisitor to execute

◆ estimatedSize()

const long CacheEntry::estimatedSize ( )

Returns the estimated memory size of the CacheEntry

Returns
estimated memory size of the CacheEntry
Here is the call graph for this function:

◆ getDocs()

std::shared_ptr< const CacheEntry::CacheIndex > CacheEntry::getDocs ( ) const

Returns the set of documents in the CacheEntry

Returns
unordered_set of documents in the CacheEntry

Field Documentation

◆ docs

std::shared_ptr<const CacheIndex> CacheEntry::docs
protected

◆ predicate

std::shared_ptr<joda::query::Predicate> CacheEntry::predicate
protected

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