QtBase  v6.3.1
Public Member Functions | Static Public Member Functions | List of all members
QFixed Struct Reference

#include <qfixed_p.h>

Public Member Functions

constexpr QFixed ()
 
constexpr QFixed (int i)
 
constexpr QFixed (long i)
 
QFixedoperator= (int i)
 
QFixedoperator= (long i)
 
constexpr int value () const
 
void setValue (int value)
 
constexpr int toInt () const
 
constexpr qreal toReal () const
 
constexpr int truncate () const
 
constexpr QFixed round () const
 
constexpr QFixed floor () const
 
constexpr QFixed ceil () const
 
constexpr QFixed operator+ (int i) const
 
constexpr QFixed operator+ (uint i) const
 
constexpr QFixed operator+ (const QFixed &other) const
 
QFixedoperator+= (int i)
 
QFixedoperator+= (uint i)
 
QFixedoperator+= (const QFixed &other)
 
constexpr QFixed operator- (int i) const
 
constexpr QFixed operator- (uint i) const
 
constexpr QFixed operator- (const QFixed &other) const
 
QFixedoperator-= (int i)
 
QFixedoperator-= (uint i)
 
QFixedoperator-= (const QFixed &other)
 
constexpr QFixed operator- () const
 
constexpr bool operator== (const QFixed &other) const
 
constexpr bool operator!= (const QFixed &other) const
 
constexpr bool operator< (const QFixed &other) const
 
constexpr bool operator> (const QFixed &other) const
 
constexpr bool operator<= (const QFixed &other) const
 
constexpr bool operator>= (const QFixed &other) const
 
constexpr bool operator! () const
 
QFixedoperator/= (int x)
 
QFixedoperator/= (const QFixed &o)
 
constexpr QFixed operator/ (int d) const
 
QFixed operator/ (QFixed b) const
 
QFixed operator>> (int d) const
 
QFixedoperator*= (int i)
 
QFixedoperator*= (uint i)
 
QFixedoperator*= (const QFixed &o)
 
constexpr QFixed operator* (int i) const
 
constexpr QFixed operator* (uint i) const
 
QFixed operator* (const QFixed &o) const
 

Static Public Member Functions

constexpr static QFixed fromReal (qreal r)
 
constexpr static QFixed fromFixed (int fixed)
 

Detailed Description

Definition at line 61 of file qfixed_p.h.

Constructor & Destructor Documentation

◆ QFixed() [1/3]

constexpr QFixed::QFixed ( )
inlineconstexpr

Definition at line 65 of file qfixed_p.h.

Here is the caller graph for this function:

◆ QFixed() [2/3]

constexpr QFixed::QFixed ( int  i)
inlineconstexpr

Definition at line 66 of file qfixed_p.h.

◆ QFixed() [3/3]

constexpr QFixed::QFixed ( long  i)
inlineconstexpr

Definition at line 67 of file qfixed_p.h.

Member Function Documentation

◆ ceil()

constexpr QFixed QFixed::ceil ( ) const
inlineconstexpr

Definition at line 83 of file qfixed_p.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ floor()

constexpr QFixed QFixed::floor ( ) const
inlineconstexpr

Definition at line 82 of file qfixed_p.h.

Here is the call graph for this function:

◆ fromFixed()

constexpr static QFixed QFixed::fromFixed ( int  fixed)
inlinestaticconstexpr

Definition at line 72 of file qfixed_p.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ fromReal()

constexpr static QFixed QFixed::fromReal ( qreal  r)
inlinestaticconstexpr

Definition at line 71 of file qfixed_p.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ operator!()

constexpr bool QFixed::operator! ( ) const
inlineconstexpr

Definition at line 105 of file qfixed_p.h.

◆ operator!=()

constexpr bool QFixed::operator!= ( const QFixed other) const
inlineconstexpr

Definition at line 100 of file qfixed_p.h.

Here is the call graph for this function:

◆ operator*() [1/3]

QFixed QFixed::operator* ( const QFixed o) const
inline

Definition at line 142 of file qfixed_p.h.

◆ operator*() [2/3]

constexpr QFixed QFixed::operator* ( int  i) const
inlineconstexpr

Definition at line 140 of file qfixed_p.h.

Here is the call graph for this function:

◆ operator*() [3/3]

constexpr QFixed QFixed::operator* ( uint  i) const
inlineconstexpr

Definition at line 141 of file qfixed_p.h.

Here is the call graph for this function:

◆ operator*=() [1/3]

QFixed& QFixed::operator*= ( const QFixed o)
inline

Definition at line 129 of file qfixed_p.h.

◆ operator*=() [2/3]

QFixed& QFixed::operator*= ( int  i)
inline

Definition at line 127 of file qfixed_p.h.

◆ operator*=() [3/3]

QFixed& QFixed::operator*= ( uint  i)
inline

Definition at line 128 of file qfixed_p.h.

◆ operator+() [1/3]

constexpr QFixed QFixed::operator+ ( const QFixed other) const
inlineconstexpr

Definition at line 87 of file qfixed_p.h.

Here is the call graph for this function:

