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

values in i32, again represented as types More...

#include <aerobus.h>

Public Types

using enclosing_type = i32
 Enclosing ring type.
 
using is_zero_t = std::bool_constant< x==0 >
 is value zero
 

Static Public Member Functions

template<typename valueType >
static constexpr DEVICE valueType get ()
 cast x into valueType
 
static std::string to_string ()
 string representation of value
 

Static Public Attributes

static constexpr int32_t v = x
 actual value stored in val type
 

Detailed Description

template<int32_t x>
struct aerobus::i32::val< x >

values in i32, again represented as types

Template Parameters
xan actual integer

Member Typedef Documentation

◆ enclosing_type

template<int32_t x>
using aerobus::i32::val< x >::enclosing_type = i32

Enclosing ring type.

◆ is_zero_t

template<int32_t x>
using aerobus::i32::val< x >::is_zero_t = std::bool_constant<x == 0>

is value zero

Member Function Documentation

◆ get()

template<int32_t x>
template<typename valueType >
static constexpr DEVICE valueType aerobus::i32::val< x >::get ( )
inlinestaticconstexpr

cast x into valueType

Template Parameters
valueTypedouble for example

◆ to_string()

template<int32_t x>
static std::string aerobus::i32::val< x >::to_string ( )
inlinestatic

string representation of value

Member Data Documentation

◆ v

template<int32_t x>
constexpr int32_t aerobus::i32::val< x >::v = x
staticconstexpr

actual value stored in val type


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