OmniSciDB  a5dc49c757
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
TableGenerations Class Reference

#include <TableGenerations.h>

Public Member Functions

void setGeneration (const shared::TableKey &table_key, const TableGeneration &generation)
 
const TableGenerationgetGeneration (const shared::TableKey &table_key) const
 
const std::unordered_map
< shared::TableKey,
TableGeneration > & 
asMap () const
 
void clear ()
 

Private Attributes

std::unordered_map
< shared::TableKey,
TableGeneration
table_key_to_generation_
 

Detailed Description

Definition at line 29 of file TableGenerations.h.

Member Function Documentation

const std::unordered_map< shared::TableKey, TableGeneration > & TableGenerations::asMap ( ) const

Definition at line 33 of file TableGenerations.cpp.

References table_key_to_generation_.

Referenced by Executor::dumpCache().

34  {
36 }
std::unordered_map< shared::TableKey, TableGeneration > table_key_to_generation_

+ Here is the caller graph for this function:

void TableGenerations::clear ( )

Definition at line 38 of file TableGenerations.cpp.

References gpu_enabled::swap(), and table_key_to_generation_.

Referenced by Executor::clearMetaInfoCache().

38  {
40 }
std::unordered_map< shared::TableKey, TableGeneration > table_key_to_generation_
DEVICE void swap(ARGS &&...args)
Definition: gpu_enabled.h:114

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

const TableGeneration & TableGenerations::getGeneration ( const shared::TableKey table_key) const

Definition at line 26 of file TableGenerations.cpp.

References CHECK, and table_key_to_generation_.

Referenced by Executor::getTableGeneration().

27  {
28  const auto it = table_key_to_generation_.find(table_key);
29  CHECK(it != table_key_to_generation_.end());
30  return it->second;
31 }
std::unordered_map< shared::TableKey, TableGeneration > table_key_to_generation_
#define CHECK(condition)
Definition: Logger.h:291

+ Here is the caller graph for this function:

void TableGenerations::setGeneration ( const shared::TableKey table_key,
const TableGeneration generation 
)

Definition at line 20 of file TableGenerations.cpp.

References CHECK, and table_key_to_generation_.

Referenced by Executor::computeTableGenerations().

21  {
22  const auto it_ok = table_key_to_generation_.emplace(table_key, generation);
23  CHECK(it_ok.second);
24 }
std::unordered_map< shared::TableKey, TableGeneration > table_key_to_generation_
#define CHECK(condition)
Definition: Logger.h:291

+ Here is the caller graph for this function:

Member Data Documentation

std::unordered_map<shared::TableKey, TableGeneration> TableGenerations::table_key_to_generation_
private

Definition at line 41 of file TableGenerations.h.

Referenced by asMap(), clear(), getGeneration(), and setGeneration().


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