LocalGuidance
A library that generates velocity references to follow a path.
|
Defines the compile time keys (ctk) of Enum_ type as a variadic template. More...
#include <CompileTimeKeys.hpp>
Public Types | |
using | Enum = Enum_ |
Expose Enum. More... | |
Static Public Member Functions | |
static constexpr const std_utils::KeyArray< Enum_, 0 > | getKeysArray () |
Get runtime key array. More... | |
static constexpr int | mapEnumToId (const Enum_ e) |
Default implementation of mapEnumToId(). More... | |
static constexpr const char * | mapEnumToName (const Enum_ e) |
Default implementation of mapEnumToName(). More... | |
static constexpr Enum_ | mapIdToEnum (const int id) |
Default implementation of mapIdToEnum(). More... | |
static constexpr const char * | mapIdToName (const int id) |
Default implementation of mapIdToName(). More... | |
static constexpr Enum_ | mapNameToEnum (const char *name) |
Default implementation of mapNameToEnum(). More... | |
static constexpr int | mapNameToId (const char *name) |
Default implementation of mapNameToId(). More... | |
static constexpr bool | containsEnum (const Enum_) |
Default implementation of containsEnum(). More... | |
static constexpr bool | containsName (const char *) |
Default implementation of containsName(). More... | |
static constexpr bool | containsId (const int) |
Default implementation of containsId(). More... | |
static constexpr std::size_t | size () |
Default implementation of size(). More... | |
Static Private Member Functions | |
static constexpr bool | uniqueEnum (const Enum_) |
Default implementation of the uniqueEnum(). More... | |
static constexpr bool | uniqueName (const char *) |
Default implementation of the uniqueName(). More... | |
static constexpr bool | uniqueId (const int) |
Default implementation of the uniqueId(). More... | |
Friends | |
template<typename... Any> | |
class | CompileTimeKeys |
Allow private access on all template specializations of CompileTimeKeys. More... | |
Defines the compile time keys (ctk) of Enum_ type as a variadic template.
Enum_ | Defines the type of enum of the ctk. |
REST_ | parameter pack of the ctk. |
using std_utils::CompileTimeKeys< Enum_, REST_... >::Enum = Enum_ |
Expose Enum.
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
Default implementation of containsName().
name | name at which ctk is evaluated. |
|
inlinestatic |
Get runtime key array.
|
inlinestatic |
Default implementation of mapEnumToId().
e | enum for which id is queried. |
|
inlinestatic |
Default implementation of mapEnumToName().
e | enum for which name is queried. |
|
inlinestatic |
Default implementation of mapIdToEnum().
id | id for which enum is queried. |
|
inlinestatic |
Default implementation of mapIdToName().
id | id for which name is queried. |
|
inlinestatic |
Default implementation of mapNameToEnum().
name | name for which enum is queried. |
|
inlinestatic |
Default implementation of mapNameToId().
name | name for which id is queried. |
|
inlinestatic |
Default implementation of size().
|
inlinestaticprivate |
Default implementation of the uniqueEnum().
e | enum which is tested for uniqueness. |
|
inlinestaticprivate |
Default implementation of the uniqueId().
id | id which is tested for uniqueness. |
|
inlinestaticprivate |
Default implementation of the uniqueName().
name | name which is tested for uniqueness. |
|
friend |
Allow private access on all template specializations of CompileTimeKeys.