SyTen

◆ cache()

template<typename Type >
void syten::AsyncCached< Type >::cache ( ) const
inline

Caches the object to disk and deletes the in-memory copy.

References syten::AsyncCached< Type >::alloc_size_buffer, syten::MemoryUsage::allocSize(), syten::AsyncCached< Type >::data, syten::AsyncCached< Type >::data_is_loaded, syten::Caching::do_cache, syten::AsyncCached< Type >::file, syten::AsyncCached< Type >::file_is_valid, if_constexpr, syten::AsyncCached< Type >::log(), syten::AsyncCached< Type >::mtex, syten::Caching::threshold, and syten::MemoryUsage::totalSize().

Referenced by syten::T3N::T3NTensor::cache(), syten::AsyncCached< Type >::cache_async(), syten::AsyncCached< Type >::maybe_cache(), and syten::AsyncCached< Type >::save().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: