|
dune-fem 2.12-git
|
Loading...
Searching...
No Matches
singleton.hh
Go to the documentation of this file.
35 //typedef std::pair< std::unordered_map< KeyType, std::shared_ptr< Item > >, std::vector<PointerType> > StorageType;
38 public std::pair< std::unordered_map< KeyType, std::shared_ptr< Item > >, std::vector<PointerType> >
41 std::pair< std::unordered_map< KeyType, std::shared_ptr< Item > >, std::vector<PointerType> > (),
59 std::for_each(storage->second.rbegin(), storage->second.rend(), [](PointerType& item) { item.reset(); });
163 storage.second.emplace_back( PointerType(new ItemWrapperType(std::forward< Args >( args )...) ) );
#define DUNE_EXPORT
virtual void operator()()=0
STL namespace.
static DUNE_EXPORT Object & instance(Args &&... args)
return singleton instance of given Object type.
Definition singleton.hh:123
static DUNE_EXPORT Object & getObject(Args &&... args)
return singleton instance of given Object type.
Definition singleton.hh:138
static const bool placeStaticVariableInline
Definition singleton.hh:133
T for_each(T... args)
T forward(T... args)
Legal Statements / Impressum | Hosted by TU Dresden & Uni Heidelberg | Generated by
1.9.8