class decimal_min_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 with the minimum width.
| T | optional The type of an object to be converted. The default is int. |
| decimal_min_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 with the minimum width. |
| Types | |
| this_type | The shorthand of decimal_min_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 %0d format string. |
typedef decimal_min_formatter#( T ) this_type
The shorthand of decimal_min_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 with the minimum width.
class decimal_min_formatter #( type T = int ) extends formatter#( T )
The shorthand of decimal_min_formatter #(T).
typedef decimal_min_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 %0d format string.
virtual function string to_string( T o )