SUNphi  1.0
Ranges.hpp File Reference

Provide range creators. More...

#include <ints/IntSeq.hpp>
#include <ints/IntSeqCat.hpp>

Go to the source code of this file.

Classes

struct  SUNphi::_IntsUpTo< Max >
 
struct  SUNphi::_IntsUpTo< 0 >
 
struct  SUNphi::_IntsUpTo< 1 >
 
struct  SUNphi::_RangeSeq< Min, Shift, Max >
 

Typedefs

template<int Max>
using SUNphi::IntsUpTo = typename _IntsUpTo< Max >::type
 
template<int Min, int Shift, int Max>
using SUNphi::RangeSeq = typename _RangeSeq< Min, Shift, Max >::type
 
template<int Length, int Val>
using SUNphi::IntSeqOfSameNumb = typename IntsUpTo< Length >::template Mul< 0 >::template Add< Val >
 Defines a IntSeq of given Length, all containing Val as entry.
 

Variables

template<int Min, int Shift, int Max>
decltype(auto) constexpr SUNphi::rangeSeq
 Create a RangeSeq with given types. More...
 

Detailed Description

Provide range creators.

Definition in file Ranges.hpp.

Typedef Documentation

template<int Max>
using SUNphi::IntsUpTo = typedef typename _IntsUpTo<Max>::type

Defines a sequence of integer up to Max (excluded)

Wraps the internal definition

Definition at line 56 of file Ranges.hpp.

template<int Min, int Shift, int Max>
using SUNphi::RangeSeq = typedef typename _RangeSeq<Min,Shift,Max>::type

Defines a sequence of integer with offset and stride (up-open interval)

Example:

typedef RangeSeq<2,3,8> Range; //IntSeq<2,5>

Definition at line 103 of file Ranges.hpp.

Variable Documentation

template<int Min, int Shift, int Max>
decltype(auto) constexpr SUNphi::rangeSeq
Initial value:
=
RangeSeq<Min,Shift,Max>{}

Create a RangeSeq with given types.

Definition at line 110 of file Ranges.hpp.