summaryrefslogtreecommitdiff
path: root/doxygen/xml/classcmd2_1_1StubbornDict.xml
blob: 644649d912453717ab785ea498aaf483fab5ac8d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
<?xml version='1.0' encoding='UTF-8' standalone='no'?>
<doxygen xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="compound.xsd" version="1.7.5.1">
  <compounddef id="classcmd2_1_1StubbornDict" kind="class" prot="public">
    <compoundname>cmd2::StubbornDict</compoundname>
      <sectiondef kind="public-static-attrib">
      <memberdef kind="variable" id="classcmd2_1_1StubbornDict_1a66dc32a221c00611f1c131382703c333" prot="public" static="yes" mutable="no">
        <type></type>
        <definition>cmd2::StubbornDict::append</definition>
        <argsstring></argsstring>
        <name>append</name>
        <initializer>update</initializer>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="/Users/amrogers/Developer/Projects/cmd2/cmd2.py" line="287" bodyfile="/Users/amrogers/Developer/Projects/cmd2/cmd2.py" bodystart="287" bodyend="-1"/>
        <referencedby refid="classcmd2_1_1History_1a1c036910ea442db79fe012715b29c9db" compoundref="cmd2_8py" startline="1372" endline="1375">cmd2::History::extend</referencedby>
      </memberdef>
      </sectiondef>
      <sectiondef kind="public-func">
      <memberdef kind="function" id="classcmd2_1_1StubbornDict_1a219b3f21c078f3b8158de67beae62da2" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual">
        <type>def</type>
        <definition>def cmd2::StubbornDict::__add__</definition>
        <argsstring></argsstring>
        <name>__add__</name>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="/Users/amrogers/Developer/Projects/cmd2/cmd2.py" line="291" bodyfile="/Users/amrogers/Developer/Projects/cmd2/cmd2.py" bodystart="291" bodyend="294"/>
        <references refid="namespacecmd2_1aae88fcdb31e45b322ecdaf7df9922823" compoundref="cmd2_8py" startline="321" endline="335">cmd2::stubbornDict</references>
      </memberdef>
      <memberdef kind="function" id="classcmd2_1_1StubbornDict_1ad7c49b2ca37c0c88b198853706ae7e99" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual">
        <type>def</type>
        <definition>def cmd2::StubbornDict::__iadd__</definition>
        <argsstring></argsstring>
        <name>__iadd__</name>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="/Users/amrogers/Developer/Projects/cmd2/cmd2.py" line="288" bodyfile="/Users/amrogers/Developer/Projects/cmd2/cmd2.py" bodystart="288" bodyend="290"/>
        <references refid="classcmd2_1_1StubbornDict_1a669dd7f5373f3726d8c8fb52a1e85bbd" compoundref="cmd2_8py" startline="285" endline="286">update</references>
      </memberdef>
      <memberdef kind="function" id="classcmd2_1_1StubbornDict_1a190b1b2bd8a914bafaab137c5b1276ea" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual">
        <type>def</type>
        <definition>def cmd2::StubbornDict::__radd__</definition>
        <argsstring></argsstring>
        <name>__radd__</name>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="/Users/amrogers/Developer/Projects/cmd2/cmd2.py" line="295" bodyfile="/Users/amrogers/Developer/Projects/cmd2/cmd2.py" bodystart="295" bodyend="299"/>
        <references refid="namespacecmd2_1aae88fcdb31e45b322ecdaf7df9922823" compoundref="cmd2_8py" startline="321" endline="335">cmd2::stubbornDict</references>
      </memberdef>
      <memberdef kind="function" id="classcmd2_1_1StubbornDict_1ad46f55b61faae98d241e30d52cd04eee" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual">
        <type>def</type>
        <definition>def cmd2::StubbornDict::to_dict</definition>
        <argsstring></argsstring>
        <name>to_dict</name>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="/Users/amrogers/Developer/Projects/cmd2/cmd2.py" line="301" bodyfile="/Users/amrogers/Developer/Projects/cmd2/cmd2.py" bodystart="301" bodyend="320"/>
      </memberdef>
      <memberdef kind="function" id="classcmd2_1_1StubbornDict_1a669dd7f5373f3726d8c8fb52a1e85bbd" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual">
        <type>def</type>
        <definition>def cmd2::StubbornDict::update</definition>
        <argsstring></argsstring>
        <name>update</name>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="/Users/amrogers/Developer/Projects/cmd2/cmd2.py" line="285" bodyfile="/Users/amrogers/Developer/Projects/cmd2/cmd2.py" bodystart="285" bodyend="286"/>
        <referencedby refid="classcmd2_1_1StubbornDict_1ad7c49b2ca37c0c88b198853706ae7e99" compoundref="cmd2_8py" startline="288" endline="290">__iadd__</referencedby>
      </memberdef>
      </sectiondef>
    <briefdescription>
    </briefdescription>
    <detaileddescription>
