LibrePCB Developers Documentation
Loading...
Searching...
No Matches
ratio.h File Reference
#include "../exceptions.h"
#include <type_safe/constrained_type.hpp>
#include <QtCore>
+ Include dependency graph for ratio.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  Ratio
 The Ratio class is used to represent a ratio number (e.g. 13.37%) More...
 
struct  UnsignedRatioVerifier
 
struct  UnsignedRatioConstraint
 
struct  UnsignedLimitedRatioVerifier
 
struct  UnsignedLimitedRatioConstraint
 

Namespaces

namespace  librepcb
 

Typedefs

using UnsignedRatio = type_safe::constrained_type< Ratio, UnsignedRatioConstraint, UnsignedRatioVerifier >
 
using UnsignedLimitedRatio = type_safe::constrained_type< Ratio, UnsignedLimitedRatioConstraint, UnsignedLimitedRatioVerifier >
 

Functions

QDataStream & operator<< (QDataStream &stream, const Ratio &ratio)
 
QDebug operator<< (QDebug stream, const Ratio &ratio)
 
std::size_t qHash (const Ratio &key, std::size_t seed=0) noexcept
 
QDataStream & operator<< (QDataStream &stream, const UnsignedRatio &ratio)
 
QDebug operator<< (QDebug stream, const UnsignedRatio &ratio)
 
std::size_t qHash (const UnsignedRatio &key, std::size_t seed=0) noexcept
 
QDataStream & operator<< (QDataStream &stream, const UnsignedLimitedRatio &ratio)
 
QDebug operator<< (QDebug stream, const UnsignedLimitedRatio &ratio)
 
std::size_t qHash (const UnsignedLimitedRatio &key, std::size_t seed=0) noexcept