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... | |
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 68 of file NekManager.hpp.
typedef std::shared_ptr<bool> Nektar::LibUtilities::NekManager< KeyType, ValueT, opLessCreator >::BoolSharedPtr |
Definition at line 79 of file NekManager.hpp.
typedef std::map<KeyType, CreateFuncType, opLessCreator> Nektar::LibUtilities::NekManager< KeyType, ValueT, opLessCreator >::CreateFuncContainer |
Definition at line 76 of file NekManager.hpp.
typedef std::function<ValueType(const KeyType &key)> Nektar::LibUtilities::NekManager< KeyType, ValueT, opLessCreator >::CreateFuncType |
Definition at line 72 of file NekManager.hpp.
typedef std::map<std::string, BoolSharedPtr> Nektar::LibUtilities::NekManager< KeyType, ValueT, opLessCreator >::FlagContainerPool |
Definition at line 80 of file NekManager.hpp.
typedef std::map<KeyType, ValueType> Nektar::LibUtilities::NekManager< KeyType, ValueT, opLessCreator >::ValueContainer |
Definition at line 73 of file NekManager.hpp.
typedef std::map<std::string, std::shared_ptr<ValueContainer> > Nektar::LibUtilities::NekManager< KeyType, ValueT, opLessCreator >::ValueContainerPool |
Definition at line 78 of file NekManager.hpp.
typedef std::shared_ptr<ValueContainer> Nektar::LibUtilities::NekManager< KeyType, ValueT, opLessCreator >::ValueContainerShPtr |
Definition at line 74 of file NekManager.hpp.
typedef std::shared_ptr<ValueT> Nektar::LibUtilities::NekManager< KeyType, ValueT, opLessCreator >::ValueType |
Definition at line 71 of file NekManager.hpp.
|
inline |
Definition at line 82 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 115 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 162 of file NekManager.hpp.
|
private |
|
inlinestatic |
Definition at line 232 of file NekManager.hpp.
References ASSERTL1, and Nektar::LibUtilities::NekManager< KeyType, ValueT, opLessCreator >::m_ValueContainerPool.
|
inline |
Definition at line 222 of file NekManager.hpp.
References Nektar::LibUtilities::NekManager< KeyType, ValueT, opLessCreator >::m_values.
|
inlinestatic |
Definition at line 289 of file NekManager.hpp.
References Nektar::LibUtilities::NekManager< KeyType, ValueT, opLessCreator >::m_managementEnabledContainerPool.
|
inlinestatic |
Definition at line 268 of file NekManager.hpp.
References Nektar::LibUtilities::NekManager< KeyType, ValueT, opLessCreator >::m_managementEnabledContainerPool.
|
private |
|
inline |
Definition at line 184 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 260 of file NekManager.hpp.
References ASSERTL1, and Nektar::LibUtilities::NekManager< KeyType, ValueT, opLessCreator >::m_ValueContainerPool.
|
inlinestatic |
Definition at line 254 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 168 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 177 of file NekManager.hpp.
References Nektar::LibUtilities::NekManager< KeyType, ValueT, opLessCreator >::m_globalCreateFunc.
|
private |
Definition at line 318 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 319 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 315 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 317 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 316 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 314 of file NekManager.hpp.
Referenced by Nektar::LibUtilities::NekManager< KeyType, ValueT, opLessCreator >::DeleteObject(), Nektar::LibUtilities::NekManager< KeyType, ValueT, opLessCreator >::NekManager(), and Nektar::LibUtilities::NekManager< KeyType, ValueT, opLessCreator >::operator[]().