LibrePCB Developers Documentation
ratio.h File Reference
#include "../exceptions.h"
#include "../qtcompat.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)
 
QtCompat::Hash qHash (const Ratio &key, QtCompat::Hash seed=0) noexcept
 
QDataStream & operator<< (QDataStream &stream, const UnsignedRatio &ratio)
 
QDebug operator<< (QDebug stream, const UnsignedRatio &ratio)
 
QtCompat::Hash qHash (const UnsignedRatio &key, QtCompat::Hash seed=0) noexcept
 
QDataStream & operator<< (QDataStream &stream, const UnsignedLimitedRatio &ratio)
 
QDebug operator<< (QDebug stream, const UnsignedLimitedRatio &ratio)
 
QtCompat::Hash qHash (const UnsignedLimitedRatio &key, QtCompat::Hash seed=0) noexcept