|
OOFEM 3.0
|
#include <paramkey.h>
Public Types | |
| using | IndexType = size_t |
Public Member Functions | |
| ParamKey (std::string name) | |
| IndexType | getIndex () const |
| const std::string & | getName () const |
| const char * | getNameCStr () const |
Static Public Member Functions | |
| static std::string | getDebugName (IndexType index) |
Static Private Member Functions | |
| static IndexType | generateUniqueIndex () |
| static void | registerDebugName (IndexType index, const std::string &name) |
Private Attributes | |
| std::string | name_ |
| IndexType | index_ |
Static Private Attributes | |
| static std::unordered_map< IndexType, std::string > | debugNames_ |
| static std::shared_mutex | debugMutex_ |
Friends | |
| std::ostream & | operator<< (std::ostream &os, const ParamKey &key) |
ParamKey class is used to create unique keys for parameters in a thread-safe manner. It generates a unique index for each key and allows for debug name registration.
Definition at line 51 of file paramkey.h.
| using oofem::ParamKey::IndexType = size_t |
Definition at line 53 of file paramkey.h.
|
inlineexplicit |
Definition at line 55 of file paramkey.h.
References generateUniqueIndex(), index_, name_, and registerDebugName().
Referenced by operator<<.
|
inlinestaticprivate |
Definition at line 78 of file paramkey.h.
Referenced by ParamKey().
|
inlinestatic |
Definition at line 64 of file paramkey.h.
References debugMutex_, and debugNames_.
|
inline |
Definition at line 60 of file paramkey.h.
References index_.
|
inline |
Definition at line 61 of file paramkey.h.
References name_.
|
inline |
Definition at line 62 of file paramkey.h.
References name_.
|
inlinestaticprivate |
Definition at line 83 of file paramkey.h.
References debugMutex_, and debugNames_.
Referenced by ParamKey().
|
friend |
Definition at line 70 of file paramkey.h.
References index_, name_, and ParamKey().
|
inlinestaticprivate |
Definition at line 89 of file paramkey.h.
Referenced by getDebugName(), and registerDebugName().
|
inlinestaticprivate |
Definition at line 88 of file paramkey.h.
Referenced by getDebugName(), and registerDebugName().
|
private |
Definition at line 76 of file paramkey.h.
Referenced by getIndex(), operator<<, and ParamKey().
|
private |
Definition at line 75 of file paramkey.h.
Referenced by getName(), getNameCStr(), operator<<, and ParamKey().