|
Blender V5.0
|
#include <BLI_fixed_width_int.hh>
Public Member Functions | |
| IntF ()=default | |
| IntF (int64_t value) | |
| IntF (const UIntF< T, S > &value) | |
| IntF (StringRefNull str, int base=10) | |
| operator int64_t () const | |
| operator double () const | |
| operator float () const | |
| operator UIntF< T, S > () const | |
Public Attributes | |
| std::array< T, S > | v |
A signed fixed width integer. It's mostly the same as UIntF, but signed.
Definition at line 66 of file BLI_fixed_width_int.hh.
|
default |
Allow default construction. Note that the value is not initialized in this case.
Referenced by operator double(), operator float(), operator int64_t(), and operator UIntF< T, S >().
|
inlineexplicit |
Construct from a specific integer.
Definition at line 182 of file BLI_fixed_width_int.hh.
|
inlineexplicit |
Support casting unsigned to signed fixed-width-int.
Definition at line 196 of file BLI_fixed_width_int.hh.
References v.
|
explicit |
Construct from a string.
|
inlineexplicit |
Convert to floating point. This may lose precision.
Definition at line 245 of file BLI_fixed_width_int.hh.
References i, IntF(), blender::fixed_width_int::is_negative(), ldexp, result, T, and v.
|
inlineexplicit |
Definition at line 261 of file BLI_fixed_width_int.hh.
|
inlineexplicit |
Convert to a normal integer. Note that this may lose digits.
Definition at line 240 of file BLI_fixed_width_int.hh.
References IntF().
|
inlineexplicit |
Support casting from signed to unsigned fixed-width-int.
Definition at line 266 of file BLI_fixed_width_int.hh.
| std::array<T, S> blender::fixed_width_int::IntF< T, S >::v |
Array of smaller integers that make up the bigger integer. The first element is the least significant digit.
Definition at line 74 of file BLI_fixed_width_int.hh.
Referenced by IntF(), IntF(), blender::fixed_width_int::is_negative(), blender::fixed_width_int::is_zero(), operator double(), operator UIntF< T, S >(), blender::fixed_width_int::operator!=(), blender::fixed_width_int::operator+(), blender::fixed_width_int::operator-(), blender::fixed_width_int::operator<(), blender::fixed_width_int::operator<=(), blender::fixed_width_int::operator==(), blender::fixed_width_int::operator>(), and blender::fixed_width_int::operator>=().