STLdb

PrevUpHomeNext

Class template container_proxy<ManagedRegionType, std::map< K, V, Pred, Alloc >>

stldb::container_proxy<ManagedRegionType, std::map< K, V, Pred, Alloc >>

Synopsis

// In header: </Users/bobw/workspace/stldb_lib/stldb/container_proxy.h>

template<typename ManagedRegionType, typename K, typename V, typename Pred, 
         typename Alloc> 
class container_proxy<ManagedRegionType, std::map< K, V, Pred, Alloc >> :
  public stldb::container_proxy_base< ManagedRegionType >
{
public:
  // types
  typedef std::map< K, V, Pred, Alloc >             container_type;
  typedef container_proxy_base< ManagedRegionType > base;          
  typedef container_type::allocator_type            allocator_type;

  // public member functions
   container_proxy(const char *) ;
   ~container_proxy() ;
  void * find_or_construct_container(Database< ManagedRegionType > &) ;
  void recoverOp(int, boost_iarchive_t &) ;
  void initializeCommit(Transaction &) ;
  void completeCommit(Transaction &) ;
  void initializeRollback(Transaction &) ;
  void completeRollback(Transaction &) ;
  void save_checkpoint(std::ostream &) ;
  void load_checkpoint(std::istream &) ;
};

Description

Specialization of container_proxy for map, to deal with map's 2 arg constructor.

container_proxy public member functions

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

PrevUpHomeNext