OmniSciDB  ca0c39ec8f
 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 424 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 425 of file DataRecycler.h.

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

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 436 of file DataRecycler.h.

References CachedItem< CACHED_ITEM_TYPE, META_INFO_TYPE >::dirty.

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

Definition at line 435 of file DataRecycler.h.

References CachedItem< CACHED_ITEM_TYPE, META_INFO_TYPE >::dirty.

435 { 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 439 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 438 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 441 of file DataRecycler.h.


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