Nektar++
|
#include <NekManager.hpp>
Public Types | |
typedef std::shared_ptr< ValueT > | ValueType |
typedef std::function< ValueType(const KeyType &key)> | CreateFuncType |
typedef std::map< KeyType, ValueType > | ValueContainer |
typedef std::shared_ptr< ValueContainer > | ValueContainerShPtr |
typedef std::map< KeyType, CreateFuncType, opLessCreator > | CreateFuncContainer |
typedef std::map< std::string, std::shared_ptr< ValueContainer > > | ValueContainerPool |
typedef std::shared_ptr< bool > | BoolSharedPtr |
typedef std::map< std::string, BoolSharedPtr > | FlagContainerPool |
Public Member Functions | |
NekManager (std::string whichPool="") | |
NekManager (CreateFuncType f, std::string whichPool="") | |
~NekManager () | |
bool | RegisterCreator (const KeyType &key, const CreateFuncType &createFunc) |
Register the given function and associate it with the key. The return value is just to facilitate calling statically. More... | |
bool | RegisterGlobalCreator (const CreateFuncType &createFunc) |
Register the Global Create Function. The return value is just to facilitate calling statically. More... | |
bool | AlreadyCreated (const KeyType &key) |
ValueType | operator[] (const KeyType &key) |
void | DeleteObject (const KeyType &key) |
size_t | PoolCount (std::string whichPool) |
Static Public Member Functions | |
static void | ClearManager (std::string whichPool="") |
static bool | PoolCreated (std::string whichPool) |
static void | EnableManagement (std::string whichPool="") |
static void | DisableManagement (std::string whichPool="") |
Private Member Functions | |
NekManager< KeyType, ValueType, opLessCreator > & | operator= (const NekManager< KeyType, ValueType, opLessCreator > &rhs) |
NekManager (const NekManager< KeyType, ValueType, opLessCreator > &rhs) | |
Private Attributes | |
ValueContainerShPtr | m_values |
BoolSharedPtr | m_managementEnabled |
CreateFuncType | m_globalCreateFunc |
CreateFuncContainer | m_keySpecificCreateFuncs |
Static Private Attributes | |
static ValueContainerPool | m_ValueContainerPool |
static FlagContainerPool | m_managementEnabledContainerPool |
Definition at line 69 of file NekManager.hpp.
typedef std::shared_ptr<bool> Nektar::LibUtilities::NekManager< KeyType, ValueT, opLessCreator >::BoolSharedPtr |
Definition at line 80 of file NekManager.hpp.
typedef std::map<KeyType, CreateFuncType, opLessCreator> Nektar::LibUtilities::NekManager< KeyType, ValueT, opLessCreator >::CreateFuncContainer |
Definition at line 77 of file NekManager.hpp.
typedef std::function<ValueType(const KeyType &key)> Nektar::LibUtilities::NekManager< KeyType, ValueT, opLessCreator >::CreateFuncType |
Definition at line 73 of file NekManager.hpp.
typedef std::map<std::string, BoolSharedPtr> Nektar::LibUtilities::NekManager< KeyType, ValueT, opLessCreator >::FlagContainerPool |
Definition at line 81 of file NekManager.hpp.
typedef std::map<KeyType, ValueType> Nektar::LibUtilities::NekManager< KeyType, ValueT, opLessCreator >::ValueContainer |
Definition at line 74 of file NekManager.hpp.
typedef std::map<std::string, std::shared_ptr<ValueContainer> > Nektar::LibUtilities::NekManager< KeyType, ValueT, opLessCreator >::ValueContainerPool |
Definition at line 79 of file NekManager.hpp.
typedef std::shared_ptr<ValueContainer> Nektar::LibUtilities::NekManager< KeyType, ValueT, opLessCreator >::ValueContainerShPtr |
Definition at line 75 of file NekManager.hpp.
typedef std::shared_ptr<ValueT> Nektar::LibUtilities::NekManager< KeyType, ValueT, opLessCreator >::ValueType |
Definition at line 72 of file NekManager.hpp.
|
inline |
Definition at line 83 of file NekManager.hpp.
References Nektar::LibUtilities::NekManager< KeyType, ValueT, opLessCreator >::m_managementEnabled, Nektar::LibUtilities::NekManager< KeyType, ValueT, opLessCreator >::m_managementEnabledContainerPool, Nektar::LibUtilities::NekManager< KeyType, ValueT, opLessCreator >::m_ValueContainerPool, and Nektar::LibUtilities::NekManager< KeyType, ValueT, opLessCreator >::m_values.
|
inlineexplicit |
Definition at line 117 of file NekManager.hpp.
References Nektar::LibUtilities::NekManager< KeyType, ValueT, opLessCreator >::m_managementEnabled, Nektar::LibUtilities::NekManager< KeyType, ValueT, opLessCreator >::m_managementEnabledContainerPool, Nektar::LibUtilities::NekManager< KeyType, ValueT, opLessCreator >::m_ValueContainerPool, and Nektar::LibUtilities::NekManager< KeyType, ValueT, opLessCreator >::m_values.
|
inline |
Definition at line 164 of file NekManager.hpp.
|
private |
|
inline |
Definition at line 186 of file NekManager.hpp.
References Nektar::LibUtilities::NekManager< KeyType, ValueT, opLessCreator >::m_values.
|
inlinestatic |
Definition at line 248 of file NekManager.hpp.
References ASSERTL1, and Nektar::LibUtilities::NekManager< KeyType, ValueT, opLessCreator >::m_ValueContainerPool.
|
inline |
Definition at line 238 of file NekManager.hpp.
References Nektar::LibUtilities::NekManager< KeyType, ValueT, opLessCreator >::m_values.
|
inlinestatic |
Definition at line 313 of file NekManager.hpp.
References Nektar::LibUtilities::NekManager< KeyType, ValueT, opLessCreator >::m_managementEnabledContainerPool.
|
inlinestatic |
Definition at line 292 of file NekManager.hpp.
References Nektar::LibUtilities::NekManager< KeyType, ValueT, opLessCreator >::m_managementEnabledContainerPool.
|
private |
|
inline |
Definition at line 198 of file NekManager.hpp.
References Nektar::ErrorUtil::efatal, Nektar::LibUtilities::NekManager< KeyType, ValueT, opLessCreator >::m_globalCreateFunc, Nektar::LibUtilities::NekManager< KeyType, ValueT, opLessCreator >::m_keySpecificCreateFuncs, Nektar::LibUtilities::NekManager< KeyType, ValueT, opLessCreator >::m_managementEnabled, Nektar::LibUtilities::NekManager< KeyType, ValueT, opLessCreator >::m_values, and NEKERROR.
|
inline |
Definition at line 284 of file NekManager.hpp.
References ASSERTL1, and Nektar::LibUtilities::NekManager< KeyType, ValueT, opLessCreator >::m_ValueContainerPool.
|
inlinestatic |
Definition at line 273 of file NekManager.hpp.
References Nektar::LibUtilities::NekManager< KeyType, ValueT, opLessCreator >::m_ValueContainerPool.
|
inline |
Register the given function and associate it with the key. The return value is just to facilitate calling statically.
Definition at line 170 of file NekManager.hpp.
References Nektar::LibUtilities::NekManager< KeyType, ValueT, opLessCreator >::m_keySpecificCreateFuncs.
|
inline |
Register the Global Create Function. The return value is just to facilitate calling statically.
Definition at line 179 of file NekManager.hpp.
References Nektar::LibUtilities::NekManager< KeyType, ValueT, opLessCreator >::m_globalCreateFunc.
|
private |
Definition at line 342 of file NekManager.hpp.
Referenced by Nektar::LibUtilities::NekManager< KeyType, ValueT, opLessCreator >::operator[](), and Nektar::LibUtilities::NekManager< KeyType, ValueT, opLessCreator >::RegisterGlobalCreator().
|
private |
Definition at line 343 of file NekManager.hpp.
Referenced by Nektar::LibUtilities::NekManager< KeyType, ValueT, opLessCreator >::operator[](), and Nektar::LibUtilities::NekManager< KeyType, ValueT, opLessCreator >::RegisterCreator().
|
private |
Definition at line 339 of file NekManager.hpp.
Referenced by Nektar::LibUtilities::NekManager< KeyType, ValueT, opLessCreator >::NekManager(), and Nektar::LibUtilities::NekManager< KeyType, ValueT, opLessCreator >::operator[]().
|
staticprivate |
Definition at line 341 of file NekManager.hpp.
Referenced by Nektar::LibUtilities::NekManager< KeyType, ValueT, opLessCreator >::DisableManagement(), Nektar::LibUtilities::NekManager< KeyType, ValueT, opLessCreator >::EnableManagement(), and Nektar::LibUtilities::NekManager< KeyType, ValueT, opLessCreator >::NekManager().
|
staticprivate |
Definition at line 340 of file NekManager.hpp.
Referenced by Nektar::LibUtilities::NekManager< KeyType, ValueT, opLessCreator >::ClearManager(), Nektar::LibUtilities::NekManager< KeyType, ValueT, opLessCreator >::NekManager(), Nektar::LibUtilities::NekManager< KeyType, ValueT, opLessCreator >::PoolCount(), and Nektar::LibUtilities::NekManager< KeyType, ValueT, opLessCreator >::PoolCreated().
|
private |
Definition at line 338 of file NekManager.hpp.
Referenced by Nektar::LibUtilities::NekManager< KeyType, ValueT, opLessCreator >::AlreadyCreated(), Nektar::LibUtilities::NekManager< KeyType, ValueT, opLessCreator >::DeleteObject(), Nektar::LibUtilities::NekManager< KeyType, ValueT, opLessCreator >::NekManager(), and Nektar::LibUtilities::NekManager< KeyType, ValueT, opLessCreator >::operator[]().