SyTen

◆ cache()

template<typename Type >
bool syten::Cached< Type >::cache ( ) const
inline

Caches the contained object into the file.

Returns
false if the object was already cached, true if it was not cached before

References syten::Cached< Type >::data, syten::Caching::do_cache, std::string::empty(), syten::Cached< Type >::file, syten::Cached< Type >::mtex, syten::Caching::threshold, and syten::MemoryUsage::totalSize().

Referenced by syten::Cached< Type >::load(), syten::Cached< Type >::maybeCache(), and syten::Cached< Type >::save().

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