carl  24.04
Computer ARithmetic Library
carl::settings::binary_quantity Struct Reference

Helper type to parse quantities with binary SI-style suffixes. More...

#include <settings_utils.h>

Public Member Functions

constexpr binary_quantity ()=default
 
constexpr binary_quantity (std::size_t n)
 
constexpr auto n () const
 
constexpr auto kibi () const
 
constexpr auto mebi () const
 
constexpr auto gibi () const
 
constexpr auto tebi () const
 
constexpr auto pebi () const
 
constexpr auto exbi () const
 

Private Attributes

std::size_t mN = 0
 

Detailed Description

Helper type to parse quantities with binary SI-style suffixes.

Intended usage:

  • use boost to parse values as quantity
  • access values with q.mibi()

Definition at line 77 of file settings_utils.h.

Constructor & Destructor Documentation

◆ binary_quantity() [1/2]

constexpr carl::settings::binary_quantity::binary_quantity ( )
constexprdefault

◆ binary_quantity() [2/2]

constexpr carl::settings::binary_quantity::binary_quantity ( std::size_t  n)
inlineexplicitconstexpr

Definition at line 82 of file settings_utils.h.

Member Function Documentation

◆ exbi()

constexpr auto carl::settings::binary_quantity::exbi ( ) const
inlineconstexpr

Definition at line 89 of file settings_utils.h.

◆ gibi()

constexpr auto carl::settings::binary_quantity::gibi ( ) const
inlineconstexpr

Definition at line 86 of file settings_utils.h.

◆ kibi()

constexpr auto carl::settings::binary_quantity::kibi ( ) const
inlineconstexpr

Definition at line 84 of file settings_utils.h.

◆ mebi()

constexpr auto carl::settings::binary_quantity::mebi ( ) const
inlineconstexpr

Definition at line 85 of file settings_utils.h.

◆ n()

constexpr auto carl::settings::binary_quantity::n ( ) const
inlineconstexpr

Definition at line 83 of file settings_utils.h.

Here is the caller graph for this function:

◆ pebi()

constexpr auto carl::settings::binary_quantity::pebi ( ) const
inlineconstexpr

Definition at line 88 of file settings_utils.h.

◆ tebi()

constexpr auto carl::settings::binary_quantity::tebi ( ) const
inlineconstexpr

Definition at line 87 of file settings_utils.h.

Field Documentation

◆ mN

std::size_t carl::settings::binary_quantity::mN = 0
private

Definition at line 79 of file settings_utils.h.


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