STLdb

PrevUpHomeNext

Class template container_proxy_base

stldb::container_proxy_base

Synopsis

// 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 &) ;
};

Description

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 construct/copy/destruct

  1. container_proxy_base(const char * name);
  2. ~container_proxy_base();

container_proxy_base public member functions

  1. void * find_or_construct_container(Database< ManagedRegionType > & db) ;
  2. void recoverOp(int opcode, boost_iarchive_t & stream) ;
  3. std::string getName() ;
  4. void initializeCommit(Transaction & trans) ;
  5. void completeCommit(Transaction & trans) ;
  6. void initializeRollback(Transaction & trans) ;
  7. void completeRollback(Transaction & trans) ;
  8. void save_checkpoint(std::ostream & out) ;
  9. void load_checkpoint(std::istream & in) ;

PrevUpHomeNext