#include <locale_facets.h>
Inheritance diagram for std::money_put< _CharT, _OutIter >:
Public Types | |
typedef _CharT | char_type |
Public typedefs. | |
typedef _OutIter | iter_type |
typedef basic_string< _CharT > | string_type |
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. | |
template<bool _Intl> iter_type | _M_insert (iter_type __s, ios_base &__io, char_type __fill, const string_type &__digits) const |
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 4574 of file locale_facets.h.
|
Public typedefs.
Definition at line 4579 of file locale_facets.h. |
|
Definition at line 4580 of file locale_facets.h. |
|
Definition at line 4581 of file locale_facets.h. |
|
Constructor performs initialization. This is the constructor provided by the standard.
Definition at line 4595 of file locale_facets.h. Referenced by std::moneypunct< _CharT, _Intl >::decimal_point(). |
|
Destructor.
Definition at line 4644 of file locale_facets.h. Referenced by std::moneypunct< _CharT, _Intl >::decimal_point(). |
|
Definition at line 1503 of file locale_facets.tcc. References std::__add_grouping(), std::__write(), std::ios_base::_M_getloc(), std::money_base::pattern::field, std::ios_base::flags(), std::ios_base::fmtflags, std::__ctype_abstract_base< _CharT >::scan_not(), and std::ios_base::width(). Referenced by std::moneypunct< _CharT, _Intl >::decimal_point(). |
|
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 1704 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 1665 of file locale_facets.tcc. References std::__convert_from_v(), std::locale::facet::_S_get_c_locale(), std::ios_base::getloc(), and std::__ctype_abstract_base< _CharT >::widen(). Referenced by std::moneypunct< _CharT, _Intl >::decimal_point(). |
|
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 4637 of file locale_facets.h. |
|
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 4615 of file locale_facets.h. Referenced by std::moneypunct< _CharT, _Intl >::decimal_point(). |
|
Numpunct facet id.
Definition at line 4697 of file locale_facets.h. |