CHERIoT RTOS
A compartmentalised RTOS for CHERIoT hardware
Loading...
Searching...
No Matches
Bitpack< StorageParam >::Numeric< T > Struct Template Reference

Convenience wrapper for the types of numeric fields. More...

#include <bitpack.hh>

Public Types

using NumericType = T
 Export the underlying numeric type.

Public Member Functions

constexpr Numeric (T v)
constexpr operator T () const
constexpr T raw () const

Public Attributes

value

Detailed Description

template<typename StorageParam>
template<typename T>
requires std::is_unsigned_v<T>
struct Bitpack< StorageParam >::Numeric< T >

Convenience wrapper for the types of numeric fields.

Definition at line 423 of file bitpack.hh.

Member Typedef Documentation

◆ NumericType

template<typename StorageParam>
template<typename T>
using Bitpack< StorageParam >::Numeric< T >::NumericType = T

Export the underlying numeric type.

Definition at line 426 of file bitpack.hh.

Constructor & Destructor Documentation

◆ Numeric()

template<typename StorageParam>
template<typename T>
Bitpack< StorageParam >::Numeric< T >::Numeric ( T v)
inlineconstexpr

Definition at line 436 of file bitpack.hh.

Member Function Documentation

◆ operator T()

template<typename StorageParam>
template<typename T>
Bitpack< StorageParam >::Numeric< T >::operator T ( ) const
inlineconstexpr

Definition at line 438 of file bitpack.hh.

◆ raw()

template<typename StorageParam>
template<typename T>
T Bitpack< StorageParam >::Numeric< T >::raw ( ) const
inlinenodiscardconstexpr

Definition at line 443 of file bitpack.hh.

Member Data Documentation

◆ value

template<typename StorageParam>
template<typename T>
T Bitpack< StorageParam >::Numeric< T >::value

Definition at line 434 of file bitpack.hh.


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