Aerobus v1.2
Loading...
Searching...
No Matches
Public Types | Static Public Member Functions | Static Public Attributes | List of all members
aerobus::i64::val< x > Struct Template Reference

values in i64 More...

#include <aerobus.h>

Public Types

using inner_type = int32_t
 type of represented values
 
using enclosing_type = i64
 enclosing ring type
 
using is_zero_t = std::bool_constant< x==0 >
 is value zero
 

Static Public Member Functions

template<typename valueType >
static constexpr INLINED DEVICE valueType get ()
 cast value in valueType
 
static std::string to_string ()
 string representation
 

Static Public Attributes

static constexpr int64_t v = x
 actual value
 

Detailed Description

template<int64_t x>
struct aerobus::i64::val< x >

values in i64

Template Parameters
xan actual integer
Examples
examples/compensated_horner.cpp.

Member Typedef Documentation

◆ enclosing_type

template<int64_t x>
using aerobus::i64::val< x >::enclosing_type = i64

enclosing ring type

◆ inner_type

template<int64_t x>
using aerobus::i64::val< x >::inner_type = int32_t

type of represented values

◆ is_zero_t

template<int64_t x>
using aerobus::i64::val< x >::is_zero_t = std::bool_constant<x == 0>

is value zero

Member Function Documentation

◆ get()

template<int64_t x>
template<typename valueType >
static constexpr INLINED DEVICE valueType aerobus::i64::val< x >::get ( )
inlinestaticconstexpr

cast value in valueType

Template Parameters
valueType(double for example)

◆ to_string()

template<int64_t x>
static std::string aerobus::i64::val< x >::to_string ( )
inlinestatic

string representation

Member Data Documentation

◆ v

template<int64_t x>
constexpr int64_t aerobus::i64::val< x >::v = x
staticconstexpr

actual value


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