⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 monyget.htm

📁 这是关于VC++中的STL容器的资料,包括了STL容器各个类之间关系以及类的说明
💻 HTM
字号:
<html>
<head>
<title>money_get</title>
<head>

<body bgcolor="#FFFFFF">

<a name="here"></a>

<img src="monyban.gif">

<pre>

<font size=5>Class Name</font>            money_get

<font size=5>Header File</font>          &lt;locale&gt;

<font size=5>Classification</font>      abstract data type

</pre>

<a href="monyget.htm#crd">Class Relationship Diagram</a><br> 
<br>
<a href="monyget.htm#class-descrip">Class Description</a>
<h1>Member Classes</h1>
<a href="monyget.htm#id">locale::id</a>

<h1>Methods</h1>
<pre>

<a href="monyget.htm#do-get">
virtual iter_type do_get(iter_type, bool, iter_type, ios_base&, 
ios_base::iostate& err, long double& units) const;</a> 

<a href="monyget.htm#do-get">
virtual iter_type do_get(iter_type, bool, iter_type, ios_base&, 
ios_base::iostate& err, string_type& digits) const;</a>

<a href="monyget.htm#get">
iter_type get(iter_type s, iter_type end, bool intl, ios_base& f, 
ios_base::iostate& err, long double& units) const;</a> 

<a href="monyget.htm#get">
iter_type get(iter_type s, iter_type end, bool intl, ios_base& f, 
ios_base::iostate& err, string_type& digits) const;</a> 

<a href="monyget.htm#money-get">
explicit money_get(size_t refs = 0);</a> 

<a href="monyget.htm#~money-get">
~money_get();</a>

</pre>
<hr>
<a name="class-descrip"><h3>Class Description</h3></a>
<p>
The money_get class describes a class used to interpret formatted monetary string
values.
</p>
<hr>
<a name="id"><h3>locale::id</h3></a>
<p>
<em>locale::id</em> is a class used to provide an identification of a locale facet interfaces used as
an index for lookup and to encapsulate initialization.
</p>
<hr>

<pre>
<a name="do-get">
Method             do_get()</a>

Access             Protected

Classification     Accessor

Syntax             virtual iter_type do_get(iter_type s, iter_type end, 
                                            bool intl, 
                                            ios_base& str,
                                            ios_base::iostate& err, 
                                            string_type& digits) const;

                   virtual iter_type do_get(iter_type s, iter_type end, 
                                            bool intl, 
                                            ios_base& str, 
                                            ios_base::iostate& err,
                                            long double& units) const;

Parameters         <em>s</em> is an input iterator that points to the beginning 
                   character of a character sequence.

                   <em>end</em> is an input iterator that points to the end 
                   character of a character sequence.

                   <em>intl</em> is set to true or false for international 
                   formatting.

                   <em>str</em> is the reference of ios_base object used for 
                   formatting information.

                   <em>err</em> is used to set error conditions in the calling 
                   stream.
       
                   <em>units/digits</em> is used to store the extracted 
                   sequence.


Returns            This method returns an iterator that points to one
                   past the last character of a valid monetary sequence.

</pre>

<h3>Description</h3>
<p>
Each version of the do_get() method reads a sequence
of characters in the range [in, end) and extracts a monetary value. Characters are
read in the range until a monetary value is assembled, an error occurs or until no
more characters are available. The characters are interpreted according to str.flags(), 
moneypunct&lt;charT, true&gt;, or moneypunct&lt;charT,false&gt; facet str.getloc(). This will depend 
on whether the <em>intl</em> argument is true or false. The extracted sequence is the smallest
possible unit of currency stored in the arguments <em>digits</em> as a string or calculated
as a long double and stored in the argument <em>units</em>. If an error occurs then <em>digits</em> and
units will remain unchanged. The do_get() method returns an iterator pointing 
immediately beyond the last character that has been recognized as part of a valid monetary 
value.
</p>
<br>
<p>
The digit group separators are optional. But if no grouping is specified then the
thousands separator will not be considered part of the monetary format. If the space
or none are apart of the format pattern in moneypunct facet then the whitespaces, 
unless its at the end of the sequence, will be consumed. The currency symbol will
be optional if (str.flags() & ios_base::showbase) is false. If true then the currency
symbol is required and always consumed. If the currency symbol appears after all
other required elements then it will not be consumed.
</p>
<hr>

<pre>
<a name="get">
Method             get()</a>

Access             Public

Classification     Modifier

Syntax             iter_type get(iter_type s, iter_type end, bool intl, 
                                 ios_base& f, ios_base::iostate& err, 
                                 long double& quant) const;

                   iter_type get(iter_type s, iter_type end, bool intl, 
                                 ios_base& f, ios_base::iostate& err, 
                                 string_type& quant) const;

Parameters         <em>s</em> is an input iterator that points to the beginning 
                   character of a character sequence.

                   <em>end</em> is an input iterator that points to the end 
                   character of a character sequence.

                   <em>intl</em> is set to true or false for international 
                   formatting.

                   <em>f</em> is the reference of ios_base object used for 
                   formatting information.

                   <em>err</em> is used to set error conditions in the 
                   calling stream.

                   <em>quant</em> is used to store the extracted sequence.


Returns            This method returns an iterator that points to one
                   past the last character of a valid monetary sequence.

</pre>


<h3>Description</h3>
<p>
The get() member functions return do_get(s, end, intl, f, err, quant).
</p>
<hr>

<pre>
<a name="money-get">
Method             money_get()</a>

Access             Public

Classification     Constructor

Syntax             explicit money_get(size_t refs = 0);

Parameters         <em>refs</em>, if the refs argument = 0 then the destruction 
                   of the object is delegated to the locale or locales 
                   which contain it. If refs = 1 then the object must 
                   be explicitly deleted. The locale will not delete
                   it. The object can then be maintained across the 
                   lifetime of multiple locales.
 

Returns            None

</pre>

<h3>Description</h3>
<p>
The constructor constructs a money_get facet object.
</p>
<hr>

<pre>
<a name="~money-get">
Method             money_get()</a>

Access             Protected

Classification     Destructor

Syntax             ~money_get();

Parameters         None

Returns            None

</pre>

<h3>Description</h3>
<p>
The destructor destroys a money_get facet object.
</p>
<hr>


<a name="crd"><h2>The Class Relationship Diagram for money_get</h2></a>
<img src="moneyget.gif">
<hr>

</body>
</html>



⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -