OmniSciDB  a5dc49c757
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
CachedItem< CACHED_ITEM_TYPE, META_INFO_TYPE > Struct Template Reference

#include <DataRecycler.h>

Public Member Functions

 CachedItem (QueryPlanHash hashed_plan, CACHED_ITEM_TYPE item, std::shared_ptr< CacheItemMetric > item_metric_ptr, std::optional< META_INFO_TYPE > metadata=std::nullopt)
 
void setDirty ()
 
bool isDirty () const
 

Public Attributes

QueryPlanHash key
 
CACHED_ITEM_TYPE cached_item
 
std::shared_ptr< CacheItemMetricitem_metric
 
std::optional< META_INFO_TYPE > meta_info
 
bool dirty
 

Detailed Description

template<typename CACHED_ITEM_TYPE, typename META_INFO_TYPE>
struct CachedItem< CACHED_ITEM_TYPE, META_INFO_TYPE >

Definition at line 422 of file DataRecycler.h.

Constructor & Destructor Documentation

template<typename CACHED_ITEM_TYPE, typename META_INFO_TYPE>
CachedItem< CACHED_ITEM_TYPE, META_INFO_TYPE >::CachedItem ( QueryPlanHash  hashed_plan,
CACHED_ITEM_TYPE  item,
std::shared_ptr< CacheItemMetric item_metric_ptr,
std::optional< META_INFO_TYPE >  metadata = std::nullopt 
)
inline

Definition at line 423 of file DataRecycler.h.

427  : key(hashed_plan)
428  , cached_item(item)
429  , item_metric(item_metric_ptr)
430  , meta_info(metadata)
431  , dirty(false) {}
CACHED_ITEM_TYPE cached_item
Definition: DataRecycler.h:437
QueryPlanHash key
Definition: DataRecycler.h:436
std::optional< META_INFO_TYPE > meta_info
Definition: DataRecycler.h:439
std::shared_ptr< CacheItemMetric > item_metric
Definition: DataRecycler.h:438

Member Function Documentation

template<typename CACHED_ITEM_TYPE, typename META_INFO_TYPE>
bool CachedItem< CACHED_ITEM_TYPE, META_INFO_TYPE >::isDirty ( ) const
inline

Definition at line 434 of file DataRecycler.h.

References CachedItem< CACHED_ITEM_TYPE, META_INFO_TYPE >::dirty.

434 { return dirty; }
template<typename CACHED_ITEM_TYPE, typename META_INFO_TYPE>
void CachedItem< CACHED_ITEM_TYPE, META_INFO_TYPE >::setDirty ( )
inline

Definition at line 433 of file DataRecycler.h.

References CachedItem< CACHED_ITEM_TYPE, META_INFO_TYPE >::dirty.

433 { dirty = true; }

Member Data Documentation

template<typename CACHED_ITEM_TYPE, typename META_INFO_TYPE>
CACHED_ITEM_TYPE CachedItem< CACHED_ITEM_TYPE, META_INFO_TYPE >::cached_item

Definition at line 437 of file DataRecycler.h.

template<typename CACHED_ITEM_TYPE, typename META_INFO_TYPE>
bool CachedItem< CACHED_ITEM_TYPE, META_INFO_TYPE >::dirty
template<typename CACHED_ITEM_TYPE, typename META_INFO_TYPE>
std::shared_ptr<CacheItemMetric> CachedItem< CACHED_ITEM_TYPE, META_INFO_TYPE >::item_metric
template<typename CACHED_ITEM_TYPE, typename META_INFO_TYPE>
QueryPlanHash CachedItem< CACHED_ITEM_TYPE, META_INFO_TYPE >::key

Definition at line 436 of file DataRecycler.h.

template<typename CACHED_ITEM_TYPE, typename META_INFO_TYPE>
std::optional<META_INFO_TYPE> CachedItem< CACHED_ITEM_TYPE, META_INFO_TYPE >::meta_info

Definition at line 439 of file DataRecycler.h.


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