libstdc++
std::money_put Class Reference
Inheritance diagram for std::money_put:

List of all members.

Public Types

Public Member Functions

Static Public Attributes

Protected Member Functions

Static Protected Member Functions

Friends


Detailed Description

Primary class template money_put.

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.


Member Typedef Documentation

typedef _CharT std::money_put::char_type

Public typedefs.

Definition at line 1526 of file locale_facets_nonio.h.

typedef _OutIter std::money_put::iter_type

Public typedefs.

Definition at line 1527 of file locale_facets_nonio.h.

Public typedefs.

Definition at line 1528 of file locale_facets_nonio.h.


Constructor & Destructor Documentation

std::money_put::money_put ( size_t  __refs = 0) [inline, explicit]

Constructor performs initialization.

This is the constructor provided by the standard.

Parameters:
refsPassed to the base facet class.

Definition at line 1542 of file locale_facets_nonio.h.

virtual std::money_put::~money_put ( ) [inline, protected, virtual]

Destructor.

Definition at line 1592 of file locale_facets_nonio.h.


Member Function Documentation

_OutIter std::money_put::do_put ( iter_type  __s,
bool  __intl,
ios_base __io,
char_type  __fill,
long double  __units 
) const [protected, virtual]

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.

See also:
put().
Parameters:
sThe stream to write to.
intlParameter to use_facet<moneypunct<CharT,intl> >.
ioSource of facets and io state.
fillchar_type to use for padding.
unitsPlace to store result of parsing.
Returns:
Iterator after writing.

Definition at line 570 of file locale_facets_nonio.tcc.

References std::ios_base::getloc().

Referenced by put().

_OutIter std::money_put::do_put ( iter_type  __s,
bool  __intl,
ios_base __io,
char_type  __fill,
const string_type __digits 
) const [protected, virtual]

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.

See also:
put().
Parameters:
sThe stream to write to.
intlParameter to use_facet<moneypunct<CharT,intl> >.
ioSource of facets and io state.
fillchar_type to use for padding.
unitsPlace to store result of parsing.
Returns:
Iterator after writing.

Definition at line 608 of file locale_facets_nonio.tcc.

iter_type std::money_put::put ( iter_type  __s,
bool  __intl,
ios_base __io,
char_type  __fill,
long double  __units 
) const [inline]

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().

Parameters:
sThe stream to write to.
intlParameter to use_facet<moneypunct<CharT,intl> >.
ioSource of facets and io state.
fillchar_type to use for padding.
unitsPlace to store result of parsing.
Returns:
Iterator after writing.

Definition at line 1562 of file locale_facets_nonio.h.

References do_put().

iter_type std::money_put::put ( iter_type  __s,
bool  __intl,
ios_base __io,
char_type  __fill,
const string_type __digits 
) const [inline]

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().

Parameters:
sThe stream to write to.
intlParameter to use_facet<moneypunct<CharT,intl> >.
ioSource of facets and io state.
fillchar_type to use for padding.
unitsPlace to store result of parsing.
Returns:
Iterator after writing.

Definition at line 1585 of file locale_facets_nonio.h.

References do_put().


Member Data Documentation

Numpunct facet id.

Definition at line 1532 of file locale_facets_nonio.h.


The documentation for this class was generated from the following files: