#include <format.hpp>
Implements a temporary object which is appended to instances of type AString.
Appends an integral value in hexadecimal format.
Definition at line 330 of file format.hpp.
Public Fields | |
| TNumberFormat< TChar > * | nf |
| NumberFormat::Computational. More... | |
| uint64_t | theValue |
| The value to write. | |
| int | theWidth |
Public Methods | |
| template<typename TIntegral > | |
| Hex (TIntegral value, int overrideWidth=0, TNumberFormat< TChar > *numberFormat=nullptr) | |
| template<typename TIntegral > | |
| Hex (TIntegral value, TNumberFormat< TChar > *numberFormat) | |
|
inline |
Constructor, taking the value and formatting parameters.
| TIntegral | Value type which has to be statically castable to std::uint64_t. |
| value | The value to write. |
| overrideWidth | Defaults to 0 which denotes to choose the value of field NumberFormat::HexFieldWidth. |
| numberFormat | The number format to use. Defaults to nullptr which chooses the static singleton found in NumberFormat::Computational. |
Definition at line 354 of file format.hpp.
|
inline |
Constructor, taking the value and a just an object of type NumberFormat.
| value | The value to write. |
| numberFormat | The number format to use. Defaults to nullptr which chooses the static singleton found in NumberFormat::Computational. |
Definition at line 370 of file format.hpp.
| TNumberFormat<TChar>* nf |
The number format to use. Defaults to nullptr which chooses
Definition at line 338 of file format.hpp.
| int theWidth |
The minimum width of the number to write. Defaults to 0 which denotes to choose the value of field NumberFormat::HexFieldWidth.
Definition at line 334 of file format.hpp.