stldb::container_proxy_base
// In header: </Users/bobw/workspace/stldb_lib/stldb/container_proxy.h> template<typename ManagedRegionType> class container_proxy_base { public: // construct/copy/destruct container_proxy_base(const char *); ~container_proxy_base(); // public member functions void * find_or_construct_container(Database< ManagedRegionType > &) ; void recoverOp(int, boost_iarchive_t &) ; std::string getName() ; void initializeCommit(Transaction &) ; void completeCommit(Transaction &) ; void initializeRollback(Transaction &) ; void completeRollback(Transaction &) ; void save_checkpoint(std::ostream &) ; void load_checkpoint(std::istream &) ; };
Container_proxy_base is the interface between the Database and the contaners within it. It permits some generic functionality which depends on the run-time polymorphism provided by this class. Every container passes a proxy to the database at the time the database constructor is called. The database then uses the proxy to create, load, recover, etc. the containers within it.
container_proxy_base
public member functionsvoid * find_or_construct_container(Database< ManagedRegionType > & db) ;
void recoverOp(int opcode, boost_iarchive_t & stream) ;
std::string getName() ;
void initializeCommit(Transaction & trans) ;
void completeCommit(Transaction & trans) ;
void initializeRollback(Transaction & trans) ;
void completeRollback(Transaction & trans) ;
void save_checkpoint(std::ostream & out) ;
void load_checkpoint(std::istream & in) ;