aboutsummaryrefslogtreecommitdiffstats
path: root/doc/html/Self_8h_source.html
diff options
context:
space:
mode:
Diffstat (limited to 'doc/html/Self_8h_source.html')
-rw-r--r--doc/html/Self_8h_source.html415
1 files changed, 228 insertions, 187 deletions
diff --git a/doc/html/Self_8h_source.html b/doc/html/Self_8h_source.html
index 5a60810..eeb17f3 100644
--- a/doc/html/Self_8h_source.html
+++ b/doc/html/Self_8h_source.html
@@ -28,7 +28,7 @@
<td id="projectlogo"><img alt="Logo" src="logo.png"/></td>
<td style="padding-left: 0.5em;">
<div id="projectname">Templates -- Meow
- &#160;<span id="projectnumber">204.13.18</span>
+ &#160;<span id="projectnumber">1.2.9</span>
</div>
<div id="projectbrief">A C++ template contains kinds of interesting classes and functions</div>
</td>
@@ -62,197 +62,238 @@ $(document).ready(function(){initNavTree('Self_8h_source.html','');});
<div class="line"><a name="l00002"></a><span class="lineno"> 2</span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define Self_h__</span></div>
<div class="line"><a name="l00003"></a><span class="lineno"> 3</span>&#160;<span class="preprocessor"></span></div>
<div class="line"><a name="l00004"></a><span class="lineno"> 4</span>&#160;<span class="preprocessor">#include &lt;cstdlib&gt;</span></div>
-<div class="line"><a name="l00005"></a><span class="lineno"> 5</span>&#160;</div>
-<div class="line"><a name="l00006"></a><span class="lineno"> 6</span>&#160;<span class="keyword">namespace </span>meow {</div>
-<div class="line"><a name="l00007"></a><span class="lineno"> 7</span>&#160;</div>
-<div class="line"><a name="l00103"></a><span class="lineno"> 103</span>&#160;<span class="keyword">template</span>&lt;<span class="keyword">class</span> Data&gt;</div>
-<div class="line"><a name="l00104"></a><span class="lineno"><a class="line" href="classmeow_1_1Self.html"> 104</a></span>&#160;<span class="keyword">class </span><a class="code" href="classmeow_1_1Self.html">Self</a> {</div>
-<div class="line"><a name="l00105"></a><span class="lineno"> 105</span>&#160;<span class="keyword">public</span>:</div>
-<div class="line"><a name="l00109"></a><span class="lineno"><a class="line" href="classmeow_1_1Self.html#aa7d169e9d20d590f3e571206084797f8"> 109</a></span>&#160; <span class="keyword">enum</span> <a class="code" href="classmeow_1_1Self.html#aa7d169e9d20d590f3e571206084797f8">DuplicateType</a> {</div>
-<div class="line"><a name="l00110"></a><span class="lineno"><a class="line" href="classmeow_1_1Self.html#aa7d169e9d20d590f3e571206084797f8adef1b0d02e1090b1b610a4ea91bd6730"> 110</a></span>&#160; <a class="code" href="classmeow_1_1Self.html#aa7d169e9d20d590f3e571206084797f8adef1b0d02e1090b1b610a4ea91bd6730">COPY_FROM</a>, </div>
-<div class="line"><a name="l00111"></a><span class="lineno"><a class="line" href="classmeow_1_1Self.html#aa7d169e9d20d590f3e571206084797f8a40c8a3eba568e04a5ce09ee0fa881822"> 111</a></span>&#160; <a class="code" href="classmeow_1_1Self.html#aa7d169e9d20d590f3e571206084797f8a40c8a3eba568e04a5ce09ee0fa881822">REFERENCE_FROM</a> </div>
-<div class="line"><a name="l00112"></a><span class="lineno"> 112</span>&#160; };</div>
-<div class="line"><a name="l00113"></a><span class="lineno"> 113</span>&#160;<span class="keyword">private</span>:</div>
-<div class="line"><a name="l00114"></a><span class="lineno"> 114</span>&#160; <span class="keyword">class </span>Body {</div>
-<div class="line"><a name="l00115"></a><span class="lineno"> 115</span>&#160; <span class="keyword">private</span>:</div>
-<div class="line"><a name="l00116"></a><span class="lineno"> 116</span>&#160; <span class="keyword">struct </span>Kernel {</div>
-<div class="line"><a name="l00117"></a><span class="lineno"> 117</span>&#160; Data* data_;</div>
-<div class="line"><a name="l00118"></a><span class="lineno"> 118</span>&#160; <span class="keywordtype">size_t</span> counter_;</div>
-<div class="line"><a name="l00119"></a><span class="lineno"> 119</span>&#160; Body <span class="keyword">const</span>* master_;</div>
-<div class="line"><a name="l00120"></a><span class="lineno"> 120</span>&#160;</div>
-<div class="line"><a name="l00121"></a><span class="lineno"> 121</span>&#160; Kernel(Body <span class="keyword">const</span>* master):</div>
-<div class="line"><a name="l00122"></a><span class="lineno"> 122</span>&#160; data_(<span class="keyword">new</span> Data( )), counter_(1), master_(master) {</div>
-<div class="line"><a name="l00123"></a><span class="lineno"> 123</span>&#160; }</div>
-<div class="line"><a name="l00124"></a><span class="lineno"> 124</span>&#160;</div>
-<div class="line"><a name="l00125"></a><span class="lineno"> 125</span>&#160; Kernel(Body <span class="keyword">const</span>* master, Data <span class="keyword">const</span>&amp; d):</div>
-<div class="line"><a name="l00126"></a><span class="lineno"> 126</span>&#160; data_(<span class="keyword">new</span> Data(d)), counter_(1), master_(master) {</div>
-<div class="line"><a name="l00127"></a><span class="lineno"> 127</span>&#160; }</div>
-<div class="line"><a name="l00128"></a><span class="lineno"> 128</span>&#160;</div>
-<div class="line"><a name="l00129"></a><span class="lineno"> 129</span>&#160; ~Kernel() {</div>
-<div class="line"><a name="l00130"></a><span class="lineno"> 130</span>&#160; }</div>
-<div class="line"><a name="l00131"></a><span class="lineno"> 131</span>&#160; };</div>
-<div class="line"><a name="l00132"></a><span class="lineno"> 132</span>&#160;</div>
-<div class="line"><a name="l00133"></a><span class="lineno"> 133</span>&#160; Kernel* pointer_;</div>
-<div class="line"><a name="l00134"></a><span class="lineno"> 134</span>&#160; <span class="keywordtype">size_t</span> counter_;</div>
-<div class="line"><a name="l00135"></a><span class="lineno"> 135</span>&#160;</div>
-<div class="line"><a name="l00136"></a><span class="lineno"> 136</span>&#160; <span class="keywordtype">void</span> clear() {</div>
-<div class="line"><a name="l00137"></a><span class="lineno"> 137</span>&#160; --(pointer_-&gt;counter_);</div>
-<div class="line"><a name="l00138"></a><span class="lineno"> 138</span>&#160; <span class="keywordflow">if</span> (pointer_-&gt;counter_ &lt;= 0) {</div>
-<div class="line"><a name="l00139"></a><span class="lineno"> 139</span>&#160; <span class="keyword">delete</span> pointer_;</div>
-<div class="line"><a name="l00140"></a><span class="lineno"> 140</span>&#160; }</div>
-<div class="line"><a name="l00141"></a><span class="lineno"> 141</span>&#160; }</div>
-<div class="line"><a name="l00142"></a><span class="lineno"> 142</span>&#160; <span class="keyword">public</span>:</div>
-<div class="line"><a name="l00143"></a><span class="lineno"> 143</span>&#160; Body( ): pointer_(new Kernel(this )), counter_(1) { }</div>
-<div class="line"><a name="l00144"></a><span class="lineno"> 144</span>&#160; Body(Data <span class="keyword">const</span>&amp; d): pointer_(new Kernel(this, d)), counter_(1) { }</div>
-<div class="line"><a name="l00145"></a><span class="lineno"> 145</span>&#160; Body(Body <span class="keyword">const</span>&amp; b): pointer_(b.pointer_ ), counter_(1) {</div>
-<div class="line"><a name="l00146"></a><span class="lineno"> 146</span>&#160; ++(pointer_-&gt;counter_);</div>
-<div class="line"><a name="l00147"></a><span class="lineno"> 147</span>&#160; }</div>
-<div class="line"><a name="l00148"></a><span class="lineno"> 148</span>&#160;</div>
-<div class="line"><a name="l00149"></a><span class="lineno"> 149</span>&#160; ~Body() {</div>
-<div class="line"><a name="l00150"></a><span class="lineno"> 150</span>&#160; clear();</div>
-<div class="line"><a name="l00151"></a><span class="lineno"> 151</span>&#160; }</div>
-<div class="line"><a name="l00152"></a><span class="lineno"> 152</span>&#160;</div>
-<div class="line"><a name="l00153"></a><span class="lineno"> 153</span>&#160; Body&amp; <a class="code" href="classmeow_1_1Self.html#a9cd016a38a09f479fe2ed83eb1ebdae2">copyFrom</a>(Body <span class="keyword">const</span>&amp; b) {</div>
-<div class="line"><a name="l00154"></a><span class="lineno"> 154</span>&#160; clear();</div>
-<div class="line"><a name="l00155"></a><span class="lineno"> 155</span>&#160; pointer_ = b.pointer_;</div>
-<div class="line"><a name="l00156"></a><span class="lineno"> 156</span>&#160; ++(pointer_-&gt;counter_);</div>
-<div class="line"><a name="l00157"></a><span class="lineno"> 157</span>&#160; <span class="keywordflow">return</span> *<span class="keyword">this</span>;</div>
-<div class="line"><a name="l00158"></a><span class="lineno"> 158</span>&#160; }</div>
-<div class="line"><a name="l00159"></a><span class="lineno"> 159</span>&#160;</div>
-<div class="line"><a name="l00160"></a><span class="lineno"> 160</span>&#160; Data <span class="keyword">const</span>* access()<span class="keyword"> const </span>{</div>
-<div class="line"><a name="l00161"></a><span class="lineno"> 161</span>&#160; <span class="keywordflow">return</span> pointer_-&gt;data_;</div>
-<div class="line"><a name="l00162"></a><span class="lineno"> 162</span>&#160; }</div>
-<div class="line"><a name="l00163"></a><span class="lineno"> 163</span>&#160;</div>
-<div class="line"><a name="l00164"></a><span class="lineno"> 164</span>&#160; Data* modify() {</div>
-<div class="line"><a name="l00165"></a><span class="lineno"> 165</span>&#160; <span class="keywordflow">if</span> (pointer_-&gt;counter_ &gt; 1) {</div>
-<div class="line"><a name="l00166"></a><span class="lineno"> 166</span>&#160; --(pointer_-&gt;counter_);</div>
-<div class="line"><a name="l00167"></a><span class="lineno"> 167</span>&#160; Kernel* dupl = <span class="keyword">new</span> Kernel(<span class="keyword">this</span>, *pointer_-&gt;data_);</div>
-<div class="line"><a name="l00168"></a><span class="lineno"> 168</span>&#160; <span class="keywordflow">if</span> (pointer_-&gt;master_ == <span class="keyword">this</span> || pointer_-&gt;master_ == NULL) {</div>
-<div class="line"><a name="l00169"></a><span class="lineno"> 169</span>&#160; std::swap(pointer_-&gt;pointer_, dupl-&gt;pointer_);</div>
-<div class="line"><a name="l00170"></a><span class="lineno"> 170</span>&#160; pointer_-&gt;master_ = NULL;</div>
-<div class="line"><a name="l00171"></a><span class="lineno"> 171</span>&#160; }</div>
-<div class="line"><a name="l00172"></a><span class="lineno"> 172</span>&#160; pointer_ = dupl;</div>
-<div class="line"><a name="l00173"></a><span class="lineno"> 173</span>&#160; }</div>
-<div class="line"><a name="l00174"></a><span class="lineno"> 174</span>&#160; <span class="keywordflow">else</span> <span class="keywordflow">if</span> (pointer_-&gt;master_ == NULL) {</div>
-<div class="line"><a name="l00175"></a><span class="lineno"> 175</span>&#160; pointer_-&gt;master_ = <span class="keyword">this</span>;</div>
-<div class="line"><a name="l00176"></a><span class="lineno"> 176</span>&#160; }</div>
-<div class="line"><a name="l00177"></a><span class="lineno"> 177</span>&#160; <span class="keywordflow">return</span> pointer_-&gt;data_;</div>
-<div class="line"><a name="l00178"></a><span class="lineno"> 178</span>&#160; }</div>
-<div class="line"><a name="l00179"></a><span class="lineno"> 179</span>&#160;</div>
-<div class="line"><a name="l00180"></a><span class="lineno"> 180</span>&#160; <span class="keywordtype">int</span> attach() {</div>
-<div class="line"><a name="l00181"></a><span class="lineno"> 181</span>&#160; <span class="keywordflow">return</span> ++counter_;</div>
-<div class="line"><a name="l00182"></a><span class="lineno"> 182</span>&#160; }</div>
-<div class="line"><a name="l00183"></a><span class="lineno"> 183</span>&#160;</div>
-<div class="line"><a name="l00184"></a><span class="lineno"> 184</span>&#160; <span class="keywordtype">int</span> detach() {</div>
-<div class="line"><a name="l00185"></a><span class="lineno"> 185</span>&#160; <span class="keywordflow">return</span> --counter_;</div>
-<div class="line"><a name="l00186"></a><span class="lineno"> 186</span>&#160; }</div>
-<div class="line"><a name="l00187"></a><span class="lineno"> 187</span>&#160; };</div>
+<div class="line"><a name="l00005"></a><span class="lineno"> 5</span>&#160;<span class="preprocessor">#include &lt;algorithm&gt;</span></div>
+<div class="line"><a name="l00006"></a><span class="lineno"> 6</span>&#160;</div>
+<div class="line"><a name="l00007"></a><span class="lineno"> 7</span>&#160;<span class="keyword">namespace </span>meow {</div>
+<div class="line"><a name="l00008"></a><span class="lineno"> 8</span>&#160;</div>
+<div class="line"><a name="l00009"></a><span class="lineno"><a class="line" href="Self_8h.html#ae68c240a801c89ab2107fad7a61f94c9"> 9</a></span>&#160;<span class="preprocessor">#define DO_NOT_USE_SELF</span></div>
+<div class="line"><a name="l00010"></a><span class="lineno"> 10</span>&#160;<span class="preprocessor"></span><span class="preprocessor">#ifdef DO_NOT_USE_SELF</span></div>
+<div class="line"><a name="l00011"></a><span class="lineno"> 11</span>&#160;<span class="preprocessor"></span></div>
+<div class="line"><a name="l00012"></a><span class="lineno"> 12</span>&#160;<span class="keyword">template</span>&lt;<span class="keyword">class</span> Data&gt;</div>
+<div class="line"><a name="l00013"></a><span class="lineno"><a class="line" href="classmeow_1_1Self.html"> 13</a></span>&#160;<span class="keyword">class </span><a class="code" href="classmeow_1_1Self.html">Self</a> {</div>
+<div class="line"><a name="l00014"></a><span class="lineno"> 14</span>&#160;<span class="keyword">public</span>:</div>
+<div class="line"><a name="l00015"></a><span class="lineno"><a class="line" href="classmeow_1_1Self.html#aa7d169e9d20d590f3e571206084797f8"> 15</a></span>&#160; <span class="keyword">enum</span> <a class="code" href="classmeow_1_1Self.html#aa7d169e9d20d590f3e571206084797f8">DuplicateType</a> {</div>
+<div class="line"><a name="l00016"></a><span class="lineno"><a class="line" href="classmeow_1_1Self.html#aa7d169e9d20d590f3e571206084797f8adef1b0d02e1090b1b610a4ea91bd6730"> 16</a></span>&#160; <a class="code" href="classmeow_1_1Self.html#aa7d169e9d20d590f3e571206084797f8adef1b0d02e1090b1b610a4ea91bd6730">COPY_FROM</a></div>
+<div class="line"><a name="l00017"></a><span class="lineno"> 17</span>&#160; };</div>
+<div class="line"><a name="l00018"></a><span class="lineno"> 18</span>&#160;<span class="keyword">private</span>:</div>
+<div class="line"><a name="l00019"></a><span class="lineno"> 19</span>&#160; Data data_;</div>
+<div class="line"><a name="l00020"></a><span class="lineno"> 20</span>&#160;<span class="keyword">public</span>:</div>
+<div class="line"><a name="l00021"></a><span class="lineno"><a class="line" href="classmeow_1_1Self.html#a6b39fcc4b184809f9aeaeb1c9a0bac2d"> 21</a></span>&#160; <a class="code" href="classmeow_1_1Self.html#a6b39fcc4b184809f9aeaeb1c9a0bac2d">Self</a>( ) { }</div>
+<div class="line"><a name="l00022"></a><span class="lineno"><a class="line" href="classmeow_1_1Self.html#af3220c1e1d7966c6dbaf4ec62f8cbc2f"> 22</a></span>&#160; <a class="code" href="classmeow_1_1Self.html#af3220c1e1d7966c6dbaf4ec62f8cbc2f">Self</a>(Data <span class="keyword">const</span>&amp; d ): data_(d) { }</div>
+<div class="line"><a name="l00023"></a><span class="lineno"><a class="line" href="classmeow_1_1Self.html#afee797a10c73a1c8e02c8e6315a2930b"> 23</a></span>&#160; <a class="code" href="classmeow_1_1Self.html#afee797a10c73a1c8e02c8e6315a2930b">Self</a>(<a class="code" href="classmeow_1_1Self.html">Self</a> <span class="keyword">const</span>&amp; b, <a class="code" href="classmeow_1_1Self.html#aa7d169e9d20d590f3e571206084797f8">DuplicateType</a> d): data_(b.data_) { }</div>
+<div class="line"><a name="l00024"></a><span class="lineno"> 24</span>&#160; <a class="code" href="classmeow_1_1Self.html#a6b39fcc4b184809f9aeaeb1c9a0bac2d">Self</a>(<a class="code" href="classmeow_1_1Self.html">Self</a> <span class="keyword">const</span>&amp; b);</div>
+<div class="line"><a name="l00025"></a><span class="lineno"><a class="line" href="classmeow_1_1Self.html#ada16564a03665b10810a6342d61044bc"> 25</a></span>&#160; <a class="code" href="classmeow_1_1Self.html#ada16564a03665b10810a6342d61044bc">~Self</a>() { }</div>
+<div class="line"><a name="l00026"></a><span class="lineno"><a class="line" href="classmeow_1_1Self.html#a6063551c3e6ac647500e938ade8fbc99"> 26</a></span>&#160; Data <span class="keyword">const</span>* <a class="code" href="classmeow_1_1Self.html#a6063551c3e6ac647500e938ade8fbc99">operator-&gt;</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> &amp;data_; }</div>
+<div class="line"><a name="l00027"></a><span class="lineno"><a class="line" href="classmeow_1_1Self.html#ace312355261c68ac7531767939f5c4c2"> 27</a></span>&#160; Data * <a class="code" href="classmeow_1_1Self.html#ace312355261c68ac7531767939f5c4c2">operator-&gt;</a>() { <span class="keywordflow">return</span> &amp;data_; }</div>
+<div class="line"><a name="l00028"></a><span class="lineno"><a class="line" href="classmeow_1_1Self.html#a5962339e9ee49312ab770f1119256ca6"> 28</a></span>&#160; <a class="code" href="classmeow_1_1Self.html">Self</a>&amp; <a class="code" href="classmeow_1_1Self.html#a5962339e9ee49312ab770f1119256ca6">operator()</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> *((<a class="code" href="classmeow_1_1Self.html">Self</a>*)<span class="keyword">this</span>); }</div>
+<div class="line"><a name="l00029"></a><span class="lineno"><a class="line" href="classmeow_1_1Self.html#a9cd016a38a09f479fe2ed83eb1ebdae2"> 29</a></span>&#160; <a class="code" href="classmeow_1_1Self.html">Self</a> <span class="keyword">const</span>&amp; <a class="code" href="classmeow_1_1Self.html#a9cd016a38a09f479fe2ed83eb1ebdae2">copyFrom</a>(<a class="code" href="classmeow_1_1Self.html">Self</a> <span class="keyword">const</span>&amp; s) { data_ = s.data_; <span class="keywordflow">return</span> *<span class="keyword">this</span>; }</div>
+<div class="line"><a name="l00030"></a><span class="lineno"><a class="line" href="classmeow_1_1Self.html#a63e1570c927c7fa3b95b71fe978e355d"> 30</a></span>&#160; <a class="code" href="classmeow_1_1Self.html">Self</a> <span class="keyword">const</span>&amp; <a class="code" href="classmeow_1_1Self.html#a63e1570c927c7fa3b95b71fe978e355d">referenceFrom</a>(<a class="code" href="classmeow_1_1Self.html">Self</a> <span class="keyword">const</span>&amp; s) {</div>
+<div class="line"><a name="l00031"></a><span class="lineno"> 31</span>&#160; <span class="keywordflow">return</span> <a class="code" href="classmeow_1_1Self.html#a9cd016a38a09f479fe2ed83eb1ebdae2">copyFrom</a>(s);</div>
+<div class="line"><a name="l00032"></a><span class="lineno"> 32</span>&#160; }</div>
+<div class="line"><a name="l00033"></a><span class="lineno"><a class="line" href="classmeow_1_1Self.html#ae4256bfc598bb0db76141ffce506806e"> 33</a></span>&#160; <a class="code" href="classmeow_1_1Self.html">Self</a> <span class="keyword">const</span>&amp; <a class="code" href="classmeow_1_1Self.html#ae4256bfc598bb0db76141ffce506806e">duplicateFrom</a>(<a class="code" href="classmeow_1_1Self.html">Self</a> <span class="keyword">const</span>&amp; s, <a class="code" href="classmeow_1_1Self.html#aa7d169e9d20d590f3e571206084797f8">DuplicateType</a> t) {</div>
+<div class="line"><a name="l00034"></a><span class="lineno"> 34</span>&#160; <span class="keywordflow">return</span> <a class="code" href="classmeow_1_1Self.html#a9cd016a38a09f479fe2ed83eb1ebdae2">copyFrom</a>(s);</div>
+<div class="line"><a name="l00035"></a><span class="lineno"> 35</span>&#160; }</div>
+<div class="line"><a name="l00036"></a><span class="lineno"><a class="line" href="classmeow_1_1Self.html#ab3671e44693b79e2f987f59652d46ca9"> 36</a></span>&#160; <span class="keywordtype">bool</span> <a class="code" href="classmeow_1_1Self.html#ab3671e44693b79e2f987f59652d46ca9">same</a>(<a class="code" href="classmeow_1_1Self.html">Self</a> <span class="keyword">const</span>&amp; s)<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <span class="keyword">false</span>; }</div>
+<div class="line"><a name="l00037"></a><span class="lineno"><a class="line" href="classmeow_1_1Self.html#a91098e2218c358470e81d64f35d6491d"> 37</a></span>&#160; <span class="keywordtype">bool</span> <a class="code" href="classmeow_1_1Self.html#a91098e2218c358470e81d64f35d6491d">equal</a>(<a class="code" href="classmeow_1_1Self.html">Self</a> <span class="keyword">const</span>&amp; s)<span class="keyword"> const </span>{ <span class="keywordflow">return</span> data_ == s.data_; }</div>
+<div class="line"><a name="l00038"></a><span class="lineno"><a class="line" href="classmeow_1_1Self.html#a10f22a83c3afcf65f8f9680f2a2f945c"> 38</a></span>&#160; <span class="keywordtype">bool</span> <a class="code" href="classmeow_1_1Self.html#a10f22a83c3afcf65f8f9680f2a2f945c">referenceLess</a>(<a class="code" href="classmeow_1_1Self.html">Self</a> <span class="keyword">const</span>&amp; s)<span class="keyword"> const </span>{ <span class="keywordflow">return</span> (<span class="keyword">this</span> &lt; &amp;s); }</div>
+<div class="line"><a name="l00039"></a><span class="lineno"> 39</span>&#160; <span class="keywordtype">void</span> <a class="code" href="classmeow_1_1Self.html#af3277e1109c59e5f81549889b344a675">operator=</a>(<a class="code" href="classmeow_1_1Self.html">Self</a> <span class="keyword">const</span>&amp; a);</div>
+<div class="line"><a name="l00040"></a><span class="lineno"> 40</span>&#160;};</div>
+<div class="line"><a name="l00041"></a><span class="lineno"> 41</span>&#160;</div>
+<div class="line"><a name="l00042"></a><span class="lineno"> 42</span>&#160;<span class="preprocessor">#else</span></div>
+<div class="line"><a name="l00043"></a><span class="lineno"> 43</span>&#160;<span class="preprocessor"></span></div>
+<div class="line"><a name="l00139"></a><span class="lineno"> 139</span>&#160;<span class="keyword">template</span>&lt;<span class="keyword">class</span> Data&gt;</div>
+<div class="line"><a name="l00140"></a><span class="lineno"> 140</span>&#160;<span class="keyword">class </span>Self {</div>
+<div class="line"><a name="l00141"></a><span class="lineno"> 141</span>&#160;<span class="keyword">public</span>:</div>
+<div class="line"><a name="l00145"></a><span class="lineno"> 145</span>&#160; <span class="keyword">enum</span> <a class="code" href="classmeow_1_1Self.html#aa7d169e9d20d590f3e571206084797f8">DuplicateType</a> {</div>
+<div class="line"><a name="l00146"></a><span class="lineno"> 146</span>&#160; <a class="code" href="classmeow_1_1Self.html#aa7d169e9d20d590f3e571206084797f8adef1b0d02e1090b1b610a4ea91bd6730">COPY_FROM</a>, </div>
+<div class="line"><a name="l00147"></a><span class="lineno"> 147</span>&#160; REFERENCE_FROM </div>
+<div class="line"><a name="l00148"></a><span class="lineno"> 148</span>&#160; };</div>
+<div class="line"><a name="l00149"></a><span class="lineno"> 149</span>&#160;<span class="keyword">private</span>:</div>
+<div class="line"><a name="l00150"></a><span class="lineno"> 150</span>&#160; <span class="keyword">class </span>Body {</div>
+<div class="line"><a name="l00151"></a><span class="lineno"> 151</span>&#160; <span class="keyword">private</span>:</div>
+<div class="line"><a name="l00152"></a><span class="lineno"> 152</span>&#160; <span class="keyword">struct </span>Kernel {</div>
+<div class="line"><a name="l00153"></a><span class="lineno"> 153</span>&#160; Data* data_;</div>
+<div class="line"><a name="l00154"></a><span class="lineno"> 154</span>&#160; <span class="keywordtype">size_t</span> counter_;</div>
+<div class="line"><a name="l00155"></a><span class="lineno"> 155</span>&#160; Body <span class="keyword">const</span>* master_;</div>
+<div class="line"><a name="l00156"></a><span class="lineno"> 156</span>&#160;</div>
+<div class="line"><a name="l00157"></a><span class="lineno"> 157</span>&#160; Kernel(Body <span class="keyword">const</span>* master):</div>
+<div class="line"><a name="l00158"></a><span class="lineno"> 158</span>&#160; data_(new Data( )), counter_(1), master_(master) {</div>
+<div class="line"><a name="l00159"></a><span class="lineno"> 159</span>&#160; }</div>
+<div class="line"><a name="l00160"></a><span class="lineno"> 160</span>&#160;</div>
+<div class="line"><a name="l00161"></a><span class="lineno"> 161</span>&#160; Kernel(Body <span class="keyword">const</span>* master, Data <span class="keyword">const</span>&amp; d):</div>
+<div class="line"><a name="l00162"></a><span class="lineno"> 162</span>&#160; data_(new Data(d)), counter_(1), master_(master) {</div>
+<div class="line"><a name="l00163"></a><span class="lineno"> 163</span>&#160; }</div>
+<div class="line"><a name="l00164"></a><span class="lineno"> 164</span>&#160;</div>
+<div class="line"><a name="l00165"></a><span class="lineno"> 165</span>&#160; ~Kernel() {</div>
+<div class="line"><a name="l00166"></a><span class="lineno"> 166</span>&#160; <span class="keyword">delete</span> data_;</div>
+<div class="line"><a name="l00167"></a><span class="lineno"> 167</span>&#160; }</div>
+<div class="line"><a name="l00168"></a><span class="lineno"> 168</span>&#160; };</div>
+<div class="line"><a name="l00169"></a><span class="lineno"> 169</span>&#160;</div>
+<div class="line"><a name="l00170"></a><span class="lineno"> 170</span>&#160; Kernel* pointer_;</div>
+<div class="line"><a name="l00171"></a><span class="lineno"> 171</span>&#160; <span class="keywordtype">size_t</span> counter_;</div>
+<div class="line"><a name="l00172"></a><span class="lineno"> 172</span>&#160;</div>
+<div class="line"><a name="l00173"></a><span class="lineno"> 173</span>&#160; <span class="keywordtype">void</span> clear() {</div>
+<div class="line"><a name="l00174"></a><span class="lineno"> 174</span>&#160; --(pointer_-&gt;counter_);</div>
+<div class="line"><a name="l00175"></a><span class="lineno"> 175</span>&#160; <span class="keywordflow">if</span> (pointer_-&gt;counter_ &lt;= 0) {</div>
+<div class="line"><a name="l00176"></a><span class="lineno"> 176</span>&#160; <span class="keyword">delete</span> pointer_;</div>
+<div class="line"><a name="l00177"></a><span class="lineno"> 177</span>&#160; }</div>
+<div class="line"><a name="l00178"></a><span class="lineno"> 178</span>&#160; <span class="keywordflow">else</span> <span class="keywordflow">if</span> (pointer_-&gt;master_ == <span class="keyword">this</span>) {</div>
+<div class="line"><a name="l00179"></a><span class="lineno"> 179</span>&#160; pointer_-&gt;master_ = NULL;</div>
+<div class="line"><a name="l00180"></a><span class="lineno"> 180</span>&#160; }</div>
+<div class="line"><a name="l00181"></a><span class="lineno"> 181</span>&#160; }</div>
+<div class="line"><a name="l00182"></a><span class="lineno"> 182</span>&#160; <span class="keyword">public</span>:</div>
+<div class="line"><a name="l00183"></a><span class="lineno"> 183</span>&#160; Body( ): pointer_(new Kernel(this )), counter_(1) { }</div>
+<div class="line"><a name="l00184"></a><span class="lineno"> 184</span>&#160; Body(Data <span class="keyword">const</span>&amp; d): pointer_(new Kernel(this, d)), counter_(1) { }</div>
+<div class="line"><a name="l00185"></a><span class="lineno"> 185</span>&#160; Body(Body <span class="keyword">const</span>&amp; b): pointer_(b.pointer_ ), counter_(1) {</div>
+<div class="line"><a name="l00186"></a><span class="lineno"> 186</span>&#160; ++(pointer_-&gt;counter_);</div>
+<div class="line"><a name="l00187"></a><span class="lineno"> 187</span>&#160; }</div>
<div class="line"><a name="l00188"></a><span class="lineno"> 188</span>&#160;</div>
-<div class="line"><a name="l00189"></a><span class="lineno"> 189</span>&#160; Body* body_;</div>
-<div class="line"><a name="l00190"></a><span class="lineno"> 190</span>&#160;</div>
-<div class="line"><a name="l00191"></a><span class="lineno"> 191</span>&#160; <span class="keywordtype">void</span> clear() {</div>
-<div class="line"><a name="l00192"></a><span class="lineno"> 192</span>&#160; <span class="keywordflow">if</span> (body_-&gt;detach() &lt;= 0) {</div>
-<div class="line"><a name="l00193"></a><span class="lineno"> 193</span>&#160; <span class="keyword">delete</span> body_;</div>
-<div class="line"><a name="l00194"></a><span class="lineno"> 194</span>&#160; }</div>
-<div class="line"><a name="l00195"></a><span class="lineno"> 195</span>&#160; }</div>
-<div class="line"><a name="l00196"></a><span class="lineno"> 196</span>&#160;<span class="keyword">public</span>:</div>
-<div class="line"><a name="l00200"></a><span class="lineno"><a class="line" href="classmeow_1_1Self.html#a6b39fcc4b184809f9aeaeb1c9a0bac2d"> 200</a></span>&#160; <a class="code" href="classmeow_1_1Self.html#a6b39fcc4b184809f9aeaeb1c9a0bac2d">Self</a>(): body_(new Body()) {</div>
-<div class="line"><a name="l00201"></a><span class="lineno"> 201</span>&#160; }</div>
-<div class="line"><a name="l00202"></a><span class="lineno"> 202</span>&#160;</div>
-<div class="line"><a name="l00208"></a><span class="lineno"><a class="line" href="classmeow_1_1Self.html#af3220c1e1d7966c6dbaf4ec62f8cbc2f"> 208</a></span>&#160; <a class="code" href="classmeow_1_1Self.html#af3220c1e1d7966c6dbaf4ec62f8cbc2f">Self</a>(Data <span class="keyword">const</span>&amp; d): body_(new Body(d)) {</div>
-<div class="line"><a name="l00209"></a><span class="lineno"> 209</span>&#160; }</div>
-<div class="line"><a name="l00210"></a><span class="lineno"> 210</span>&#160;</div>
-<div class="line"><a name="l00217"></a><span class="lineno"><a class="line" href="classmeow_1_1Self.html#afee797a10c73a1c8e02c8e6315a2930b"> 217</a></span>&#160; <a class="code" href="classmeow_1_1Self.html#afee797a10c73a1c8e02c8e6315a2930b">Self</a>(<a class="code" href="classmeow_1_1Self.html">Self</a> <span class="keyword">const</span>&amp; b, <a class="code" href="classmeow_1_1Self.html#aa7d169e9d20d590f3e571206084797f8">DuplicateType</a> d) {</div>
-<div class="line"><a name="l00218"></a><span class="lineno"> 218</span>&#160; <span class="keywordflow">switch</span>(d) {</div>
-<div class="line"><a name="l00219"></a><span class="lineno"> 219</span>&#160; <span class="keywordflow">case</span> <a class="code" href="classmeow_1_1Self.html#aa7d169e9d20d590f3e571206084797f8adef1b0d02e1090b1b610a4ea91bd6730">COPY_FROM</a>:</div>
-<div class="line"><a name="l00220"></a><span class="lineno"> 220</span>&#160; body_ = <span class="keyword">new</span> Body(*b.body_);</div>
-<div class="line"><a name="l00221"></a><span class="lineno"> 221</span>&#160; <span class="keywordflow">break</span>;</div>
-<div class="line"><a name="l00222"></a><span class="lineno"> 222</span>&#160; <span class="keywordflow">case</span> <a class="code" href="classmeow_1_1Self.html#aa7d169e9d20d590f3e571206084797f8a40c8a3eba568e04a5ce09ee0fa881822">REFERENCE_FROM</a>:</div>
-<div class="line"><a name="l00223"></a><span class="lineno"> 223</span>&#160; body_ = b.body_;</div>
-<div class="line"><a name="l00224"></a><span class="lineno"> 224</span>&#160; body_-&gt;attach();</div>
-<div class="line"><a name="l00225"></a><span class="lineno"> 225</span>&#160; <span class="keywordflow">break</span>;</div>
+<div class="line"><a name="l00189"></a><span class="lineno"> 189</span>&#160; ~Body() {</div>
+<div class="line"><a name="l00190"></a><span class="lineno"> 190</span>&#160; clear();</div>
+<div class="line"><a name="l00191"></a><span class="lineno"> 191</span>&#160; }</div>
+<div class="line"><a name="l00192"></a><span class="lineno"> 192</span>&#160;</div>
+<div class="line"><a name="l00193"></a><span class="lineno"> 193</span>&#160; Body&amp; <a class="code" href="classmeow_1_1Self.html#a9cd016a38a09f479fe2ed83eb1ebdae2">copyFrom</a>(Body <span class="keyword">const</span>&amp; b) {</div>
+<div class="line"><a name="l00194"></a><span class="lineno"> 194</span>&#160; clear();</div>
+<div class="line"><a name="l00195"></a><span class="lineno"> 195</span>&#160; pointer_ = b.pointer_;</div>
+<div class="line"><a name="l00196"></a><span class="lineno"> 196</span>&#160; ++(pointer_-&gt;counter_);</div>
+<div class="line"><a name="l00197"></a><span class="lineno"> 197</span>&#160; <span class="keywordflow">return</span> *<span class="keyword">this</span>;</div>
+<div class="line"><a name="l00198"></a><span class="lineno"> 198</span>&#160; }</div>
+<div class="line"><a name="l00199"></a><span class="lineno"> 199</span>&#160;</div>
+<div class="line"><a name="l00200"></a><span class="lineno"> 200</span>&#160; Data <span class="keyword">const</span>* access()<span class="keyword"> const </span>{</div>
+<div class="line"><a name="l00201"></a><span class="lineno"> 201</span>&#160; <span class="keywordflow">return</span> pointer_-&gt;data_;</div>
+<div class="line"><a name="l00202"></a><span class="lineno"> 202</span>&#160; }</div>
+<div class="line"><a name="l00203"></a><span class="lineno"> 203</span>&#160;</div>
+<div class="line"><a name="l00204"></a><span class="lineno"> 204</span>&#160; Data* modify() {</div>
+<div class="line"><a name="l00205"></a><span class="lineno"> 205</span>&#160; <span class="keywordflow">if</span> (pointer_-&gt;counter_ &gt; 1) {</div>
+<div class="line"><a name="l00206"></a><span class="lineno"> 206</span>&#160; --(pointer_-&gt;counter_);</div>
+<div class="line"><a name="l00207"></a><span class="lineno"> 207</span>&#160; Kernel* dupl = <span class="keyword">new</span> Kernel(<span class="keyword">this</span>, *pointer_-&gt;data_);</div>
+<div class="line"><a name="l00208"></a><span class="lineno"> 208</span>&#160; <span class="keywordflow">if</span> (pointer_-&gt;master_ == <span class="keyword">this</span>) {</div>
+<div class="line"><a name="l00209"></a><span class="lineno"> 209</span>&#160; std::swap(pointer_-&gt;data_, dupl-&gt;data_);</div>
+<div class="line"><a name="l00210"></a><span class="lineno"> 210</span>&#160; pointer_-&gt;master_ = NULL;</div>
+<div class="line"><a name="l00211"></a><span class="lineno"> 211</span>&#160; }</div>
+<div class="line"><a name="l00212"></a><span class="lineno"> 212</span>&#160; pointer_ = dupl;</div>
+<div class="line"><a name="l00213"></a><span class="lineno"> 213</span>&#160; }</div>
+<div class="line"><a name="l00214"></a><span class="lineno"> 214</span>&#160; <span class="keywordflow">else</span> <span class="keywordflow">if</span> (pointer_-&gt;master_ == NULL) {</div>
+<div class="line"><a name="l00215"></a><span class="lineno"> 215</span>&#160; pointer_-&gt;master_ = <span class="keyword">this</span>;</div>
+<div class="line"><a name="l00216"></a><span class="lineno"> 216</span>&#160; }</div>
+<div class="line"><a name="l00217"></a><span class="lineno"> 217</span>&#160; <span class="keywordflow">return</span> pointer_-&gt;data_;</div>
+<div class="line"><a name="l00218"></a><span class="lineno"> 218</span>&#160; }</div>
+<div class="line"><a name="l00219"></a><span class="lineno"> 219</span>&#160;</div>
+<div class="line"><a name="l00220"></a><span class="lineno"> 220</span>&#160; <span class="keywordtype">int</span> attach() {</div>
+<div class="line"><a name="l00221"></a><span class="lineno"> 221</span>&#160; <span class="keywordflow">return</span> ++counter_;</div>
+<div class="line"><a name="l00222"></a><span class="lineno"> 222</span>&#160; }</div>
+<div class="line"><a name="l00223"></a><span class="lineno"> 223</span>&#160;</div>
+<div class="line"><a name="l00224"></a><span class="lineno"> 224</span>&#160; <span class="keywordtype">int</span> detach() {</div>
+<div class="line"><a name="l00225"></a><span class="lineno"> 225</span>&#160; <span class="keywordflow">return</span> --counter_;</div>
<div class="line"><a name="l00226"></a><span class="lineno"> 226</span>&#160; }</div>
-<div class="line"><a name="l00227"></a><span class="lineno"> 227</span>&#160; }</div>
+<div class="line"><a name="l00227"></a><span class="lineno"> 227</span>&#160; };</div>
<div class="line"><a name="l00228"></a><span class="lineno"> 228</span>&#160;</div>
-<div class="line"><a name="l00230"></a><span class="lineno"> 230</span>&#160; <a class="code" href="classmeow_1_1Self.html#a6b39fcc4b184809f9aeaeb1c9a0bac2d">Self</a>(<a class="code" href="classmeow_1_1Self.html">Self</a> <span class="keyword">const</span>&amp; b);</div>
-<div class="line"><a name="l00231"></a><span class="lineno"> 231</span>&#160;</div>
-<div class="line"><a name="l00233"></a><span class="lineno"><a class="line" href="classmeow_1_1Self.html#ada16564a03665b10810a6342d61044bc"> 233</a></span>&#160; <a class="code" href="classmeow_1_1Self.html#ada16564a03665b10810a6342d61044bc">~Self</a>() {</div>
-<div class="line"><a name="l00234"></a><span class="lineno"> 234</span>&#160; clear();</div>
+<div class="line"><a name="l00229"></a><span class="lineno"> 229</span>&#160; Body* body_;</div>
+<div class="line"><a name="l00230"></a><span class="lineno"> 230</span>&#160;</div>
+<div class="line"><a name="l00231"></a><span class="lineno"> 231</span>&#160; <span class="keywordtype">void</span> clear() {</div>
+<div class="line"><a name="l00232"></a><span class="lineno"> 232</span>&#160; <span class="keywordflow">if</span> (body_-&gt;detach() &lt;= 0) {</div>
+<div class="line"><a name="l00233"></a><span class="lineno"> 233</span>&#160; <span class="keyword">delete</span> body_;</div>
+<div class="line"><a name="l00234"></a><span class="lineno"> 234</span>&#160; }</div>
<div class="line"><a name="l00235"></a><span class="lineno"> 235</span>&#160; }</div>
-<div class="line"><a name="l00236"></a><span class="lineno"> 236</span>&#160;</div>
-<div class="line"><a name="l00238"></a><span class="lineno"><a class="line" href="classmeow_1_1Self.html#a6063551c3e6ac647500e938ade8fbc99"> 238</a></span>&#160; Data <span class="keyword">const</span>* <a class="code" href="classmeow_1_1Self.html#a6063551c3e6ac647500e938ade8fbc99">operator-&gt;</a>()<span class="keyword"> const </span>{</div>
-<div class="line"><a name="l00239"></a><span class="lineno"> 239</span>&#160; <span class="keywordflow">return</span> body_-&gt;access();</div>
-<div class="line"><a name="l00240"></a><span class="lineno"> 240</span>&#160; }</div>
-<div class="line"><a name="l00241"></a><span class="lineno"> 241</span>&#160;</div>
-<div class="line"><a name="l00245"></a><span class="lineno"><a class="line" href="classmeow_1_1Self.html#ace312355261c68ac7531767939f5c4c2"> 245</a></span>&#160; Data* <a class="code" href="classmeow_1_1Self.html#ace312355261c68ac7531767939f5c4c2">operator-&gt;</a>() {</div>
-<div class="line"><a name="l00246"></a><span class="lineno"> 246</span>&#160; <span class="keywordflow">return</span> body_-&gt;modify();</div>
-<div class="line"><a name="l00247"></a><span class="lineno"> 247</span>&#160; }</div>
-<div class="line"><a name="l00248"></a><span class="lineno"> 248</span>&#160;</div>
-<div class="line"><a name="l00250"></a><span class="lineno"><a class="line" href="classmeow_1_1Self.html#a5962339e9ee49312ab770f1119256ca6"> 250</a></span>&#160; <a class="code" href="classmeow_1_1Self.html">Self</a>&amp; <a class="code" href="classmeow_1_1Self.html#a5962339e9ee49312ab770f1119256ca6">operator()</a>()<span class="keyword"> const </span>{</div>
-<div class="line"><a name="l00251"></a><span class="lineno"> 251</span>&#160; <span class="keywordflow">return</span> *((<a class="code" href="classmeow_1_1Self.html">Self</a>*)<span class="keyword">this</span>);</div>
-<div class="line"><a name="l00252"></a><span class="lineno"> 252</span>&#160; }</div>
-<div class="line"><a name="l00253"></a><span class="lineno"> 253</span>&#160;</div>
-<div class="line"><a name="l00260"></a><span class="lineno"><a class="line" href="classmeow_1_1Self.html#a9cd016a38a09f479fe2ed83eb1ebdae2"> 260</a></span>&#160; <a class="code" href="classmeow_1_1Self.html">Self</a> <span class="keyword">const</span>&amp; <a class="code" href="classmeow_1_1Self.html#a9cd016a38a09f479fe2ed83eb1ebdae2">copyFrom</a>(<a class="code" href="classmeow_1_1Self.html">Self</a> <span class="keyword">const</span>&amp; s) {</div>
-<div class="line"><a name="l00261"></a><span class="lineno"> 261</span>&#160; <span class="keywordflow">if</span> (body_-&gt;access() != s.body_-&gt;access()) {</div>
-<div class="line"><a name="l00262"></a><span class="lineno"> 262</span>&#160; body_-&gt;copyFrom(*s.body_);</div>
-<div class="line"><a name="l00263"></a><span class="lineno"> 263</span>&#160; }</div>
-<div class="line"><a name="l00264"></a><span class="lineno"> 264</span>&#160; <span class="keywordflow">return</span> *<span class="keyword">this</span>;</div>
-<div class="line"><a name="l00265"></a><span class="lineno"> 265</span>&#160; }</div>
-<div class="line"><a name="l00266"></a><span class="lineno"> 266</span>&#160;</div>
-<div class="line"><a name="l00273"></a><span class="lineno"><a class="line" href="classmeow_1_1Self.html#a63e1570c927c7fa3b95b71fe978e355d"> 273</a></span>&#160; <a class="code" href="classmeow_1_1Self.html">Self</a> <span class="keyword">const</span>&amp; <a class="code" href="classmeow_1_1Self.html#a63e1570c927c7fa3b95b71fe978e355d">referenceFrom</a>(<a class="code" href="classmeow_1_1Self.html">Self</a> <span class="keyword">const</span>&amp; s) {</div>
-<div class="line"><a name="l00274"></a><span class="lineno"> 274</span>&#160; <span class="keywordflow">if</span> (body_ != s.body_) {</div>
-<div class="line"><a name="l00275"></a><span class="lineno"> 275</span>&#160; clear();</div>
-<div class="line"><a name="l00276"></a><span class="lineno"> 276</span>&#160; body_ = s.body_;</div>
-<div class="line"><a name="l00277"></a><span class="lineno"> 277</span>&#160; body_-&gt;attach();</div>
-<div class="line"><a name="l00278"></a><span class="lineno"> 278</span>&#160; }</div>
-<div class="line"><a name="l00279"></a><span class="lineno"> 279</span>&#160; <span class="keywordflow">return</span> *<span class="keyword">this</span>;</div>
+<div class="line"><a name="l00236"></a><span class="lineno"> 236</span>&#160;<span class="keyword">public</span>:</div>
+<div class="line"><a name="l00240"></a><span class="lineno"> 240</span>&#160; <a class="code" href="classmeow_1_1Self.html#a6b39fcc4b184809f9aeaeb1c9a0bac2d">Self</a>(): body_(new Body()) {</div>
+<div class="line"><a name="l00241"></a><span class="lineno"> 241</span>&#160; }</div>
+<div class="line"><a name="l00242"></a><span class="lineno"> 242</span>&#160;</div>
+<div class="line"><a name="l00248"></a><span class="lineno"> 248</span>&#160; <a class="code" href="classmeow_1_1Self.html#a6b39fcc4b184809f9aeaeb1c9a0bac2d">Self</a>(Data <span class="keyword">const</span>&amp; d): body_(new Body(d)) {</div>
+<div class="line"><a name="l00249"></a><span class="lineno"> 249</span>&#160; }</div>
+<div class="line"><a name="l00250"></a><span class="lineno"> 250</span>&#160;</div>
+<div class="line"><a name="l00257"></a><span class="lineno"> 257</span>&#160; <a class="code" href="classmeow_1_1Self.html#a6b39fcc4b184809f9aeaeb1c9a0bac2d">Self</a>(<a class="code" href="classmeow_1_1Self.html#a6b39fcc4b184809f9aeaeb1c9a0bac2d">Self</a> <span class="keyword">const</span>&amp; b, <a class="code" href="classmeow_1_1Self.html#aa7d169e9d20d590f3e571206084797f8">DuplicateType</a> d) {</div>
+<div class="line"><a name="l00258"></a><span class="lineno"> 258</span>&#160; <span class="keywordflow">switch</span>(d) {</div>
+<div class="line"><a name="l00259"></a><span class="lineno"> 259</span>&#160; <span class="keywordflow">case</span> <a class="code" href="classmeow_1_1Self.html#aa7d169e9d20d590f3e571206084797f8adef1b0d02e1090b1b610a4ea91bd6730">COPY_FROM</a>:</div>
+<div class="line"><a name="l00260"></a><span class="lineno"> 260</span>&#160; body_ = <span class="keyword">new</span> Body(*b.body_);</div>
+<div class="line"><a name="l00261"></a><span class="lineno"> 261</span>&#160; <span class="keywordflow">break</span>;</div>
+<div class="line"><a name="l00262"></a><span class="lineno"> 262</span>&#160; <span class="keywordflow">case</span> REFERENCE_FROM:</div>
+<div class="line"><a name="l00263"></a><span class="lineno"> 263</span>&#160; body_ = b.body_;</div>
+<div class="line"><a name="l00264"></a><span class="lineno"> 264</span>&#160; body_-&gt;attach();</div>
+<div class="line"><a name="l00265"></a><span class="lineno"> 265</span>&#160; <span class="keywordflow">break</span>;</div>
+<div class="line"><a name="l00266"></a><span class="lineno"> 266</span>&#160; }</div>
+<div class="line"><a name="l00267"></a><span class="lineno"> 267</span>&#160; }</div>
+<div class="line"><a name="l00268"></a><span class="lineno"> 268</span>&#160;</div>
+<div class="line"><a name="l00270"></a><span class="lineno"> 270</span>&#160; <a class="code" href="classmeow_1_1Self.html#a6b39fcc4b184809f9aeaeb1c9a0bac2d">Self</a>(<a class="code" href="classmeow_1_1Self.html#a6b39fcc4b184809f9aeaeb1c9a0bac2d">Self</a> <span class="keyword">const</span>&amp; b);</div>
+<div class="line"><a name="l00271"></a><span class="lineno"> 271</span>&#160;</div>
+<div class="line"><a name="l00273"></a><span class="lineno"> 273</span>&#160; <a class="code" href="classmeow_1_1Self.html#ada16564a03665b10810a6342d61044bc">~Self</a>() {</div>
+<div class="line"><a name="l00274"></a><span class="lineno"> 274</span>&#160; clear();</div>
+<div class="line"><a name="l00275"></a><span class="lineno"> 275</span>&#160; }</div>
+<div class="line"><a name="l00276"></a><span class="lineno"> 276</span>&#160;</div>
+<div class="line"><a name="l00278"></a><span class="lineno"> 278</span>&#160; Data <span class="keyword">const</span>* <a class="code" href="classmeow_1_1Self.html#a6063551c3e6ac647500e938ade8fbc99">operator-&gt;</a>()<span class="keyword"> const </span>{</div>
+<div class="line"><a name="l00279"></a><span class="lineno"> 279</span>&#160; <span class="keywordflow">return</span> body_-&gt;access();</div>
<div class="line"><a name="l00280"></a><span class="lineno"> 280</span>&#160; }</div>
<div class="line"><a name="l00281"></a><span class="lineno"> 281</span>&#160;</div>
-<div class="line"><a name="l00289"></a><span class="lineno"><a class="line" href="classmeow_1_1Self.html#ae4256bfc598bb0db76141ffce506806e"> 289</a></span>&#160; <a class="code" href="classmeow_1_1Self.html">Self</a> <span class="keyword">const</span>&amp; <a class="code" href="classmeow_1_1Self.html#ae4256bfc598bb0db76141ffce506806e">duplicateFrom</a>(<a class="code" href="classmeow_1_1Self.html">Self</a> <span class="keyword">const</span>&amp; s, <a class="code" href="classmeow_1_1Self.html#aa7d169e9d20d590f3e571206084797f8">DuplicateType</a> t) {</div>
-<div class="line"><a name="l00290"></a><span class="lineno"> 290</span>&#160; <span class="keywordflow">switch</span>(t) {</div>
-<div class="line"><a name="l00291"></a><span class="lineno"> 291</span>&#160; <span class="keywordflow">case</span> <a class="code" href="classmeow_1_1Self.html#aa7d169e9d20d590f3e571206084797f8adef1b0d02e1090b1b610a4ea91bd6730">COPY_FROM</a> : <span class="keywordflow">return</span> <a class="code" href="classmeow_1_1Self.html#a9cd016a38a09f479fe2ed83eb1ebdae2">copyFrom</a>(s);</div>
-<div class="line"><a name="l00292"></a><span class="lineno"> 292</span>&#160; <span class="keywordflow">case</span> <a class="code" href="classmeow_1_1Self.html#aa7d169e9d20d590f3e571206084797f8a40c8a3eba568e04a5ce09ee0fa881822">REFERENCE_FROM</a>: <span class="keywordflow">return</span> <a class="code" href="classmeow_1_1Self.html#a63e1570c927c7fa3b95b71fe978e355d">referenceFrom</a>(s);</div>
-<div class="line"><a name="l00293"></a><span class="lineno"> 293</span>&#160; }</div>
-<div class="line"><a name="l00294"></a><span class="lineno"> 294</span>&#160; <span class="keywordflow">return</span> *<span class="keyword">this</span>;</div>
-<div class="line"><a name="l00295"></a><span class="lineno"> 295</span>&#160; }</div>
-<div class="line"><a name="l00296"></a><span class="lineno"> 296</span>&#160;</div>
-<div class="line"><a name="l00304"></a><span class="lineno"><a class="line" href="classmeow_1_1Self.html#ab3671e44693b79e2f987f59652d46ca9"> 304</a></span>&#160; <span class="keywordtype">bool</span> <a class="code" href="classmeow_1_1Self.html#ab3671e44693b79e2f987f59652d46ca9">same</a>(<a class="code" href="classmeow_1_1Self.html">Self</a> <span class="keyword">const</span>&amp; s)<span class="keyword"> const </span>{</div>
-<div class="line"><a name="l00305"></a><span class="lineno"> 305</span>&#160; <span class="keywordflow">return</span> (body_ == s.body_);</div>
-<div class="line"><a name="l00306"></a><span class="lineno"> 306</span>&#160; }</div>
-<div class="line"><a name="l00307"></a><span class="lineno"> 307</span>&#160;</div>
-<div class="line"><a name="l00316"></a><span class="lineno"><a class="line" href="classmeow_1_1Self.html#a91098e2218c358470e81d64f35d6491d"> 316</a></span>&#160; <span class="keywordtype">bool</span> <a class="code" href="classmeow_1_1Self.html#a91098e2218c358470e81d64f35d6491d">equal</a>(<a class="code" href="classmeow_1_1Self.html">Self</a> <span class="keyword">const</span>&amp; s)<span class="keyword"> const </span>{</div>
-<div class="line"><a name="l00317"></a><span class="lineno"> 317</span>&#160; <span class="keywordflow">if</span> (<a class="code" href="classmeow_1_1Self.html#ab3671e44693b79e2f987f59652d46ca9">same</a>(s) || body_-&gt;access() == s.body_-&gt;access()) <span class="keywordflow">return</span> <span class="keyword">true</span>;</div>
-<div class="line"><a name="l00318"></a><span class="lineno"> 318</span>&#160; <span class="keywordflow">return</span> (*body_-&gt;access() == *s.body_-&gt;access());</div>
-<div class="line"><a name="l00319"></a><span class="lineno"> 319</span>&#160; }</div>
-<div class="line"><a name="l00320"></a><span class="lineno"> 320</span>&#160;</div>
-<div class="line"><a name="l00326"></a><span class="lineno"><a class="line" href="classmeow_1_1Self.html#a10f22a83c3afcf65f8f9680f2a2f945c"> 326</a></span>&#160; <span class="keywordtype">bool</span> <a class="code" href="classmeow_1_1Self.html#a10f22a83c3afcf65f8f9680f2a2f945c">referenceLess</a>(<a class="code" href="classmeow_1_1Self.html">Self</a> <span class="keyword">const</span>&amp; s)<span class="keyword"> const </span>{</div>
-<div class="line"><a name="l00327"></a><span class="lineno"> 327</span>&#160; <span class="keywordflow">return</span> (body_ &lt; s.body_);</div>
-<div class="line"><a name="l00328"></a><span class="lineno"> 328</span>&#160; }</div>
-<div class="line"><a name="l00329"></a><span class="lineno"> 329</span>&#160;</div>
-<div class="line"><a name="l00331"></a><span class="lineno"> 331</span>&#160; <span class="keywordtype">void</span> <a class="code" href="classmeow_1_1Self.html#af3277e1109c59e5f81549889b344a675">operator=</a>(<a class="code" href="classmeow_1_1Self.html">Self</a> <span class="keyword">const</span>&amp; a);</div>
-<div class="line"><a name="l00332"></a><span class="lineno"> 332</span>&#160;};</div>
-<div class="line"><a name="l00333"></a><span class="lineno"> 333</span>&#160;</div>
-<div class="line"><a name="l00334"></a><span class="lineno"> 334</span>&#160;} <span class="comment">// meow</span></div>
-<div class="line"><a name="l00335"></a><span class="lineno"> 335</span>&#160;</div>
-<div class="line"><a name="l00336"></a><span class="lineno"> 336</span>&#160;<span class="preprocessor">#endif // Self_h__</span></div>
-<div class="ttc" id="classmeow_1_1Self_html_aa7d169e9d20d590f3e571206084797f8adef1b0d02e1090b1b610a4ea91bd6730"><div class="ttname"><a href="classmeow_1_1Self.html#aa7d169e9d20d590f3e571206084797f8adef1b0d02e1090b1b610a4ea91bd6730">meow::Self::COPY_FROM</a></div><div class="ttdoc">Normal copy operation. </div><div class="ttdef"><b>Definition:</b> <a href="Self_8h_source.html#l00110">Self.h:110</a></div></div>
-<div class="ttc" id="classmeow_1_1Self_html_a6063551c3e6ac647500e938ade8fbc99"><div class="ttname"><a href="classmeow_1_1Self.html#a6063551c3e6ac647500e938ade8fbc99">meow::Self::operator-&gt;</a></div><div class="ttdeci">Data const * operator-&gt;() const </div><div class="ttdoc">Return the constant pointer to the data. </div><div class="ttdef"><b>Definition:</b> <a href="Self_8h_source.html#l00238">Self.h:238</a></div></div>
-<div class="ttc" id="classmeow_1_1Self_html_a9cd016a38a09f479fe2ed83eb1ebdae2"><div class="ttname"><a href="classmeow_1_1Self.html#a9cd016a38a09f479fe2ed83eb1ebdae2">meow::Self::copyFrom</a></div><div class="ttdeci">Self const &amp; copyFrom(Self const &amp;s)</div><div class="ttdoc">Copy the gived Self to myself. </div><div class="ttdef"><b>Definition:</b> <a href="Self_8h_source.html#l00260">Self.h:260</a></div></div>
-<div class="ttc" id="classmeow_1_1Self_html_a10f22a83c3afcf65f8f9680f2a2f945c"><div class="ttname"><a href="classmeow_1_1Self.html#a10f22a83c3afcf65f8f9680f2a2f945c">meow::Self::referenceLess</a></div><div class="ttdeci">bool referenceLess(Self const &amp;s) const </div><div class="ttdoc">Order compare by reference pointer. </div><div class="ttdef"><b>Definition:</b> <a href="Self_8h_source.html#l00326">Self.h:326</a></div></div>
-<div class="ttc" id="classmeow_1_1Self_html_afee797a10c73a1c8e02c8e6315a2930b"><div class="ttname"><a href="classmeow_1_1Self.html#afee797a10c73a1c8e02c8e6315a2930b">meow::Self::Self</a></div><div class="ttdeci">Self(Self const &amp;b, DuplicateType d)</div><div class="ttdoc">constructor with given another Self </div><div class="ttdef"><b>Definition:</b> <a href="Self_8h_source.html#l00217">Self.h:217</a></div></div>
-<div class="ttc" id="classmeow_1_1Self_html_af3277e1109c59e5f81549889b344a675"><div class="ttname"><a href="classmeow_1_1Self.html#af3277e1109c59e5f81549889b344a675">meow::Self::operator=</a></div><div class="ttdeci">void operator=(Self const &amp;a)</div><div class="ttdoc">Disallow default &#39;operator=&#39;. </div></div>
-<div class="ttc" id="classmeow_1_1Self_html_a6b39fcc4b184809f9aeaeb1c9a0bac2d"><div class="ttname"><a href="classmeow_1_1Self.html#a6b39fcc4b184809f9aeaeb1c9a0bac2d">meow::Self::Self</a></div><div class="ttdeci">Self()</div><div class="ttdoc">constructor with a real entity </div><div class="ttdef"><b>Definition:</b> <a href="Self_8h_source.html#l00200">Self.h:200</a></div></div>
-<div class="ttc" id="classmeow_1_1Self_html_ace312355261c68ac7531767939f5c4c2"><div class="ttname"><a href="classmeow_1_1Self.html#ace312355261c68ac7531767939f5c4c2">meow::Self::operator-&gt;</a></div><div class="ttdeci">Data * operator-&gt;()</div><div class="ttdoc">Return the non-constant pointer to the data (COR&#39;s clone might occure here. </div><div class="ttdef"><b>Definition:</b> <a href="Self_8h_source.html#l00245">Self.h:245</a></div></div>
-<div class="ttc" id="classmeow_1_1Self_html_ada16564a03665b10810a6342d61044bc"><div class="ttname"><a href="classmeow_1_1Self.html#ada16564a03665b10810a6342d61044bc">meow::Self::~Self</a></div><div class="ttdeci">~Self()</div><div class="ttdoc">destructor </div><div class="ttdef"><b>Definition:</b> <a href="Self_8h_source.html#l00233">Self.h:233</a></div></div>
-<div class="ttc" id="classmeow_1_1Self_html_ab3671e44693b79e2f987f59652d46ca9"><div class="ttname"><a href="classmeow_1_1Self.html#ab3671e44693b79e2f987f59652d46ca9">meow::Self::same</a></div><div class="ttdeci">bool same(Self const &amp;s) const </div><div class="ttdoc">Compare tht if the gived Self object is reference from the same object of me. </div><div class="ttdef"><b>Definition:</b> <a href="Self_8h_source.html#l00304">Self.h:304</a></div></div>
-<div class="ttc" id="classmeow_1_1Self_html_a91098e2218c358470e81d64f35d6491d"><div class="ttname"><a href="classmeow_1_1Self.html#a91098e2218c358470e81d64f35d6491d">meow::Self::equal</a></div><div class="ttdeci">bool equal(Self const &amp;s) const </div><div class="ttdoc">Compare that the data are the same. </div><div class="ttdef"><b>Definition:</b> <a href="Self_8h_source.html#l00316">Self.h:316</a></div></div>
-<div class="ttc" id="classmeow_1_1Self_html_aa7d169e9d20d590f3e571206084797f8a40c8a3eba568e04a5ce09ee0fa881822"><div class="ttname"><a href="classmeow_1_1Self.html#aa7d169e9d20d590f3e571206084797f8a40c8a3eba568e04a5ce09ee0fa881822">meow::Self::REFERENCE_FROM</a></div><div class="ttdoc">By reference, much like pointer&#39;s copy operation. </div><div class="ttdef"><b>Definition:</b> <a href="Self_8h_source.html#l00111">Self.h:111</a></div></div>
-<div class="ttc" id="classmeow_1_1Self_html_a5962339e9ee49312ab770f1119256ca6"><div class="ttname"><a href="classmeow_1_1Self.html#a5962339e9ee49312ab770f1119256ca6">meow::Self::operator()</a></div><div class="ttdeci">Self &amp; operator()() const </div><div class="ttdoc">Return the non-constant reference of *this. </div><div class="ttdef"><b>Definition:</b> <a href="Self_8h_source.html#l00250">Self.h:250</a></div></div>
-<div class="ttc" id="classmeow_1_1Self_html_aa7d169e9d20d590f3e571206084797f8"><div class="ttname"><a href="classmeow_1_1Self.html#aa7d169e9d20d590f3e571206084797f8">meow::Self&lt; Myself &gt;::DuplicateType</a></div><div class="ttdeci">DuplicateType</div><div class="ttdoc">Kind of ways of duplicating. </div><div class="ttdef"><b>Definition:</b> <a href="Self_8h_source.html#l00109">Self.h:109</a></div></div>
-<div class="ttc" id="classmeow_1_1Self_html_a63e1570c927c7fa3b95b71fe978e355d"><div class="ttname"><a href="classmeow_1_1Self.html#a63e1570c927c7fa3b95b71fe978e355d">meow::Self::referenceFrom</a></div><div class="ttdeci">Self const &amp; referenceFrom(Self const &amp;s)</div><div class="ttdoc">Reference myself from given Self object. </div><div class="ttdef"><b>Definition:</b> <a href="Self_8h_source.html#l00273">Self.h:273</a></div></div>
-<div class="ttc" id="classmeow_1_1Self_html"><div class="ttname"><a href="classmeow_1_1Self.html">meow::Self</a></div><div class="ttdoc">A little class use for packing the data part of another class. With this technique, it can achieve Copy-On-Write(COR) mechanism at background and have a reference mechanism which much more flexible then the one C++ has. </div><div class="ttdef"><b>Definition:</b> <a href="Self_8h_source.html#l00104">Self.h:104</a></div></div>
-<div class="ttc" id="classmeow_1_1Self_html_ae4256bfc598bb0db76141ffce506806e"><div class="ttname"><a href="classmeow_1_1Self.html#ae4256bfc598bb0db76141ffce506806e">meow::Self::duplicateFrom</a></div><div class="ttdeci">Self const &amp; duplicateFrom(Self const &amp;s, DuplicateType t)</div><div class="ttdoc">call copyFrom() or referenceFrom() depend on your instruction </div><div class="ttdef"><b>Definition:</b> <a href="Self_8h_source.html#l00289">Self.h:289</a></div></div>
-<div class="ttc" id="classmeow_1_1Self_html_af3220c1e1d7966c6dbaf4ec62f8cbc2f"><div class="ttname"><a href="classmeow_1_1Self.html#af3220c1e1d7966c6dbaf4ec62f8cbc2f">meow::Self::Self</a></div><div class="ttdeci">Self(Data const &amp;d)</div><div class="ttdoc">connstructor with a real entity with it using its copy constructor </div><div class="ttdef"><b>Definition:</b> <a href="Self_8h_source.html#l00208">Self.h:208</a></div></div>
+<div class="line"><a name="l00285"></a><span class="lineno"> 285</span>&#160; Data* <a class="code" href="classmeow_1_1Self.html#a6063551c3e6ac647500e938ade8fbc99">operator-&gt;</a>() {</div>
+<div class="line"><a name="l00286"></a><span class="lineno"> 286</span>&#160; <span class="keywordflow">return</span> body_-&gt;modify();</div>
+<div class="line"><a name="l00287"></a><span class="lineno"> 287</span>&#160; }</div>
+<div class="line"><a name="l00288"></a><span class="lineno"> 288</span>&#160;</div>
+<div class="line"><a name="l00290"></a><span class="lineno"> 290</span>&#160; <a class="code" href="classmeow_1_1Self.html#a6b39fcc4b184809f9aeaeb1c9a0bac2d">Self</a>&amp; <a class="code" href="classmeow_1_1Self.html#a5962339e9ee49312ab770f1119256ca6">operator()</a>()<span class="keyword"> const </span>{</div>
+<div class="line"><a name="l00291"></a><span class="lineno"> 291</span>&#160; <span class="keywordflow">return</span> *((<a class="code" href="classmeow_1_1Self.html#a6b39fcc4b184809f9aeaeb1c9a0bac2d">Self</a>*)<span class="keyword">this</span>);</div>
+<div class="line"><a name="l00292"></a><span class="lineno"> 292</span>&#160; }</div>
+<div class="line"><a name="l00293"></a><span class="lineno"> 293</span>&#160;</div>
+<div class="line"><a name="l00300"></a><span class="lineno"> 300</span>&#160; <a class="code" href="classmeow_1_1Self.html#a6b39fcc4b184809f9aeaeb1c9a0bac2d">Self</a> <span class="keyword">const</span>&amp; <a class="code" href="classmeow_1_1Self.html#a9cd016a38a09f479fe2ed83eb1ebdae2">copyFrom</a>(<a class="code" href="classmeow_1_1Self.html#a6b39fcc4b184809f9aeaeb1c9a0bac2d">Self</a> <span class="keyword">const</span>&amp; s) {</div>
+<div class="line"><a name="l00301"></a><span class="lineno"> 301</span>&#160; <span class="keywordflow">if</span> (body_-&gt;access() != s.body_-&gt;access()) {</div>
+<div class="line"><a name="l00302"></a><span class="lineno"> 302</span>&#160; body_-&gt;<a class="code" href="classmeow_1_1Self.html#a9cd016a38a09f479fe2ed83eb1ebdae2">copyFrom</a>(*s.body_);</div>
+<div class="line"><a name="l00303"></a><span class="lineno"> 303</span>&#160; }</div>
+<div class="line"><a name="l00304"></a><span class="lineno"> 304</span>&#160; <span class="keywordflow">return</span> *<span class="keyword">this</span>;</div>
+<div class="line"><a name="l00305"></a><span class="lineno"> 305</span>&#160; }</div>
+<div class="line"><a name="l00306"></a><span class="lineno"> 306</span>&#160;</div>
+<div class="line"><a name="l00313"></a><span class="lineno"> 313</span>&#160; <a class="code" href="classmeow_1_1Self.html#a6b39fcc4b184809f9aeaeb1c9a0bac2d">Self</a> <span class="keyword">const</span>&amp; <a class="code" href="classmeow_1_1Self.html#a63e1570c927c7fa3b95b71fe978e355d">referenceFrom</a>(<a class="code" href="classmeow_1_1Self.html#a6b39fcc4b184809f9aeaeb1c9a0bac2d">Self</a> <span class="keyword">const</span>&amp; s) {</div>
+<div class="line"><a name="l00314"></a><span class="lineno"> 314</span>&#160; <span class="keywordflow">if</span> (body_ != s.body_) {</div>
+<div class="line"><a name="l00315"></a><span class="lineno"> 315</span>&#160; clear();</div>
+<div class="line"><a name="l00316"></a><span class="lineno"> 316</span>&#160; body_ = s.body_;</div>
+<div class="line"><a name="l00317"></a><span class="lineno"> 317</span>&#160; body_-&gt;attach();</div>
+<div class="line"><a name="l00318"></a><span class="lineno"> 318</span>&#160; }</div>
+<div class="line"><a name="l00319"></a><span class="lineno"> 319</span>&#160; <span class="keywordflow">return</span> *<span class="keyword">this</span>;</div>
+<div class="line"><a name="l00320"></a><span class="lineno"> 320</span>&#160; }</div>
+<div class="line"><a name="l00321"></a><span class="lineno"> 321</span>&#160;</div>
+<div class="line"><a name="l00329"></a><span class="lineno"> 329</span>&#160; <a class="code" href="classmeow_1_1Self.html#a6b39fcc4b184809f9aeaeb1c9a0bac2d">Self</a> <span class="keyword">const</span>&amp; <a class="code" href="classmeow_1_1Self.html#ae4256bfc598bb0db76141ffce506806e">duplicateFrom</a>(<a class="code" href="classmeow_1_1Self.html#a6b39fcc4b184809f9aeaeb1c9a0bac2d">Self</a> <span class="keyword">const</span>&amp; s, <a class="code" href="classmeow_1_1Self.html#aa7d169e9d20d590f3e571206084797f8">DuplicateType</a> t) {</div>
+<div class="line"><a name="l00330"></a><span class="lineno"> 330</span>&#160; <span class="keywordflow">switch</span>(t) {</div>
+<div class="line"><a name="l00331"></a><span class="lineno"> 331</span>&#160; <span class="keywordflow">case</span> <a class="code" href="classmeow_1_1Self.html#aa7d169e9d20d590f3e571206084797f8adef1b0d02e1090b1b610a4ea91bd6730">COPY_FROM</a> : <span class="keywordflow">return</span> <a class="code" href="classmeow_1_1Self.html#a9cd016a38a09f479fe2ed83eb1ebdae2">copyFrom</a>(s);</div>
+<div class="line"><a name="l00332"></a><span class="lineno"> 332</span>&#160; <span class="keywordflow">case</span> REFERENCE_FROM: <span class="keywordflow">return</span> <a class="code" href="classmeow_1_1Self.html#a63e1570c927c7fa3b95b71fe978e355d">referenceFrom</a>(s);</div>
+<div class="line"><a name="l00333"></a><span class="lineno"> 333</span>&#160; }</div>
+<div class="line"><a name="l00334"></a><span class="lineno"> 334</span>&#160; <span class="keywordflow">return</span> *<span class="keyword">this</span>;</div>
+<div class="line"><a name="l00335"></a><span class="lineno"> 335</span>&#160; }</div>
+<div class="line"><a name="l00336"></a><span class="lineno"> 336</span>&#160;</div>
+<div class="line"><a name="l00344"></a><span class="lineno"> 344</span>&#160; <span class="keywordtype">bool</span> <a class="code" href="classmeow_1_1Self.html#ab3671e44693b79e2f987f59652d46ca9">same</a>(<a class="code" href="classmeow_1_1Self.html#a6b39fcc4b184809f9aeaeb1c9a0bac2d">Self</a> <span class="keyword">const</span>&amp; s)<span class="keyword"> const </span>{</div>
+<div class="line"><a name="l00345"></a><span class="lineno"> 345</span>&#160; <span class="keywordflow">return</span> (body_ == s.body_);</div>
+<div class="line"><a name="l00346"></a><span class="lineno"> 346</span>&#160; }</div>
+<div class="line"><a name="l00347"></a><span class="lineno"> 347</span>&#160;</div>
+<div class="line"><a name="l00356"></a><span class="lineno"> 356</span>&#160; <span class="keywordtype">bool</span> <a class="code" href="classmeow_1_1Self.html#a91098e2218c358470e81d64f35d6491d">equal</a>(<a class="code" href="classmeow_1_1Self.html#a6b39fcc4b184809f9aeaeb1c9a0bac2d">Self</a> <span class="keyword">const</span>&amp; s)<span class="keyword"> const </span>{</div>
+<div class="line"><a name="l00357"></a><span class="lineno"> 357</span>&#160; <span class="keywordflow">if</span> (<a class="code" href="classmeow_1_1Self.html#ab3671e44693b79e2f987f59652d46ca9">same</a>(s) || body_-&gt;access() == s.body_-&gt;access()) <span class="keywordflow">return</span> <span class="keyword">true</span>;</div>
+<div class="line"><a name="l00358"></a><span class="lineno"> 358</span>&#160; <span class="keywordflow">return</span> (*body_-&gt;access() == *s.body_-&gt;access());</div>
+<div class="line"><a name="l00359"></a><span class="lineno"> 359</span>&#160; }</div>
+<div class="line"><a name="l00360"></a><span class="lineno"> 360</span>&#160;</div>
+<div class="line"><a name="l00366"></a><span class="lineno"> 366</span>&#160; <span class="keywordtype">bool</span> <a class="code" href="classmeow_1_1Self.html#a10f22a83c3afcf65f8f9680f2a2f945c">referenceLess</a>(<a class="code" href="classmeow_1_1Self.html#a6b39fcc4b184809f9aeaeb1c9a0bac2d">Self</a> <span class="keyword">const</span>&amp; s)<span class="keyword"> const </span>{</div>
+<div class="line"><a name="l00367"></a><span class="lineno"> 367</span>&#160; <span class="keywordflow">return</span> (body_ &lt; s.body_);</div>
+<div class="line"><a name="l00368"></a><span class="lineno"> 368</span>&#160; }</div>
+<div class="line"><a name="l00369"></a><span class="lineno"> 369</span>&#160;</div>
+<div class="line"><a name="l00371"></a><span class="lineno"> 371</span>&#160; <span class="keywordtype">void</span> <a class="code" href="classmeow_1_1Self.html#af3277e1109c59e5f81549889b344a675">operator=</a>(<a class="code" href="classmeow_1_1Self.html#a6b39fcc4b184809f9aeaeb1c9a0bac2d">Self</a> <span class="keyword">const</span>&amp; a);</div>
+<div class="line"><a name="l00372"></a><span class="lineno"> 372</span>&#160;};</div>
+<div class="line"><a name="l00373"></a><span class="lineno"> 373</span>&#160;</div>
+<div class="line"><a name="l00374"></a><span class="lineno"> 374</span>&#160;<span class="preprocessor">#endif</span></div>
+<div class="line"><a name="l00375"></a><span class="lineno"> 375</span>&#160;<span class="preprocessor"></span></div>
+<div class="line"><a name="l00376"></a><span class="lineno"> 376</span>&#160;} <span class="comment">// meow</span></div>
+<div class="line"><a name="l00377"></a><span class="lineno"> 377</span>&#160;</div>
+<div class="line"><a name="l00378"></a><span class="lineno"> 378</span>&#160;<span class="preprocessor">#endif // Self_h__</span></div>
+<div class="ttc" id="classmeow_1_1Self_html_aa7d169e9d20d590f3e571206084797f8adef1b0d02e1090b1b610a4ea91bd6730"><div class="ttname"><a href="classmeow_1_1Self.html#aa7d169e9d20d590f3e571206084797f8adef1b0d02e1090b1b610a4ea91bd6730">meow::Self::COPY_FROM</a></div><div class="ttdef"><b>Definition:</b> <a href="Self_8h_source.html#l00016">Self.h:16</a></div></div>
+<div class="ttc" id="classmeow_1_1Self_html_a6063551c3e6ac647500e938ade8fbc99"><div class="ttname"><a href="classmeow_1_1Self.html#a6063551c3e6ac647500e938ade8fbc99">meow::Self::operator-&gt;</a></div><div class="ttdeci">Data const * operator-&gt;() const </div><div class="ttdef"><b>Definition:</b> <a href="Self_8h_source.html#l00026">Self.h:26</a></div></div>
+<div class="ttc" id="classmeow_1_1Self_html_a9cd016a38a09f479fe2ed83eb1ebdae2"><div class="ttname"><a href="classmeow_1_1Self.html#a9cd016a38a09f479fe2ed83eb1ebdae2">meow::Self::copyFrom</a></div><div class="ttdeci">Self const &amp; copyFrom(Self const &amp;s)</div><div class="ttdef"><b>Definition:</b> <a href="Self_8h_source.html#l00029">Self.h:29</a></div></div>
+<div class="ttc" id="classmeow_1_1Self_html_a10f22a83c3afcf65f8f9680f2a2f945c"><div class="ttname"><a href="classmeow_1_1Self.html#a10f22a83c3afcf65f8f9680f2a2f945c">meow::Self::referenceLess</a></div><div class="ttdeci">bool referenceLess(Self const &amp;s) const </div><div class="ttdef"><b>Definition:</b> <a href="Self_8h_source.html#l00038">Self.h:38</a></div></div>
+<div class="ttc" id="classmeow_1_1Self_html_afee797a10c73a1c8e02c8e6315a2930b"><div class="ttname"><a href="classmeow_1_1Self.html#afee797a10c73a1c8e02c8e6315a2930b">meow::Self::Self</a></div><div class="ttdeci">Self(Self const &amp;b, DuplicateType d)</div><div class="ttdef"><b>Definition:</b> <a href="Self_8h_source.html#l00023">Self.h:23</a></div></div>
+<div class="ttc" id="classmeow_1_1Self_html_af3277e1109c59e5f81549889b344a675"><div class="ttname"><a href="classmeow_1_1Self.html#af3277e1109c59e5f81549889b344a675">meow::Self::operator=</a></div><div class="ttdeci">void operator=(Self const &amp;a)</div></div>
+<div class="ttc" id="classmeow_1_1Self_html_a6b39fcc4b184809f9aeaeb1c9a0bac2d"><div class="ttname"><a href="classmeow_1_1Self.html#a6b39fcc4b184809f9aeaeb1c9a0bac2d">meow::Self::Self</a></div><div class="ttdeci">Self()</div><div class="ttdef"><b>Definition:</b> <a href="Self_8h_source.html#l00021">Self.h:21</a></div></div>
+<div class="ttc" id="classmeow_1_1Self_html_ace312355261c68ac7531767939f5c4c2"><div class="ttname"><a href="classmeow_1_1Self.html#ace312355261c68ac7531767939f5c4c2">meow::Self::operator-&gt;</a></div><div class="ttdeci">Data * operator-&gt;()</div><div class="ttdef"><b>Definition:</b> <a href="Self_8h_source.html#l00027">Self.h:27</a></div></div>
+<div class="ttc" id="classmeow_1_1Self_html_ada16564a03665b10810a6342d61044bc"><div class="ttname"><a href="classmeow_1_1Self.html#ada16564a03665b10810a6342d61044bc">meow::Self::~Self</a></div><div class="ttdeci">~Self()</div><div class="ttdef"><b>Definition:</b> <a href="Self_8h_source.html#l00025">Self.h:25</a></div></div>
+<div class="ttc" id="classmeow_1_1Self_html_ab3671e44693b79e2f987f59652d46ca9"><div class="ttname"><a href="classmeow_1_1Self.html#ab3671e44693b79e2f987f59652d46ca9">meow::Self::same</a></div><div class="ttdeci">bool same(Self const &amp;s) const </div><div class="ttdef"><b>Definition:</b> <a href="Self_8h_source.html#l00036">Self.h:36</a></div></div>
+<div class="ttc" id="classmeow_1_1Self_html_a91098e2218c358470e81d64f35d6491d"><div class="ttname"><a href="classmeow_1_1Self.html#a91098e2218c358470e81d64f35d6491d">meow::Self::equal</a></div><div class="ttdeci">bool equal(Self const &amp;s) const </div><div class="ttdef"><b>Definition:</b> <a href="Self_8h_source.html#l00037">Self.h:37</a></div></div>
+<div class="ttc" id="classmeow_1_1Self_html_a5962339e9ee49312ab770f1119256ca6"><div class="ttname"><a href="classmeow_1_1Self.html#a5962339e9ee49312ab770f1119256ca6">meow::Self::operator()</a></div><div class="ttdeci">Self &amp; operator()() const </div><div class="ttdef"><b>Definition:</b> <a href="Self_8h_source.html#l00028">Self.h:28</a></div></div>
+<div class="ttc" id="classmeow_1_1Self_html_aa7d169e9d20d590f3e571206084797f8"><div class="ttname"><a href="classmeow_1_1Self.html#aa7d169e9d20d590f3e571206084797f8">meow::Self&lt; Myself &gt;::DuplicateType</a></div><div class="ttdeci">DuplicateType</div><div class="ttdef"><b>Definition:</b> <a href="Self_8h_source.html#l00015">Self.h:15</a></div></div>
+<div class="ttc" id="classmeow_1_1Self_html_a63e1570c927c7fa3b95b71fe978e355d"><div class="ttname"><a href="classmeow_1_1Self.html#a63e1570c927c7fa3b95b71fe978e355d">meow::Self::referenceFrom</a></div><div class="ttdeci">Self const &amp; referenceFrom(Self const &amp;s)</div><div class="ttdef"><b>Definition:</b> <a href="Self_8h_source.html#l00030">Self.h:30</a></div></div>
+<div class="ttc" id="classmeow_1_1Self_html"><div class="ttname"><a href="classmeow_1_1Self.html">meow::Self</a></div><div class="ttdef"><b>Definition:</b> <a href="Self_8h_source.html#l00013">Self.h:13</a></div></div>
+<div class="ttc" id="classmeow_1_1Self_html_ae4256bfc598bb0db76141ffce506806e"><div class="ttname"><a href="classmeow_1_1Self.html#ae4256bfc598bb0db76141ffce506806e">meow::Self::duplicateFrom</a></div><div class="ttdeci">Self const &amp; duplicateFrom(Self const &amp;s, DuplicateType t)</div><div class="ttdef"><b>Definition:</b> <a href="Self_8h_source.html#l00033">Self.h:33</a></div></div>
+<div class="ttc" id="classmeow_1_1Self_html_af3220c1e1d7966c6dbaf4ec62f8cbc2f"><div class="ttname"><a href="classmeow_1_1Self.html#af3220c1e1d7966c6dbaf4ec62f8cbc2f">meow::Self::Self</a></div><div class="ttdeci">Self(Data const &amp;d)</div><div class="ttdef"><b>Definition:</b> <a href="Self_8h_source.html#l00022">Self.h:22</a></div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- HTML footer for doxygen 1.8.3.1-->
@@ -260,7 +301,7 @@ $(document).ready(function(){initNavTree('Self_8h_source.html','');});
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
<ul>
<li class="navelem"><a class="el" href="dir_92fecd8d02dd5e7a67429447fdf0f60f.html">meowpp</a></li><li class="navelem"><a class="el" href="Self_8h.html">Self.h</a></li>
- <li class="footer">Generated on Tue Jun 24 2014 03:53:31 for Templates -- Meow by
+ <li class="footer">Generated on Fri Jun 27 2014 18:24:41 for Templates -- Meow by
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.6 </li>
</ul>