sequencer
Public Types | Public Member Functions | Static Public Member Functions | Static Public Attributes | List of all members
sequencer::fixed_point_type< ticks_per_unit > Class Template Reference

#include <fixed_point_type.hpp>

Public Types

using rep = double
 
using internal_rep = std::int64_t
 

Public Member Functions

constexpr fixed_point_type (rep value=0) noexcept
 
constexpr double to_double () const noexcept
 
constexpr fixed_point_typeoperator+= (fixed_point_type other) noexcept
 
constexpr fixed_point_type operator- () const noexcept
 
constexpr bool operator== (fixed_point_type other) const noexcept
 
constexpr bool operator!= (fixed_point_type other) const noexcept
 
constexpr bool operator< (fixed_point_type other) const noexcept
 
constexpr bool operator<= (fixed_point_type other) const noexcept
 

Static Public Member Functions

static constexpr fixed_point_type from_count (internal_rep count) noexcept
 
static constexpr fixed_point_type max () noexcept
 

Static Public Attributes

static constexpr rep eps = 1.0 / ticks_per_unit
 

Member Typedef Documentation

◆ internal_rep

template<int ticks_per_unit>
using sequencer::fixed_point_type< ticks_per_unit >::internal_rep = std::int64_t

◆ rep

template<int ticks_per_unit>
using sequencer::fixed_point_type< ticks_per_unit >::rep = double

Constructor & Destructor Documentation

◆ fixed_point_type()

template<int ticks_per_unit>
constexpr sequencer::fixed_point_type< ticks_per_unit >::fixed_point_type ( rep  value = 0)
inlineexplicitnoexcept

Member Function Documentation

◆ from_count()

template<int ticks_per_unit>
static constexpr fixed_point_type sequencer::fixed_point_type< ticks_per_unit >::from_count ( internal_rep  count)
inlinestaticnoexcept

◆ max()

template<int ticks_per_unit>
static constexpr fixed_point_type sequencer::fixed_point_type< ticks_per_unit >::max ( )
inlinestaticnoexcept

◆ operator!=()

template<int ticks_per_unit>
constexpr bool sequencer::fixed_point_type< ticks_per_unit >::operator!= ( fixed_point_type< ticks_per_unit >  other) const
inlinenoexcept

◆ operator+=()

template<int ticks_per_unit>
constexpr fixed_point_type& sequencer::fixed_point_type< ticks_per_unit >::operator+= ( fixed_point_type< ticks_per_unit >  other)
inlinenoexcept

◆ operator-()

template<int ticks_per_unit>
constexpr fixed_point_type sequencer::fixed_point_type< ticks_per_unit >::operator- ( ) const
inlinenoexcept

◆ operator<()

template<int ticks_per_unit>
constexpr bool sequencer::fixed_point_type< ticks_per_unit >::operator< ( fixed_point_type< ticks_per_unit >  other) const
inlinenoexcept

◆ operator<=()

template<int ticks_per_unit>
constexpr bool sequencer::fixed_point_type< ticks_per_unit >::operator<= ( fixed_point_type< ticks_per_unit >  other) const
inlinenoexcept

◆ operator==()

template<int ticks_per_unit>
constexpr bool sequencer::fixed_point_type< ticks_per_unit >::operator== ( fixed_point_type< ticks_per_unit >  other) const
inlinenoexcept

◆ to_double()

template<int ticks_per_unit>
constexpr double sequencer::fixed_point_type< ticks_per_unit >::to_double ( ) const
inlinenoexcept

Member Data Documentation

◆ eps

template<int ticks_per_unit>
constexpr rep sequencer::fixed_point_type< ticks_per_unit >::eps = 1.0 / ticks_per_unit
static

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