18 #ifndef ELEMENT_DATA_CACHE_HH_ 19 #define ELEMENT_DATA_CACHE_HH_ 30 :
time_(-
std::numeric_limits<double>::infinity()),
42 bool is_actual(
double time, std::string quantity_name) {
69 OLD_ASSERT(component_idx < data_.size(),
"Index of component is out of range.\n");
70 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.