1 #ifndef ENTITY_DATA_BIN_CLASS
2 #define ENTITY_DATA_BIN_CLASS
28 class entity_item_hash;
32 class octopus_request_id;
108 entity_item_hash *_table;
118 int scramble_counter();
Provides a dynamically resizable ASCII character string.
Stores a set of infotons grouped by the entity that owns them.
entity_data_bin(int max_bytes_per_entity)
allows each entity in the bin to have "max_bytes_per_entity" bytes stored.
virtual ~entity_data_bin()
DEFINE_CLASS_NAME("entity_data_bin")
int max_bytes_per_entity() const
bool add_item(infoton *to_add, const octopus_request_id &id)
infoton * acquire_for_any(octopus_request_id &id)
infoton * acquire_for_identifier(const octopus_request_id &id)
void clean_out_deadwood(int decay_interval=4 *basis::MINUTE_ms)
basis::astring text_form() const
bool get_sizes(const octopus_entity &id, int &items, int &bytes)
friend class monk_the_detective
void max_bytes_per_entity(int max_bytes_per)
infoton * acquire_for_entity(const octopus_entity &requester, octopus_request_id &id)
a list of pending requests and who made them.
An infoton is an individual request parcel with accompanying information.
Provides a way of identifying users of an octopus object.
Identifies requests made on an octopus by users.
Constants and objects used throughout HOOPLE.
const int MINUTE_ms
Number of milliseconds in a minute.