SyTen
cached_type.h File Reference

Cached Type. More...

#include <mutex>
#include <iostream>
#include "inc/util/memory_size.h"
#include "inc/util/boost_versioning.h"
#include "inc/util/persistent.h"
+ Include dependency graph for cached_type.h:
+ This graph shows which files directly or indirectly include this file:

Classes

class  syten::Cached< Type >
 Caching/cached type. More...
 
struct  syten::requires_inmemory_rump_during_cache< T >
 Specialise this class template for any types which require special treatment during caching. More...
 

Namespaces

 syten
 Syten namespace.
 
 syten::Caching
 Only contains the Caching::threshold variable.
 

Functions

template<typename Type >
std::ostreamsyten::operator<< (std::ostream &out, Cached< Type > const &c)
 Easy output for Cached<>'s. More...
 

Variables

bool syten::Caching::do_cache {false}
 Runtime variable which is true if caching should generally be used. More...
 
std::size_t syten::Caching::threshold {1024 * 1024}
 Runtime variable holding the size in bytes below which objects will not be cached on disk. More...
 

Detailed Description

Cached Type.