LocalGuidance
A library that generates velocity references to follow a path.
std_utils::ctm_from_subenum< Enum_, SubEnum_, Offset_, Skip_ > Struct Template Reference

Default implementation of combining two map of different key-value types. More...

#include <CompileTimeMap.hpp>

Public Types

using ctsValues = cts_from_sequence_t< Enum_, make_index_sequence_range_t< Offset_, Offset_-Skip_+static_cast< std::size_t >(SubEnum_::SIZE)>>
 
using ctsKeys = cts_from_sequence_t< SubEnum_, make_index_sequence_range_t< Skip_, static_cast< std::size_t >(SubEnum_::SIZE)>>
 
using type = ctm_from_sets_t< SubEnum_, Enum_, ctsKeys, ctsValues >
 

Detailed Description

template<typename Enum_, typename SubEnum_, std::size_t Offset_ = 0, std::size_t Skip_ = 0>
struct std_utils::ctm_from_subenum< Enum_, SubEnum_, Offset_, Skip_ >

Default implementation of combining two map of different key-value types.

Template Parameters
Enum_Enum to map to
SubEnum_Enum from switch to map
Offset_Offset for static casting (offset of SubEnum_ in new enum Enum_)
Skip_Skips Skip_ number of elements at the beginning of SubEnum_

Member Typedef Documentation

template<typename Enum_ , typename SubEnum_ , std::size_t Offset_ = 0, std::size_t Skip_ = 0>
using std_utils::ctm_from_subenum< Enum_, SubEnum_, Offset_, Skip_ >::ctsKeys = cts_from_sequence_t<SubEnum_, make_index_sequence_range_t<Skip_, static_cast<std::size_t>(SubEnum_::SIZE)>>
template<typename Enum_ , typename SubEnum_ , std::size_t Offset_ = 0, std::size_t Skip_ = 0>
using std_utils::ctm_from_subenum< Enum_, SubEnum_, Offset_, Skip_ >::ctsValues = cts_from_sequence_t< Enum_, make_index_sequence_range_t<Offset_, Offset_ - Skip_ + static_cast<std::size_t>(SubEnum_::SIZE)>>
template<typename Enum_ , typename SubEnum_ , std::size_t Offset_ = 0, std::size_t Skip_ = 0>
using std_utils::ctm_from_subenum< Enum_, SubEnum_, Offset_, Skip_ >::type = ctm_from_sets_t<SubEnum_, Enum_, ctsKeys, ctsValues>

The documentation for this struct was generated from the following file: