#include <locale_facets.h>
Inheritance diagram for std::money_put< CharT, OutIter >:
Public Types | |
typedef CharT | char_type |
Public typedefs. | |
typedef OutIter | iter_type |
Public typedefs. | |
typedef basic_string< CharT > | string_type |
Public typedefs. | |
Public Member Functions | |
money_put (size_t __refs=0) | |
Constructor performs initialization. | |
iter_type | put (iter_type s, bool intl, ios_base &__io, char_type __fill, long double __units) const |
Format and output a monetary value. | |
iter_type | put (iter_type s, bool intl, ios_base &__io, char_type __fill, const string_type &__digits) const |
Format and output a monetary value. | |
Static Public Attributes | |
locale::id | id |
Numpunct facet id. | |
Protected Member Functions | |
virtual | ~money_put () |
Destructor. | |
virtual iter_type | do_put (iter_type s, bool intl, ios_base &__io, char_type __fill, long double __units) const |
Format and output a monetary value. | |
virtual iter_type | do_put (iter_type s, bool intl, ios_base &__io, char_type __fill, const string_type &__digits) const |
Format and output a monetary value. |
This facet encapsulates the code to format and output a monetary amount.
The money_put template uses protected virtual functions to provide the actual results. The public accessors forward the call to the virtual functions. These virtual functions are hooks for developers to implement the behavior they require from the money_put facet.
Definition at line 4101 of file locale_facets.h.
|
Public typedefs.
Definition at line 4106 of file locale_facets.h. |
|
Public typedefs.
Definition at line 4107 of file locale_facets.h. |
|
Public typedefs.
Definition at line 4108 of file locale_facets.h. |
|
Constructor performs initialization. This is the constructor provided by the standard.
Definition at line 4122 of file locale_facets.h. |
|
Destructor.
Definition at line 4171 of file locale_facets.h. |
|
Format and output a monetary value. This function formats digits as a monetary value according to moneypunct and ctype facets retrieved from io.getloc(), and writes the resulting characters to s. For example, the string "1001" in a US locale would write "$10.01" to s. This function is a hook for derived classes to change the value returned.
Definition at line 1713 of file locale_facets.tcc. |
|
Format and output a monetary value. This function formats units as a monetary value according to moneypunct and ctype facets retrieved from io.getloc(), and writes the resulting characters to s. For example, the value 1001 in a US locale would write "$10.01" to s. This function is a hook for derived classes to change the value returned.
Definition at line 1674 of file locale_facets.tcc. References std::ios_base::getloc(), and std::ctype_abstract_base< CharT >::widen(). Referenced by std::money_put< CharT, OutIter >::put(). |
|
Format and output a monetary value. This function formats digits as a monetary value according to moneypunct and ctype facets retrieved from io.getloc(), and writes the resulting characters to s. For example, the string "1001" in a US locale would write "$10.01" to s. This function works by returning the result of do_put().
Definition at line 4164 of file locale_facets.h. References std::money_put< CharT, OutIter >::do_put(). |
|
Format and output a monetary value. This function formats units as a monetary value according to moneypunct and ctype facets retrieved from io.getloc(), and writes the resulting characters to s. For example, the value 1001 in a US locale would write "$10.01" to s. This function works by returning the result of do_put().
Definition at line 4142 of file locale_facets.h. References std::money_put< CharT, OutIter >::do_put(), and std::money_put< CharT, OutIter >::put(). Referenced by std::money_put< CharT, OutIter >::put(). |
|
Numpunct facet id.
Definition at line 4224 of file locale_facets.h. |