syn Namespace Reference

syn Namespace Reference#

Reference API: gko::syn Namespace Reference
Reference API
gko::syn Namespace Reference

The Synthesizer namespace. More...

Classes

struct  range
 
struct  type_list
 
struct  value_list
 

Typedefs

template<typename List1 , typename List2 >
using concatenate = typename detail::concatenate_impl< List1, List2 >::type
 
template<typename T >
using as_list = typename detail::as_list_impl< T >::type
 

Functions

template<typename T , T... Value>
constexpr std::array< T, sizeof...(Value)> as_array (value_list< T, Value... > vl)
 

Detailed Description

The Synthesizer namespace.

Typedef Documentation

◆ as_list

template<typename T >
using gko::syn::as_list = typedef typename detail::as_list_impl<T>::type

as_list<T> gives the alias type of as_list_impl<T>::type. It gives a list (itself) if input is already a list, or generates list type from range input.

Template Parameters
Tlist or range

◆ concatenate

template<typename List1 , typename List2 >
using gko::syn::concatenate = typedef typename detail::concatenate_impl<List1, List2>::type

concatenate combines two value_list into one value_list.

Template Parameters
List1the first list
List2the second list

Function Documentation

◆ as_array()

template<typename T , T... Value>
constexpr std::array< T, sizeof...(Value)> gko::syn::as_array ( value_list< T, Value... >  vl)
constexpr

as_array<T> returns the array from value_list. It will be helpful if using for in runtime on the array.

Template Parameters
Tthe type of value_list
Valuethe values of value_list
Parameters
value_listthe input value_list
Returns
std::array the std::array contains the values of value_list