Brush C++ API
A flexible interpretable machine learning framework
Loading...
Searching...
No Matches
Brush::NarySignatures< R, Arg, MaxArgCount > Struct Template Reference

Makes a tuple of signatures with increasing arity up to MaxArgCount. More...

#include <signatures.h>

Public Types

template<std::size_t N>
using NthType = Arg
 
using type = decltype(make_signatures(Indices))
 

Static Public Member Functions

template<size_t ... Is>
static constexpr auto make_signatures (std::index_sequence< Is... >)
 

Static Public Attributes

static constexpr size_t Min = 2
 
static constexpr size_t Max = MaxArgCount-2
 
static constexpr auto Indices = std::make_index_sequence<Max>()
 

Detailed Description

template<typename R, typename Arg, size_t MaxArgCount>
struct Brush::NarySignatures< R, Arg, MaxArgCount >

Makes a tuple of signatures with increasing arity up to MaxArgCount.

Assumes the types of the arguments are identical.

Template Parameters
Rreturn type of the signature.
Argshared type of every argument.
MaxArgCountmaximum number of arguments.

Definition at line 169 of file signatures.h.

Member Typedef Documentation

◆ NthType

template<typename R , typename Arg , size_t MaxArgCount>
template<std::size_t N>
using Brush::NarySignatures< R, Arg, MaxArgCount >::NthType = Arg

Definition at line 172 of file signatures.h.

◆ type

Definition at line 183 of file signatures.h.

Member Function Documentation

◆ make_signatures()

template<typename R , typename Arg , size_t MaxArgCount>
template<size_t ... Is>
static constexpr auto Brush::NarySignatures< R, Arg, MaxArgCount >::make_signatures ( std::index_sequence< Is... > )
inlinestaticconstexpr

Definition at line 178 of file signatures.h.

Here is the call graph for this function:

Member Data Documentation

◆ Indices

template<typename R , typename Arg , size_t MaxArgCount>
constexpr auto Brush::NarySignatures< R, Arg, MaxArgCount >::Indices = std::make_index_sequence<Max>()
staticconstexpr

Definition at line 175 of file signatures.h.

◆ Max

template<typename R , typename Arg , size_t MaxArgCount>
constexpr size_t Brush::NarySignatures< R, Arg, MaxArgCount >::Max = MaxArgCount-2
staticconstexpr

Definition at line 174 of file signatures.h.

◆ Min

template<typename R , typename Arg , size_t MaxArgCount>
constexpr size_t Brush::NarySignatures< R, Arg, MaxArgCount >::Min = 2
staticconstexpr

Definition at line 173 of file signatures.h.


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