#include <IoManip.h>
![Collaboration graph](classAsHex__coll__graph.png)
Public Member Functions | |
AsHex (const Integer n) | |
auto & | minDigits (const size_t w) |
auto & | upperCase (const bool u=true) |
Print hex digits in upper (or, with a false parameter value, lower) case. More... | |
Public Attributes | |
Integer | io_manip |
the integer to print More... | |
std::optional< size_t > | forcePadding |
std::optional< bool > | forceCase |
Print hex digits in upper (or, with a false parameter value, lower) case. More... | |
Detailed Description
template<class Integer>
class AsHex< Integer >
std::ostream manipulator to print integers and alike as hex numbers. Normally used through the asHex() convenience function.
Constructor & Destructor Documentation
◆ AsHex()
Member Function Documentation
◆ minDigits()
Sets the minimum number of digits to print. If the integer has fewer digits than the given width, then we also print leading zero(s). Otherwise, this method has no effect.
Definition at line 125 of file IoManip.h.
References AsHex< Integer >::forcePadding.
◆ upperCase()
|
inline |
Definition at line 128 of file IoManip.h.
References AsHex< Integer >::forceCase.
Member Data Documentation
◆ forceCase
std::optional<bool> AsHex< Integer >::forceCase |
The default is to use stream's std::uppercase flag.
Definition at line 138 of file IoManip.h.
Referenced by AsHex< Integer >::upperCase().
◆ forcePadding
Sets the minimum number of digits to print. If the integer has fewer digits than the given width, then we also print leading zero(s). Otherwise, this method has no effect. The default is to use stream's field width and stream's fill character.
Definition at line 134 of file IoManip.h.
Referenced by AsHex< Integer >::minDigits().
◆ io_manip
Integer AsHex< Integer >::io_manip |
The documentation for this class was generated from the following file:
- src/base/IoManip.h
Introduction
- About Squid
- Why Squid?
- Squid Developers
- How to Donate
- How to Help Out
- Getting Squid
- Squid Source Packages
- Squid Deployment Case-Studies
- Squid Software Foundation
Documentation
- Quick Setup
- Configuration:
- FAQ and Wiki
- Guide Books:
- Non-English
- More...
Support
- Security Advisories
- Bugzilla Database
- Mailing lists
- Contacting us
- Commercial services
- Project Sponsors
- Squid-based products