class hex_formatter #( type T = int ) extends formatter#( T )
singleton Provides a strategy to convert an object of type T to a string using a hexadecimal format.
T | optional The type of an object to be converted. The default is int. |
hex_formatter | singleton Provides a strategy to convert an object of type T to a string using a hexadecimal format. |
Types | |
this_type | The shorthand of hex_formatter#(T). |
Functions | |
new | protected Creates a new formatter. |
get_instance | static Returns the singleton instance of this formatter. |
to_string | virtual Returns a string representation of the given object of type T using the %h format string. |
singleton Provides a strategy to convert an object of type T to a string using a hexadecimal format.
class hex_formatter #( type T = int ) extends formatter#( T )
The shorthand of hex_formatter#(T).
typedef hex_formatter#( T ) this_type
protected Creates a new formatter.
protected function new()
static Returns the singleton instance of this formatter.
static function this_type get_instance()
virtual Returns a string representation of the given object of type T using the %h format string.
virtual function string to_string( T o )