22 #ifndef INCLUDED_TypeKeyedMap_h_GUID_29C6B905_4493_43AF_A811_71589CFD6FBC 23 #define INCLUDED_TypeKeyedMap_h_GUID_29C6B905_4493_43AF_A811_71589CFD6FBC 48 template <
typename KeyList,
typename ValueType>
54 using key_types = KeyList;
55 using value_type = ValueType;
58 template <
typename,
typename>
60 using container_type = std::array<value_type, size_constant::value>;
62 container_type &nested_container() {
return container_; }
64 container_type
const &nested_container()
const {
return container_; }
67 container_type container_;
71 namespace typekeyed_detail {
72 template <
typename KeyList,
typename ValueType,
typename Key>
74 using type = ValueType;
81 #endif // INCLUDED_TypeKeyedMap_h_GUID_29C6B905_4493_43AF_A811_71589CFD6FBC
Class with static members performing the actual access.
Definition: TypeKeyed.h:102
CRTP base for type-keyed data types, providing a unified interface (compile-time polymorphism) and sh...
Definition: TypeKeyed.h:37
The main namespace for all C++ elements of the framework, internal and external.
Definition: namespace_osvr.dox:3
traits class that MUST be specialized for each type-keyed container: should contain a using type = de...
Definition: TypeKeyed.h:44
A class that uses types as an index into a container with uniform-typed contents, somewhat like a map...
Definition: TypeKeyedMap.h:49