Wire Sysio Wire Sysion 1.0.0
Loading...
Searching...
No Matches
sysio::vm::detail::index_inserter< N, I, Tuple, Indices > Struct Template Reference

#include <utils.hpp>

Static Public Member Functions

template<size_t M = N, size_t J = I>
static constexpr auto value (std::enable_if_t< M!=J, int >=0)
 
template<size_t M = N, size_t J = I>
static constexpr auto value (std::enable_if_t< M==J, int >=0)
 
template<size_t M = N, size_t J = I>
static constexpr auto value (std::enable_if_t< M!=J, int >=0)
 
template<size_t M = N, size_t J = I>
static constexpr auto value (std::enable_if_t< M==J, int >=0)
 

Static Public Attributes

static constexpr int32_t size_of_element = get_tuple_size<N, Tuple>()
 

Detailed Description

template<size_t N, size_t I, typename Tuple, typename Indices>
struct sysio::vm::detail::index_inserter< N, I, Tuple, Indices >

Definition at line 195 of file utils.hpp.

Member Function Documentation

◆ value() [1/4]

template<size_t N, size_t I, typename Tuple , typename Indices >
template<size_t M = N, size_t J = I>
static constexpr auto sysio::vm::detail::index_inserter< N, I, Tuple, Indices >::value ( std::enable_if_t< M!=J, int > = 0)
inlinestaticconstexpr

Definition at line 199 of file utils.hpp.

199 {
201 return insert_type_t<I, tuple_index<N>, Indices>();
202 else
204 }
constexpr auto get_tuple_size_from_index()
Definition utils.hpp:176
typename insert_type< N, 0, Insert, Tuple >::type insert_type_t
Definition utils.hpp:192
static constexpr auto value(std::enable_if_t< M!=J, int >=0)
Definition utils.hpp:199
static constexpr int32_t size_of_element
Definition utils.hpp:196
Here is the call graph for this function:
Here is the caller graph for this function:

◆ value() [2/4]

template<size_t N, size_t I, typename Tuple , typename Indices >
template<size_t M = N, size_t J = I>
static constexpr auto sysio::vm::detail::index_inserter< N, I, Tuple, Indices >::value ( std::enable_if_t< M!=J, int > = 0)
inlinestaticconstexpr

Definition at line 199 of file utils.hpp.

199 {
201 return insert_type_t<I, tuple_index<N>, Indices>();
202 else
204 }
Here is the call graph for this function:

◆ value() [3/4]

template<size_t N, size_t I, typename Tuple , typename Indices >
template<size_t M = N, size_t J = I>
static constexpr auto sysio::vm::detail::index_inserter< N, I, Tuple, Indices >::value ( std::enable_if_t< M==J, int > = 0)
inlinestaticconstexpr

Definition at line 207 of file utils.hpp.

207 {
208 return std::tuple_cat(Indices{}, std::tuple<tuple_index<N>>());
209 }

◆ value() [4/4]

template<size_t N, size_t I, typename Tuple , typename Indices >
template<size_t M = N, size_t J = I>
static constexpr auto sysio::vm::detail::index_inserter< N, I, Tuple, Indices >::value ( std::enable_if_t< M==J, int > = 0)
inlinestaticconstexpr

Definition at line 207 of file utils.hpp.

207 {
208 return std::tuple_cat(Indices{}, std::tuple<tuple_index<N>>());
209 }

Member Data Documentation

◆ size_of_element

template<size_t N, size_t I, typename Tuple , typename Indices >
static constexpr int32_t sysio::vm::detail::index_inserter< N, I, Tuple, Indices >::size_of_element = get_tuple_size<N, Tuple>()
staticconstexpr

Definition at line 196 of file utils.hpp.


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