Loading...
Searching...
No Matches
Public Types | Public Member Functions | Public Attributes | Protected Attributes | List of all members
LocalCloner< B > Class Template Reference

Creates an entries offered by a bank and destroys them upon exit. More...

#include <Bank.h>

Collaboration diagram for LocalCloner< 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

 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_tbank
 

Protected Attributes

book_t book
 
index_t idx
 

Detailed Description

template<class B>
class drain::LocalCloner< B >

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.


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