class decimal_formatter #( type T = int ) extends formatter#( T )
singleton Provides a strategy to convert an object of integral data types such as int and time into a string using a decimal format.
| T | optional The type of an object to be converted. The default is int. |
| decimal_formatter | singleton Provides a strategy to convert an object of integral data types such as int and time into a string using a decimal format. |
| Types | |
| this_type | The shorthand of decimal_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 %d format string. |
typedef decimal_formatter#( T ) this_type
The shorthand of decimal_formatter #(T).
singleton Provides a strategy to convert an object of integral data types such as int and time into a string using a decimal format.
class decimal_formatter #( type T = int ) extends formatter#( T )
The shorthand of decimal_formatter #(T).
typedef decimal_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 %d format string.
virtual function string to_string( T o )