feisty meow concerns codebase  2.140
synchronic::list_synchronizer Class Reference

#include <list_synchronizer.h>

Inheritance diagram for synchronic::list_synchronizer:
Collaboration diagram for synchronic::list_synchronizer:

Public Member Functions

 list_synchronizer ()
 
 ~list_synchronizer ()
 
basis::outcome add_list (list_manager *to_add)
 
basis::outcome zap_list (const structures::string_array &list_name)
 
void clean (int older_than)
 
bool update (const structures::string_array &object_id)
 
- Public Member Functions inherited from octopi::octopus
 octopus (const basis::astring &name, int max_size_per_entity)
 constructs an octopus named "name". More...
 
virtual ~octopus ()
 
 DEFINE_CLASS_NAME ("octopus")
 
const basis::astringname () const
 returns the name that the octopus was constructed with. More...
 
basis::outcome add_tentacle (tentacle *to_add, bool filter=false)
 hooks a tentacle in to provide processing of one type of infoton. More...
 
basis::outcome remove_tentacle (const structures::string_array &group_name, tentacle *&free_me)
 removes the tentacle listed for the "group_name", if any. More...
 
basis::outcome zap_tentacle (const structures::string_array &group_name)
 similar to remove_tentacle(), but destroys the tentacle. More...
 
octopus_entity issue_identity ()
 creates an entity identifier that is unique for this octopus. More...
 
void expunge (const octopus_entity &to_remove)
 invokes every tentacle's expunge() method on the id "to_remove". More...
 
entity_data_binresponses ()
 allows external access to our set of results. More...
 
basis::outcome restore (const structures::string_array &classifier, basis::byte_array &packed_form, infoton *&reformed)
 regenerates a packed infoton given its classifier. More...
 
basis::outcome evaluate (infoton *request, const octopus_request_id &item_id, bool now=false)
 tries to process the "request" using the current set of tentacles. More...
 
infotonacquire_result (const octopus_entity &requester, octopus_request_id &original_id)
 acquires responses to previous requests if there are any waiting. More...
 
infotonacquire_specific_result (const octopus_request_id &original_id)
 supports seeking the result for a specific request. More...
 
tentaclelock_tentacle (const structures::string_array &tentacle_name)
 locates the tentacle with the "tentacle_name" and returns it. More...
 
void unlock_tentacle (tentacle *to_unlock)
 unlocks the octopus when given a previously locked tentacle. More...
 
void lock_tentacles ()
 locks the tentacle list for use with locked_get_tentacle. More...
 
int locked_tentacle_count ()
 number of tentacles. More...
 
tentaclelocked_get_tentacle (int indy)
 access indy'th tentacle. More...
 
void unlock_tentacles ()
 unlocks the list. More...
 
void periodic_cleaning ()
 flushes any abandoned data from the response bin. More...
 

Detailed Description

Definition at line 29 of file list_synchronizer.h.

Constructor & Destructor Documentation

◆ list_synchronizer()

synchronic::list_synchronizer::list_synchronizer ( )

Definition at line 30 of file list_synchronizer.cpp.

◆ ~list_synchronizer()

synchronic::list_synchronizer::~list_synchronizer ( )

Definition at line 35 of file list_synchronizer.cpp.

Member Function Documentation

◆ add_list()

outcome synchronic::list_synchronizer::add_list ( list_manager to_add)

Definition at line 39 of file list_synchronizer.cpp.

References octopi::octopus::add_tentacle().

◆ clean()

◆ update()

◆ zap_list()

outcome synchronic::list_synchronizer::zap_list ( const structures::string_array list_name)

Definition at line 42 of file list_synchronizer.cpp.

References octopi::octopus::zap_tentacle().


The documentation for this class was generated from the following files: