![]() |
|
Creates an entries offered by a bank and destroys them upon exit. More...
#include <Bank.h>

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 | |
| LocalCloner (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_t & | bank |
Protected Attributes | |
| book_t | book |
| index_t | idx |
Creates an entries offered by a bank and destroys them upon exit.
Creating entries using a static Cloner provided by a drain::Bank. The entries are basically global. However, they become destroyed upon desctruction of the LocalCloner instance that created (requested) them. Hence, the entries share the same scope with the LocalCloner.
1.9.8