JODA  0.13.1 (59b41972)
JSON On-Demand Analysis
CacheEntry.h
Go to the documentation of this file.
1 //
2 // Created by Nico Schäfer on 8/2/17.
3 //
4 
5 #ifndef JODA_CACHEENTRY_H
6 #define JODA_CACHEENTRY_H
7 
11 #include <unordered_set>
12 
17 class CacheEntry {
18  public:
19  typedef std::vector<bool> CacheIndex;
20  CacheEntry(std::shared_ptr<const CacheIndex> docs,
21  std::shared_ptr<joda::query::Predicate> predicate);
22  CacheEntry(std::shared_ptr<const CacheIndex> &&docs,
23  std::shared_ptr<joda::query::Predicate> predicate);
24 
30 
35  std::shared_ptr<const CacheIndex> getDocs() const;
36 
41  const long estimatedSize();
42 
43  protected:
44  std::shared_ptr<const CacheIndex> docs;
45  std::shared_ptr<joda::query::Predicate> predicate;
46 };
47 
48 #endif // JODA_CACHEENTRY_H
Definition: CacheEntry.h:17
std::shared_ptr< joda::query::Predicate > predicate
Definition: CacheEntry.h:45
void acceptPredicate(joda::query::PredicateVisitor &v)
Definition: CacheEntry.cpp:12
std::shared_ptr< const CacheIndex > getDocs() const
Definition: CacheEntry.cpp:16
const long estimatedSize()
Definition: CacheEntry.cpp:20
std::vector< bool > CacheIndex
Definition: CacheEntry.h:19
CacheEntry(std::shared_ptr< const CacheIndex > docs, std::shared_ptr< joda::query::Predicate > predicate)
Definition: CacheEntry.cpp:8
std::shared_ptr< const CacheIndex > docs
Definition: CacheEntry.h:44
Definition: PredicateVisitor.h:29