3#ifndef AWKWARD_ARRAYCACHE_H_
4#define AWKWARD_ARRAYCACHE_H_
25 static const std::string
30 get(
const std::string& key)
const = 0;
40 virtual const std::string
42 const std::string&
pre,
43 const std::string&
post)
const = 0;
Abstract superclass of cache for VirtualArray, defining the interface.
Definition ArrayCache.h:17
virtual ContentPtr get(const std::string &key) const =0
Attempts to get an array; may be nullptr if not available.
static const std::string newkey()
Returns a new key that is globally unique in the current process.
virtual bool is_broken() const =0
Returns true if the cache cannot be used for any reason.
virtual const std::string tostring_part(const std::string &indent, const std::string &pre, const std::string &post) const =0
virtual void set(const std::string &key, const ContentPtr &value)=0
Writes or overwrites an array at key.
Filters, rearranges, and/or duplicates items in its content through an index, which has the same effe...
Definition IndexedArray.h:204
#define LIBAWKWARD_EXPORT_SYMBOL
Definition common.h:45
Definition BitMaskedArray.h:15
std::shared_ptr< ArrayCache > ArrayCachePtr
Definition Content.h:21
std::shared_ptr< Content > ContentPtr
Definition Content.h:15