<para><verbatim>Dictionary that tolerates many input formats.
Create it with stubbornDict(arg) factory function.

&gt;&gt;&gt; d = StubbornDict(large=&apos;gross&apos;, small=&apos;klein&apos;)
&gt;&gt;&gt; sorted(d.items())
[(&apos;large&apos;, &apos;gross&apos;), (&apos;small&apos;, &apos;klein&apos;)]
&gt;&gt;&gt; d.append([&apos;plain&apos;, &apos;  plaid&apos;])
&gt;&gt;&gt; sorted(d.items())
[(&apos;large&apos;, &apos;gross&apos;), (&apos;plaid&apos;, &apos;&apos;), (&apos;plain&apos;, &apos;&apos;), (&apos;small&apos;, &apos;klein&apos;)]
&gt;&gt;&gt; d += &apos;   girl Frauelein, Maedchen\\n\\n shoe schuh&apos;
&gt;&gt;&gt; sorted(d.items())
[(&apos;girl&apos;, &apos;Frauelein, Maedchen&apos;), (&apos;large&apos;, &apos;gross&apos;), (&apos;plaid&apos;, &apos;&apos;), (&apos;plain&apos;, &apos;&apos;), (&apos;shoe&apos;, &apos;schuh&apos;), (&apos;small&apos;, &apos;klein&apos;)]
</verbatim> </para>    </detaileddescription>
    <location file="/Users/amrogers/Developer/Projects/cmd2/cmd2.py" line="284" bodyfile="/Users/amrogers/Developer/Projects/cmd2/cmd2.py" bodystart="271" bodyend="321"/>
    <listofallmembers>
      <member refid="classcmd2_1_1StubbornDict_1a219b3f21c078f3b8158de67beae62da2" prot="public" virt="non-virtual"><scope>cmd2::StubbornDict</scope><name>__add__</name></member>
      <member refid="classcmd2_1_1StubbornDict_1ad7c49b2ca37c0c88b198853706ae7e99" prot="public" virt="non-virtual"><scope>cmd2::StubbornDict</scope><name>__iadd__</name></member>
      <member refid="classcmd2_1_1StubbornDict_1a190b1b2bd8a914bafaab137c5b1276ea" prot="public" virt="non-virtual"><scope>cmd2::StubbornDict</scope><name>__radd__</name></member>
      <member refid="classcmd2_1_1StubbornDict_1a66dc32a221c00611f1c131382703c333" prot="public" virt="non-virtual"><scope>cmd2::StubbornDict</scope><name>append</name></member>
      <member refid="classcmd2_1_1StubbornDict_1ad46f55b61faae98d241e30d52cd04eee" prot="public" virt="non-virtual"><scope>cmd2::StubbornDict</scope><name>to_dict</name></member>
      <member refid="classcmd2_1_1StubbornDict_1a669dd7f5373f3726d8c8fb52a1e85bbd" prot="public" virt="non-virtual"><scope>cmd2::StubbornDict</scope><name>update</name></member>
    </listofallmembers>
  </compounddef>
</doxygen>