Skip to content

Class FixedAdapter

template <typename B, typename I, unsigned int F, bool E>

ClassList > FixedAdapter

A wrapper class for fpm::fixed to provide enhanced functionality.More...

  • #include <fpm_adapter.hpp>

Inherits the following classes: fpm::fixed< B, I, F, true >

Public Types

Type Name
typedef B base_type
typedef I intermediate_type

Public Attributes

Type Name
double hax = 0

Public Static Attributes

Type Name
const int FixedBits = F

Public Functions

Type Name
FixedAdapter () noexcept
constexpr FixedAdapter (NonFixedType val) noexcept
constexpr operator bool () const
auto operator<=> (const auto & other) noexcept const
auto operator= (auto & o)

Detailed Description

This adapter class inherits from fpm::fixed and is intended to simplify the use of fixed-point numbers throughout the codebase.

Public Types Documentation

typedef base_type

using FixedAdapter< B, I, F, E >::base_type =  B;

typedef intermediate_type

using FixedAdapter< B, I, F, E >::intermediate_type =  I;

Public Attributes Documentation

variable hax

double FixedAdapter< B, I, F, E >::hax;

Public Static Attributes Documentation

variable FixedBits

const int FixedAdapter< B, I, F, E >::FixedBits;

Public Functions Documentation

function FixedAdapter [1/2]

inline FixedAdapter::FixedAdapter () noexcept

function FixedAdapter [2/2]

template<typename NonFixedType>
inline constexpr FixedAdapter::FixedAdapter (
    NonFixedType val
) noexcept

function operator bool

inline constexpr FixedAdapter::operator bool () const

function operator<=>

inline auto FixedAdapter::operator<=> (
    const auto & other
) noexcept const

function operator=

inline auto FixedAdapter::operator= (
    auto & o
) 


The documentation for this class was generated from the following file fpm_adapter.hpp