◆ operator+() [2/3]

constexpr QFixed QFixed::operator+ ( int  i) const
inlineconstexpr

Definition at line 85 of file qfixed_p.h.

Here is the call graph for this function:

◆ operator+() [3/3]

constexpr QFixed QFixed::operator+ ( uint  i) const
inlineconstexpr

Definition at line 86 of file qfixed_p.h.

Here is the call graph for this function:

◆ operator+=() [1/3]

QFixed& QFixed::operator+= ( const QFixed other)
inline

Definition at line 90 of file qfixed_p.h.

Here is the call graph for this function:

◆ operator+=() [2/3]

QFixed& QFixed::operator+= ( int  i)
inline

Definition at line 88 of file qfixed_p.h.

◆ operator+=() [3/3]

QFixed& QFixed::operator+= ( uint  i)
inline

Definition at line 89 of file qfixed_p.h.

◆ operator-() [1/4]

constexpr QFixed QFixed::operator- ( ) const
inlineconstexpr

Definition at line 97 of file qfixed_p.h.

Here is the call graph for this function:

◆ operator-() [2/4]

constexpr QFixed QFixed::operator- ( const QFixed other) const
inlineconstexpr

Definition at line 93 of file qfixed_p.h.

Here is the call graph for this function:

◆ operator-() [3/4]

constexpr QFixed QFixed::operator- ( int  i) const
inlineconstexpr

Definition at line 91 of file qfixed_p.h.

Here is the call graph for this function:

◆ operator-() [4/4]

constexpr QFixed QFixed::operator- ( uint  i) const
inlineconstexpr

Definition at line 92 of file qfixed_p.h.

Here is the call graph for this function:

◆ operator-=() [1/3]

QFixed& QFixed::operator-= ( const QFixed other)
inline

Definition at line 96 of file qfixed_p.h.

Here is the call graph for this function:

◆ operator-=() [2/3]

QFixed& QFixed::operator-= ( int  i)
inline

Definition at line 94 of file qfixed_p.h.

◆ operator-=() [3/3]

QFixed& QFixed::operator-= ( uint  i)
inline

Definition at line 95 of file qfixed_p.h.

◆ operator/() [1/2]

constexpr QFixed QFixed::operator/ ( int  d) const
inlineconstexpr

Definition at line 124 of file qfixed_p.h.

Here is the call graph for this function:

◆ operator/() [2/2]

QFixed QFixed::operator/ ( QFixed  b) const
inline

Definition at line 125 of file qfixed_p.h.

◆ operator/=() [1/2]

QFixed& QFixed::operator/= ( const QFixed o)
inline

Definition at line 108 of file qfixed_p.h.

◆ operator/=() [2/2]

QFixed& QFixed::operator/= ( int  x)
inline

Definition at line 107 of file qfixed_p.h.

◆ operator<()

constexpr bool QFixed::operator< ( const QFixed other) const
inlineconstexpr

Definition at line 101 of file qfixed_p.h.

Here is the call graph for this function:

◆ operator<=()

constexpr bool QFixed::operator<= ( const QFixed other) const
inlineconstexpr

Definition at line 103 of file qfixed_p.h.

Here is the call graph for this function:

◆ operator=() [1/2]

QFixed& QFixed::operator= ( int  i)
inline

Definition at line 68 of file qfixed_p.h.

◆ operator=() [2/2]

QFixed& QFixed::operator= ( long  i)
inline

Definition at line 69 of file qfixed_p.h.

◆ operator==()

constexpr bool QFixed::operator== ( const QFixed other) const
inlineconstexpr

Definition at line 99 of file qfixed_p.h.

Here is the call graph for this function:

◆ operator>()

constexpr bool QFixed::operator> ( const QFixed other) const
inlineconstexpr

Definition at line 102 of file qfixed_p.h.

Here is the call graph for this function:

◆ operator>=()

constexpr bool QFixed::operator>= ( const QFixed other) const
inlineconstexpr

Definition at line 104 of file qfixed_p.h.

Here is the call graph for this function:

◆ operator>>()

QFixed QFixed::operator>> ( int  d) const
inline

Definition at line 126 of file qfixed_p.h.

◆ round()

constexpr QFixed QFixed::round ( ) const
inlineconstexpr

Definition at line 81 of file qfixed_p.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ setValue()

void QFixed::setValue ( int  value)
inline

Definition at line 75 of file qfixed_p.h.

Here is the call graph for this function:

◆ toInt()

constexpr int QFixed::toInt ( ) const
inlineconstexpr

Definition at line 77 of file qfixed_p.h.

Here is the caller graph for this function:

◆ toReal()

constexpr qreal QFixed::toReal ( ) const
inlineconstexpr

Definition at line 78 of file qfixed_p.h.

Here is the caller graph for this function:

◆ truncate()

constexpr int QFixed::truncate ( ) const
inlineconstexpr

Definition at line 80 of file qfixed_p.h.

◆ value()

constexpr int QFixed::value ( ) const
inlineconstexpr

Definition at line 74 of file qfixed_p.h.

Here is the caller graph for this function:

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