8 #ifndef ELEMENT_DATA_CACHE_HH_
9 #define ELEMENT_DATA_CACHE_HH_
20 :
time_(-std::numeric_limits<double>::infinity()),
32 bool is_actual(
double time, std::string quantity_name) {
59 ASSERT(component_idx <
data_.size(),
"Index of component is out of range.\n");
60 return data_[component_idx];
double time_
time step stored in cache
std::shared_ptr< std::vector< T > > ComponentDataPtr
ComponentDataPtr get_component_data(unsigned int component_idx)
Return vector of element data for get component.
std::vector< ComponentDataPtr > CacheData
double get_time()
Getter for time of cache.
ElementDataCache(double time, std::string quantity_name, CacheData data)
Constructor.
std::string quantity_name_
name of quantity stored in cache
bool is_actual(double time, std::string quantity_name)
Check if cache stored actual data.
ElementDataCacheBase()
Constructor.
std::string get_quantity_name()
Getter for quantity name of cache.