class comma_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 that has commas as thousands separators for better readability.
| T | optional The type of an object to be converted. The default is int. |
| comma_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 that has commas as thousands separators for better readability. |
| Types | |
| this_type | The shorthand of comma_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. |
typedef comma_formatter#( T ) this_type
The shorthand of comma_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 that has commas as thousands separators for better readability.
class comma_formatter #( type T = int ) extends formatter#( T )
The shorthand of comma_formatter #(T).
typedef comma_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.
virtual function string to_string( T o )