Public Types | Public Member Functions | Public Attributes | Protected Attributes | List of all members
UniCloner< B > Class Template Reference

Creates an entry of desired type and destroys it upon exit. More...

#include <Bank.h>

Collaboration diagram for UniCloner< B >:
Collaboration graph
[legend]

Public Types

typedef Bank< B > bank_t
 
typedef bank_t::cloner_t cloner_t
 
typedef cloner_t::entry_t entry_t
 
typedef cloner_t::index_t index_t
 
typedef std::map< cloner_t *, std::set< index_t > > book_t
 

Public Member Functions

 UniCloner (const bank_t &bank)
 
B & getCloned (const typename bank_t::key_t &key)
 
template<class T >
B & getCloned ()
 
index_t getIndex () const
 

Public Attributes

const bank_tbank
 

Protected Attributes

book_t book
 
index_t idx
 

Detailed Description

template<class B>
class drain::UniCloner< B >

Creates an entry of desired type and destroys it upon exit.


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