STLdb

PrevUpHomeNext

Class template container_proxy<ManagedRegionType, concurrent::trans_map< K, V, Pred, Allocator, mutex_family, picket_lock_size >>

stldb::container_proxy<ManagedRegionType, concurrent::trans_map< K, V, Pred, Allocator, mutex_family, picket_lock_size >>

Synopsis

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

template<typename ManagedRegionType, typename K, typename V, typename Pred, 
         typename Allocator, typename mutex_family, int picket_lock_size> 
class container_proxy<ManagedRegionType, concurrent::trans_map< K, V, Pred, Allocator, mutex_family, picket_lock_size >> :
  public stldb::container_proxy_base< ManagedRegionType >
{
public:
  // types
  typedef concurrent::trans_map< K, V, Pred, Allocator, mutex_family, picket_lock_size > container_type;      
  typedef container_type::pending_change_map_t                                           pending_change_map_t;
  typedef mutex_family::mutex_type                                                       mutex_type;          
  typedef container_proxy_base< ManagedRegionType >                                      base;                
  typedef Allocator                                                                      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 trans_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