Cache

class Cache

Public Functions

void set_load(const bool store = false)

Store numbers if true (default: false). Either way, any previously stored values are reset, and unloading is disabled.

bool is_loading() const

Return true if loading.

void set_unload(const bool unload = false)

Unload numbers if true (default: false). Either way, loading is disabled.

bool is_unloading() const

Return true if unloading.

void set_unload(const Cache &cache)

Preset numbers to those stored by another Cache.

bool is_unloading(double *value)

Return true if unloading into value.

void load(const double value)

Attempt to load value into cache.

void serialize(std::ostream &ostr) const

Serialize.

Cache(std::istream &istr)

Deserialize.