![]() |
OpenLB 1.8.1
|
(Time) efficient mapping between TYPEs and VALUEs More...
#include <typeIndexedContainers.h>
Inheritance diagram for olb::utilities::TypeIndexedMap< VALUE, CONTEXT >:
Collaboration diagram for olb::utilities::TypeIndexedMap< VALUE, CONTEXT >:Public Member Functions | |
| TypeIndexedMap () | |
| template<typename TYPE > | |
| bool | provides () const |
| template<typename TYPE > | |
| std::size_t | index () const |
| template<typename TYPE > | |
| const VALUE & | get () const |
| template<typename TYPE > | |
| VALUE & | get () |
| template<typename TYPE > | |
| void | set (VALUE value) |
(Time) efficient mapping between TYPEs and VALUEs
CONTEXT should be set to the containing type / some one-of identifier to restrict the index space to the types that are actually used in the specific context.
Definition at line 72 of file typeIndexedContainers.h.
|
inline |
Definition at line 81 of file typeIndexedContainers.h.
| VALUE & olb::utilities::TypeIndexedMap< VALUE, CONTEXT >::get | ( | ) |
Definition at line 156 of file typeIndexedContainers.h.
| const VALUE & olb::utilities::TypeIndexedMap< VALUE, CONTEXT >::get | ( | ) | const |
Definition at line 144 of file typeIndexedContainers.h.
| std::size_t olb::utilities::TypeIndexedMap< VALUE, CONTEXT >::index | ( | ) | const |
Definition at line 137 of file typeIndexedContainers.h.
| bool olb::utilities::TypeIndexedMap< VALUE, CONTEXT >::provides | ( | ) | const |
Definition at line 125 of file typeIndexedContainers.h.
| void olb::utilities::TypeIndexedMap< VALUE, CONTEXT >::set | ( | VALUE | value | ) |