|
dune-fem 2.12-git
|
Loading...
Searching...
No Matches
singletonlist.hh
Go to the documentation of this file.
95 -> std::enable_if_t< std::is_same< decltype( FactoryType::createObject( key, std::forward< Args >( args )... ) ), ObjectType * >::value, ObjectType & >
109 DUNE_THROW(SingleThreadModeError, "SingletonList::getObject: only call in single thread mode!");
128 DUNE_THROW(SingleThreadModeError, "SingletonList::removeObject: only call in single thread mode!");
iterator end()
bool empty() const
iterator begin()
virtual void operator()()=0
#define DUNE_THROW(E,...)
static DUNE_EXPORT T & instance()
Exception thrown when a code segment that is supposed to be only accessed in single thread mode is ac...
Definition mpimanager.hh:43
Definition singletonlist.hh:25
static void deleteObject(Object *object)
Definition singletonlist.hh:31
static Object * createObject(const Key &key)
Definition singletonlist.hh:26
static void removeObject(const ObjectType &object)
Definition singletonlist.hh:123
static ListType & singletonList()
Definition singletonlist.hh:81
static ValueType getObjFromList(const KeyType &key)
Definition singletonlist.hh:146
static void eraseItem(ListIteratorType &it)
Definition singletonlist.hh:160
SingletonList()=delete
std ::pair< KeyType, ValueType > ListObjType
Definition singletonlist.hh:62
std ::pair< ObjectType *, unsigned int * > ValueType
Definition singletonlist.hh:61
SingletonList(const ThisType &)=delete
static auto getObject(const KeyType &key, Args &&... args) -> std::enable_if_t< std::is_same< decltype(FactoryType::createObject(key, std::forward< Args >(args)...)), ObjectType * >::value, ObjectType & >
Definition singletonlist.hh:94
Definition singletonlist.hh:65
Definition singletonlist.hh:185
SingletonListStorage()
Definition singletonlist.hh:192
ListType singletonList_
Definition singletonlist.hh:189
void deleteItem(const ListIteratorType &it)
Definition singletonlist.hh:207
~SingletonListStorage()
Definition singletonlist.hh:196
ListType & singletonList()
Definition singletonlist.hh:202
T forward(T... args)
Legal Statements / Impressum | Hosted by TU Dresden & Uni Heidelberg | Generated by
1.9.8