diff options
Diffstat (limited to 'doc/html/IdentityPoints_8h_source.html')
-rw-r--r-- | doc/html/IdentityPoints_8h_source.html | 449 |
1 files changed, 269 insertions, 180 deletions
diff --git a/doc/html/IdentityPoints_8h_source.html b/doc/html/IdentityPoints_8h_source.html index 56a6df9..48a0fe6 100644 --- a/doc/html/IdentityPoints_8h_source.html +++ b/doc/html/IdentityPoints_8h_source.html @@ -4,7 +4,7 @@ <head> <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> <meta http-equiv="X-UA-Compatible" content="IE=9"/> -<meta name="generator" content="Doxygen 1.8.3.1"/> +<meta name="generator" content="Doxygen 1.8.6"/> <title>Templates -- Meow: meowpp/gra/IdentityPoints.h Source File</title> <link href="tabs.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="jquery.js"></script> @@ -28,16 +28,16 @@ <td id="projectlogo"><img alt="Logo" src="logo.png"/></td> <td style="padding-left: 0.5em;"> <div id="projectname">Templates -- Meow -  <span id="projectnumber">1.1.2</span> +  <span id="projectnumber">1.1.4</span> </div> - <div id="projectbrief">不能,也不應該先編譯成obj-file的templates</div> + <div id="projectbrief">A C++ template which is unable and also not allowed to compile to obj-file first.</div> </td> </tr> </tbody> </table> </div> <!-- end header part --> -<!-- Generated by Doxygen 1.8.3.1 --> +<!-- Generated by Doxygen 1.8.6 --> </div><!-- top --> <div id="side-nav" class="ui-resizable side-nav-resizable"> <div id="nav-tree"> @@ -62,181 +62,270 @@ $(document).ready(function(){initNavTree('IdentityPoints_8h_source.html','');}); <div class="line"><a name="l00002"></a><span class="lineno"> 2</span> <span class="preprocessor"></span><span class="preprocessor">#define gra_IdentityPoints_H__</span></div> <div class="line"><a name="l00003"></a><span class="lineno"> 3</span> <span class="preprocessor"></span></div> <div class="line"><a name="l00004"></a><span class="lineno"> 4</span> <span class="preprocessor">#include "../Self.h"</span></div> -<div class="line"><a name="l00005"></a><span class="lineno"> 5</span> </div> -<div class="line"><a name="l00006"></a><span class="lineno"> 6</span> <span class="preprocessor">#include "../math/Vector.h"</span></div> +<div class="line"><a name="l00005"></a><span class="lineno"> 5</span> <span class="preprocessor">#include "../math/Vector.h"</span></div> +<div class="line"><a name="l00006"></a><span class="lineno"> 6</span> <span class="preprocessor">#include "../oo/ObjBase.h"</span></div> <div class="line"><a name="l00007"></a><span class="lineno"> 7</span> </div> -<div class="line"><a name="l00008"></a><span class="lineno"> 8</span> <span class="preprocessor">#include "../oo/ObjBase.h"</span></div> -<div class="line"><a name="l00009"></a><span class="lineno"> 9</span> </div> -<div class="line"><a name="l00010"></a><span class="lineno"> 10</span> <span class="preprocessor">#include <map></span></div> -<div class="line"><a name="l00011"></a><span class="lineno"> 11</span> </div> -<div class="line"><a name="l00012"></a><span class="lineno"> 12</span> <span class="preprocessor">#include <cstdlib></span></div> -<div class="line"><a name="l00013"></a><span class="lineno"> 13</span> </div> -<div class="line"><a name="l00014"></a><span class="lineno"> 14</span> <span class="keyword">namespace </span>meow {</div> -<div class="line"><a name="l00015"></a><span class="lineno"> 15</span> </div> -<div class="line"><a name="l00021"></a><span class="lineno"> 21</span> <span class="keyword">template</span><<span class="keyword">class</span> ID, <span class="keyword">class</span> Scalar></div> -<div class="line"><a name="l00022"></a><span class="lineno"><a class="code" href="classmeow_1_1IdentityPoints.html"> 22</a></span> <span class="keyword">class </span><a class="code" href="classmeow_1_1IdentityPoints.html" title="把一個 std::map<ID,Vector<Scalar> > 包起來">IdentityPoints</a>: <span class="keyword">public</span> <a class="code" href="classmeow_1_1ObjBase.html" title="一切物件的Base, 並要求每個物件都要有read, write, create, ... 等功能">ObjBase</a> {</div> -<div class="line"><a name="l00023"></a><span class="lineno"> 23</span> <span class="keyword">public</span>:</div> -<div class="line"><a name="l00024"></a><span class="lineno"><a class="code" href="classmeow_1_1IdentityPoints.html#adf552ad8e91278d3ba67ab149611b634"> 24</a></span>  <span class="keyword">typedef</span> <span class="keyword">typename</span> std::map<ID, Vector<Scalar> > <a class="code" href="classmeow_1_1IdentityPoints.html#adf552ad8e91278d3ba67ab149611b634">IdentityPointsMap</a>;</div> -<div class="line"><a name="l00025"></a><span class="lineno"><a class="code" href="classmeow_1_1IdentityPoints.html#af0d41f58b9dfa0f63fdd3085defd6386"> 25</a></span>  <span class="keyword">typedef</span> <span class="keyword">typename</span> IdentityPointsMap:: iterator <a class="code" href="classmeow_1_1IdentityPoints.html#af0d41f58b9dfa0f63fdd3085defd6386">IdentityPointsMapIter</a>;</div> -<div class="line"><a name="l00026"></a><span class="lineno"><a class="code" href="classmeow_1_1IdentityPoints.html#a577f4fbc69ba3a99d2b0deabcdd1f72c"> 26</a></span>  <span class="keyword">typedef</span> <span class="keyword">typename</span> IdentityPointsMap::const_iterator <a class="code" href="classmeow_1_1IdentityPoints.html#a577f4fbc69ba3a99d2b0deabcdd1f72c">IdentityPointsMapIterK</a>;</div> -<div class="line"><a name="l00027"></a><span class="lineno"> 27</span>  </div> -<div class="line"><a name="l00028"></a><span class="lineno"> 28</span> <span class="keyword">private</span>:</div> -<div class="line"><a name="l00029"></a><span class="lineno"> 29</span>  <span class="keyword">struct </span>Myself {</div> -<div class="line"><a name="l00030"></a><span class="lineno"> 30</span>  <a class="code" href="classmeow_1_1IdentityPoints.html#adf552ad8e91278d3ba67ab149611b634">IdentityPointsMap</a> points_;</div> -<div class="line"><a name="l00031"></a><span class="lineno"> 31</span>  <span class="keywordtype">size_t</span> dimension_;</div> -<div class="line"><a name="l00032"></a><span class="lineno"> 32</span>  </div> -<div class="line"><a name="l00033"></a><span class="lineno"> 33</span>  Myself() {</div> -<div class="line"><a name="l00034"></a><span class="lineno"> 34</span>  dimension_ = 1;</div> -<div class="line"><a name="l00035"></a><span class="lineno"> 35</span>  }</div> -<div class="line"><a name="l00036"></a><span class="lineno"> 36</span>  ~Myself() {</div> -<div class="line"><a name="l00037"></a><span class="lineno"> 37</span>  }</div> -<div class="line"><a name="l00038"></a><span class="lineno"> 38</span>  Myself& <a class="code" href="classmeow_1_1IdentityPoints.html#ae1ea1968aad3345a61257ba5db970429" title="複製資料">copyFrom</a>(Myself <span class="keyword">const</span>& b) {</div> -<div class="line"><a name="l00039"></a><span class="lineno"> 39</span>  points_ = b.points_;</div> -<div class="line"><a name="l00040"></a><span class="lineno"> 40</span>  dimension_ = b.dimension_;</div> -<div class="line"><a name="l00041"></a><span class="lineno"> 41</span>  <span class="keywordflow">return</span> *<span class="keyword">this</span>;</div> -<div class="line"><a name="l00042"></a><span class="lineno"> 42</span>  }</div> -<div class="line"><a name="l00043"></a><span class="lineno"> 43</span>  };</div> -<div class="line"><a name="l00044"></a><span class="lineno"> 44</span>  </div> -<div class="line"><a name="l00045"></a><span class="lineno"> 45</span>  <a class="code" href="classmeow_1_1Self.html">Self<Myself></a> <span class="keyword">const</span> <span class="keyword">self</span>;</div> -<div class="line"><a name="l00046"></a><span class="lineno"> 46</span> <span class="keyword">public</span>:</div> -<div class="line"><a name="l00050"></a><span class="lineno"><a class="code" href="classmeow_1_1IdentityPoints.html#ab3566725696aa78c8b4f85892b6dacc4"> 50</a></span>  <a class="code" href="classmeow_1_1IdentityPoints.html#ab3566725696aa78c8b4f85892b6dacc4" title="constructor">IdentityPoints</a>(): self(true) {</div> -<div class="line"><a name="l00051"></a><span class="lineno"> 51</span>  }</div> -<div class="line"><a name="l00052"></a><span class="lineno"> 52</span>  </div> -<div class="line"><a name="l00056"></a><span class="lineno"><a class="code" href="classmeow_1_1IdentityPoints.html#a803396e9f4cb1fc6d35b60cc70bcc50a"> 56</a></span>  <a class="code" href="classmeow_1_1IdentityPoints.html#a803396e9f4cb1fc6d35b60cc70bcc50a" title="constructor, 並且複製資料">IdentityPoints</a>(<a class="code" href="classmeow_1_1IdentityPoints.html" title="把一個 std::map<ID,Vector<Scalar> > 包起來">IdentityPoints</a> <span class="keyword">const</span>& b): self(false) {</div> -<div class="line"><a name="l00057"></a><span class="lineno"> 57</span>  <a class="code" href="classmeow_1_1IdentityPoints.html#ae1ea1968aad3345a61257ba5db970429" title="複製資料">copyFrom</a>(b);</div> -<div class="line"><a name="l00058"></a><span class="lineno"> 58</span>  }</div> -<div class="line"><a name="l00059"></a><span class="lineno"> 59</span>  </div> -<div class="line"><a name="l00063"></a><span class="lineno"><a class="code" href="classmeow_1_1IdentityPoints.html#ab32aa1152834a8f95625ccdc6f26b0c6"> 63</a></span>  <a class="code" href="classmeow_1_1IdentityPoints.html#ab32aa1152834a8f95625ccdc6f26b0c6" title="destructor">~IdentityPoints</a>() {</div> -<div class="line"><a name="l00064"></a><span class="lineno"> 64</span>  }</div> -<div class="line"><a name="l00065"></a><span class="lineno"> 65</span>  </div> -<div class="line"><a name="l00069"></a><span class="lineno"><a class="code" href="classmeow_1_1IdentityPoints.html#ae1ea1968aad3345a61257ba5db970429"> 69</a></span>  <a class="code" href="classmeow_1_1IdentityPoints.html" title="把一個 std::map<ID,Vector<Scalar> > 包起來">IdentityPoints</a>& <a class="code" href="classmeow_1_1IdentityPoints.html#ae1ea1968aad3345a61257ba5db970429" title="複製資料">copyFrom</a>(<a class="code" href="classmeow_1_1IdentityPoints.html" title="把一個 std::map<ID,Vector<Scalar> > 包起來">IdentityPoints</a> <span class="keyword">const</span>& b) {</div> -<div class="line"><a name="l00070"></a><span class="lineno"> 70</span>  <span class="keyword">self</span>().<a class="code" href="classmeow_1_1IdentityPoints.html#ae1ea1968aad3345a61257ba5db970429" title="複製資料">copyFrom</a>(b.self);</div> -<div class="line"><a name="l00071"></a><span class="lineno"> 71</span>  <span class="keywordflow">return</span> *<span class="keyword">this</span>;</div> -<div class="line"><a name="l00072"></a><span class="lineno"> 72</span>  }</div> -<div class="line"><a name="l00073"></a><span class="lineno"> 73</span>  </div> -<div class="line"><a name="l00077"></a><span class="lineno"><a class="code" href="classmeow_1_1IdentityPoints.html#a7ec681b9849372eb14ed46734a4f885e"> 77</a></span>  <a class="code" href="classmeow_1_1IdentityPoints.html" title="把一個 std::map<ID,Vector<Scalar> > 包起來">IdentityPoints</a>& <a class="code" href="classmeow_1_1IdentityPoints.html#a7ec681b9849372eb14ed46734a4f885e" title="參照">referenceFrom</a>(<a class="code" href="classmeow_1_1IdentityPoints.html" title="把一個 std::map<ID,Vector<Scalar> > 包起來">IdentityPoints</a> <span class="keyword">const</span>& b) {</div> -<div class="line"><a name="l00078"></a><span class="lineno"> 78</span>  <span class="keyword">self</span>().<a class="code" href="classmeow_1_1IdentityPoints.html#a7ec681b9849372eb14ed46734a4f885e" title="參照">referenceFrom</a>(b.self);</div> -<div class="line"><a name="l00079"></a><span class="lineno"> 79</span>  <span class="keywordflow">return</span> *<span class="keyword">this</span>;</div> -<div class="line"><a name="l00080"></a><span class="lineno"> 80</span>  }</div> -<div class="line"><a name="l00081"></a><span class="lineno"> 81</span>  </div> -<div class="line"><a name="l00085"></a><span class="lineno"><a class="code" href="classmeow_1_1IdentityPoints.html#ac9b4356b0c73a799ad97384a4688db66"> 85</a></span>  <span class="keywordtype">void</span> <a class="code" href="classmeow_1_1IdentityPoints.html#ac9b4356b0c73a799ad97384a4688db66" title="清除一切identity points">clear</a>() {</div> -<div class="line"><a name="l00086"></a><span class="lineno"> 86</span>  <span class="keyword">self</span>()->points_.clear();</div> -<div class="line"><a name="l00087"></a><span class="lineno"> 87</span>  }</div> -<div class="line"><a name="l00088"></a><span class="lineno"> 88</span>  </div> -<div class="line"><a name="l00092"></a><span class="lineno"><a class="code" href="classmeow_1_1IdentityPoints.html#a48e856fca0660a5f56a13ccea992e3ea"> 92</a></span>  <span class="keywordtype">size_t</span> <a class="code" href="classmeow_1_1IdentityPoints.html#a48e856fca0660a5f56a13ccea992e3ea" title="回傳有幾個identity points">size</a>()<span class="keyword"> const </span>{</div> -<div class="line"><a name="l00093"></a><span class="lineno"> 93</span>  <span class="keywordflow">return</span> <span class="keyword">self</span>->points_.size();</div> -<div class="line"><a name="l00094"></a><span class="lineno"> 94</span>  }</div> -<div class="line"><a name="l00095"></a><span class="lineno"> 95</span>  </div> -<div class="line"><a name="l00099"></a><span class="lineno"><a class="code" href="classmeow_1_1IdentityPoints.html#a58a91f88750306e4ede279dabd7a1791"> 99</a></span>  <span class="keywordtype">bool</span> <a class="code" href="classmeow_1_1IdentityPoints.html#a58a91f88750306e4ede279dabd7a1791" title="回傳是否沒有identity points">empty</a>()<span class="keyword"> const </span>{</div> -<div class="line"><a name="l00100"></a><span class="lineno"> 100</span>  <span class="keywordflow">return</span> (<a class="code" href="classmeow_1_1IdentityPoints.html#a48e856fca0660a5f56a13ccea992e3ea" title="回傳有幾個identity points">size</a>() == 0u);</div> -<div class="line"><a name="l00101"></a><span class="lineno"> 101</span>  }</div> -<div class="line"><a name="l00102"></a><span class="lineno"> 102</span>  </div> -<div class="line"><a name="l00106"></a><span class="lineno"><a class="code" href="classmeow_1_1IdentityPoints.html#a171499ffe3d474aa3632b1a31b6402a0"> 106</a></span>  <span class="keywordtype">bool</span> <a class="code" href="classmeow_1_1IdentityPoints.html#a171499ffe3d474aa3632b1a31b6402a0" title="檢查某id是否有使用">exist</a>(ID <span class="keyword">const</span>& <span class="keywordtype">id</span>)<span class="keyword"> const </span>{</div> -<div class="line"><a name="l00107"></a><span class="lineno"> 107</span>  <span class="keywordflow">return</span> (self->points_.find(<span class="keywordtype">id</span>) != <span class="keyword">self</span>->points_.end());</div> -<div class="line"><a name="l00108"></a><span class="lineno"> 108</span>  }</div> -<div class="line"><a name="l00109"></a><span class="lineno"> 109</span>  </div> -<div class="line"><a name="l00113"></a><span class="lineno"><a class="code" href="classmeow_1_1IdentityPoints.html#a19da7e561a7216146da2d974434a0c68"> 113</a></span>  <span class="keywordtype">size_t</span> <a class="code" href="classmeow_1_1IdentityPoints.html#a19da7e561a7216146da2d974434a0c68" title="回傳dimension">dimension</a>()<span class="keyword"> const </span>{</div> -<div class="line"><a name="l00114"></a><span class="lineno"> 114</span>  <span class="keywordflow">return</span> <span class="keyword">self</span>->dimension_;</div> -<div class="line"><a name="l00115"></a><span class="lineno"> 115</span>  }</div> -<div class="line"><a name="l00116"></a><span class="lineno"> 116</span>  </div> -<div class="line"><a name="l00120"></a><span class="lineno"><a class="code" href="classmeow_1_1IdentityPoints.html#a4133a7d9107e92a54d7d602ff8df4a87"> 120</a></span>  <span class="keywordtype">size_t</span> <a class="code" href="classmeow_1_1IdentityPoints.html#a4133a7d9107e92a54d7d602ff8df4a87" title="設定dimension, 並且清空資料">dimension</a>(<span class="keywordtype">size_t</span> dim) {</div> -<div class="line"><a name="l00121"></a><span class="lineno"> 121</span>  <span class="keyword">self</span>()->dimension_ = dim;</div> -<div class="line"><a name="l00122"></a><span class="lineno"> 122</span>  <a class="code" href="classmeow_1_1IdentityPoints.html#ac9b4356b0c73a799ad97384a4688db66" title="清除一切identity points">clear</a>();</div> -<div class="line"><a name="l00123"></a><span class="lineno"> 123</span>  <span class="keywordflow">return</span> <a class="code" href="classmeow_1_1IdentityPoints.html#a19da7e561a7216146da2d974434a0c68" title="回傳dimension">dimension</a>();</div> -<div class="line"><a name="l00124"></a><span class="lineno"> 124</span>  }</div> -<div class="line"><a name="l00125"></a><span class="lineno"> 125</span>  </div> -<div class="line"><a name="l00129"></a><span class="lineno"><a class="code" href="classmeow_1_1IdentityPoints.html#a3955912afecde0f268cb1c6ec6a876ce"> 129</a></span>  <span class="keywordtype">size_t</span> <a class="code" href="classmeow_1_1IdentityPoints.html#a3955912afecde0f268cb1c6ec6a876ce" title="設定dimension, 並且針對每個identity point指定重設dimension">dimension</a>(<span class="keywordtype">size_t</span> dim, Scalar <span class="keyword">const</span>& init_value) {</div> -<div class="line"><a name="l00130"></a><span class="lineno"> 130</span>  <span class="keyword">self</span>()->dimension_ = dim;</div> -<div class="line"><a name="l00131"></a><span class="lineno"> 131</span>  <span class="keywordflow">for</span> (<a class="code" href="classmeow_1_1IdentityPoints.html#af0d41f58b9dfa0f63fdd3085defd6386">IdentityPointsMapIter</a></div> -<div class="line"><a name="l00132"></a><span class="lineno"> 132</span>  it = <span class="keyword">self</span>()->points_.begin(); it != <span class="keyword">self</span>()->points_.end(); ++it) {</div> -<div class="line"><a name="l00133"></a><span class="lineno"> 133</span>  it.second.dimension(dim, init_value);</div> -<div class="line"><a name="l00134"></a><span class="lineno"> 134</span>  }</div> -<div class="line"><a name="l00135"></a><span class="lineno"> 135</span>  <span class="keywordflow">return</span> <a class="code" href="classmeow_1_1IdentityPoints.html#a19da7e561a7216146da2d974434a0c68" title="回傳dimension">dimension</a>();</div> -<div class="line"><a name="l00136"></a><span class="lineno"> 136</span>  }</div> -<div class="line"><a name="l00137"></a><span class="lineno"> 137</span>  </div> -<div class="line"><a name="l00141"></a><span class="lineno"><a class="code" href="classmeow_1_1IdentityPoints.html#a312db9235d0a92aa6c297757079f6dd7"> 141</a></span>  <a class="code" href="classmeow_1_1IdentityPoints.html#adf552ad8e91278d3ba67ab149611b634">IdentityPointsMap</a> <span class="keyword">const</span>& <a class="code" href="classmeow_1_1IdentityPoints.html#a312db9235d0a92aa6c297757079f6dd7" title="取得所有identity points">identityPoints</a>()<span class="keyword"> const </span>{</div> -<div class="line"><a name="l00142"></a><span class="lineno"> 142</span>  <span class="keywordflow">return</span> <span class="keyword">self</span>->points_;</div> -<div class="line"><a name="l00143"></a><span class="lineno"> 143</span>  }</div> -<div class="line"><a name="l00144"></a><span class="lineno"> 144</span>  </div> -<div class="line"><a name="l00148"></a><span class="lineno"><a class="code" href="classmeow_1_1IdentityPoints.html#aa812c3c2040fa9c5aa863fd34983c276"> 148</a></span>  <a class="code" href="classmeow_1_1IdentityPoints.html#adf552ad8e91278d3ba67ab149611b634">IdentityPointsMap</a> <span class="keyword">const</span>& <a class="code" href="classmeow_1_1IdentityPoints.html#aa812c3c2040fa9c5aa863fd34983c276" title="設定所有identity points">identityPoints</a>(<a class="code" href="classmeow_1_1IdentityPoints.html#adf552ad8e91278d3ba67ab149611b634">IdentityPointsMap</a> <span class="keyword">const</span>& points) {</div> -<div class="line"><a name="l00149"></a><span class="lineno"> 149</span>  <a class="code" href="classmeow_1_1IdentityPoints.html#ac9b4356b0c73a799ad97384a4688db66" title="清除一切identity points">clear</a>();</div> -<div class="line"><a name="l00150"></a><span class="lineno"> 150</span>  <span class="keywordflow">return</span> <a class="code" href="classmeow_1_1IdentityPoints.html#af7b65433eccc4d45af938a577a5b5946" title="加入identity Points">identityPointsAdd</a>(points);</div> -<div class="line"><a name="l00151"></a><span class="lineno"> 151</span>  }</div> -<div class="line"><a name="l00152"></a><span class="lineno"> 152</span>  </div> -<div class="line"><a name="l00156"></a><span class="lineno"><a class="code" href="classmeow_1_1IdentityPoints.html#af7b65433eccc4d45af938a577a5b5946"> 156</a></span>  <a class="code" href="classmeow_1_1IdentityPoints.html#adf552ad8e91278d3ba67ab149611b634">IdentityPointsMap</a> <span class="keyword">const</span>& <a class="code" href="classmeow_1_1IdentityPoints.html#af7b65433eccc4d45af938a577a5b5946" title="加入identity Points">identityPointsAdd</a>(<a class="code" href="classmeow_1_1IdentityPoints.html#adf552ad8e91278d3ba67ab149611b634">IdentityPointsMap</a> <span class="keyword">const</span>& points) {</div> -<div class="line"><a name="l00157"></a><span class="lineno"> 157</span>  <span class="keywordflow">for</span> (<a class="code" href="classmeow_1_1IdentityPoints.html#a577f4fbc69ba3a99d2b0deabcdd1f72c">IdentityPointsMapIterK</a> it = points.begin(); it != points.end(); ++it) {</div> -<div class="line"><a name="l00158"></a><span class="lineno"> 158</span>  <a class="code" href="classmeow_1_1IdentityPoints.html#a8ad5a9cc2cfa2a9a32bf90b47cc42d94" title="新增一個identity point">identityPointAdd</a>(it.first, it.second);</div> -<div class="line"><a name="l00159"></a><span class="lineno"> 159</span>  }</div> -<div class="line"><a name="l00160"></a><span class="lineno"> 160</span>  <span class="keywordflow">return</span> <a class="code" href="classmeow_1_1IdentityPoints.html#a312db9235d0a92aa6c297757079f6dd7" title="取得所有identity points">identityPoints</a>();</div> -<div class="line"><a name="l00161"></a><span class="lineno"> 161</span>  }</div> -<div class="line"><a name="l00162"></a><span class="lineno"> 162</span>  </div> -<div class="line"><a name="l00166"></a><span class="lineno"><a class="code" href="classmeow_1_1IdentityPoints.html#a442f6744170780c61801706bb45c74f5"> 166</a></span>  <a class="code" href="classmeow_1_1IdentityPoints.html#adf552ad8e91278d3ba67ab149611b634">IdentityPointsMap</a> <span class="keyword">const</span>& <a class="code" href="classmeow_1_1IdentityPoints.html#a442f6744170780c61801706bb45c74f5" title="移除identity Points">identityPointsDel</a>(std::set<ID> <span class="keyword">const</span>& ids) {</div> -<div class="line"><a name="l00167"></a><span class="lineno"> 167</span>  <span class="keywordflow">for</span> (<span class="keyword">typename</span> std::set<ID>::const_iterator</div> -<div class="line"><a name="l00168"></a><span class="lineno"> 168</span>  it = ids.begin(); it != ids.end(); ++it) {</div> -<div class="line"><a name="l00169"></a><span class="lineno"> 169</span>  <a class="code" href="classmeow_1_1IdentityPoints.html#ad6df062b618a5b7dae5723eea1eb1403" title="刪除一個identity point">identityPointDel</a>(*it);</div> -<div class="line"><a name="l00170"></a><span class="lineno"> 170</span>  }</div> -<div class="line"><a name="l00171"></a><span class="lineno"> 171</span>  <span class="keywordflow">return</span> <a class="code" href="classmeow_1_1IdentityPoints.html#a312db9235d0a92aa6c297757079f6dd7" title="取得所有identity points">identityPoints</a>();</div> -<div class="line"><a name="l00172"></a><span class="lineno"> 172</span>  }</div> -<div class="line"><a name="l00173"></a><span class="lineno"> 173</span>  </div> -<div class="line"><a name="l00177"></a><span class="lineno"><a class="code" href="classmeow_1_1IdentityPoints.html#aabf2528a2d24a68d3a859f239383701f"> 177</a></span>  <a class="code" href="classmeow_1_1Vector.html" title="vector ">Vector<Scalar></a> <a class="code" href="classmeow_1_1IdentityPoints.html#aabf2528a2d24a68d3a859f239383701f" title="取得一個identity point">identityPoint</a>(ID <span class="keyword">const</span>& <span class="keywordtype">id</span>)<span class="keyword"> const </span>{</div> -<div class="line"><a name="l00178"></a><span class="lineno"> 178</span>  <span class="keywordflow">return</span> (<a class="code" href="classmeow_1_1IdentityPoints.html#a171499ffe3d474aa3632b1a31b6402a0" title="檢查某id是否有使用">exist</a>(<span class="keywordtype">id</span>) ? self->points_.find(<span class="keywordtype">id</span>)->second : <a class="code" href="classmeow_1_1Vector.html" title="vector ">Vector<Scalar></a>());</div> -<div class="line"><a name="l00179"></a><span class="lineno"> 179</span>  }</div> -<div class="line"><a name="l00180"></a><span class="lineno"> 180</span>  </div> -<div class="line"><a name="l00184"></a><span class="lineno"><a class="code" href="classmeow_1_1IdentityPoints.html#a22cc708e09447d1c059d8f7a07fa34cc"> 184</a></span>  <a class="code" href="classmeow_1_1Vector.html" title="vector ">Vector<Scalar></a> <a class="code" href="classmeow_1_1IdentityPoints.html#a22cc708e09447d1c059d8f7a07fa34cc" title="修改一個identity point">identityPoint</a>(ID <span class="keyword">const</span>& <span class="keywordtype">id</span>, <a class="code" href="classmeow_1_1Vector.html" title="vector ">Vector<Scalar></a> <span class="keyword">const</span>& b) {</div> -<div class="line"><a name="l00185"></a><span class="lineno"> 185</span>  <span class="keywordflow">if</span> (b.<a class="code" href="classmeow_1_1Vector.html#a554bb098d8af7ef1458624e8b1f47e6a" title="return dimension">dimension</a>() == <span class="keyword">self</span>->dimension_ && <a class="code" href="classmeow_1_1IdentityPoints.html#a171499ffe3d474aa3632b1a31b6402a0" title="檢查某id是否有使用">exist</a>(<span class="keywordtype">id</span>)) {</div> -<div class="line"><a name="l00186"></a><span class="lineno"> 186</span>  <span class="keyword">self</span>()->points_[<span class="keywordtype">id</span>].<a class="code" href="classmeow_1_1IdentityPoints.html#ae1ea1968aad3345a61257ba5db970429" title="複製資料">copyFrom</a>(b);</div> -<div class="line"><a name="l00187"></a><span class="lineno"> 187</span>  }</div> -<div class="line"><a name="l00188"></a><span class="lineno"> 188</span>  <span class="keywordflow">return</span> <a class="code" href="classmeow_1_1IdentityPoints.html#aabf2528a2d24a68d3a859f239383701f" title="取得一個identity point">identityPoint</a>(<span class="keywordtype">id</span>);</div> -<div class="line"><a name="l00189"></a><span class="lineno"> 189</span>  }</div> -<div class="line"><a name="l00190"></a><span class="lineno"> 190</span>  </div> -<div class="line"><a name="l00194"></a><span class="lineno"><a class="code" href="classmeow_1_1IdentityPoints.html#a8ad5a9cc2cfa2a9a32bf90b47cc42d94"> 194</a></span>  <a class="code" href="classmeow_1_1Vector.html" title="vector ">Vector<Scalar></a> <a class="code" href="classmeow_1_1IdentityPoints.html#a8ad5a9cc2cfa2a9a32bf90b47cc42d94" title="新增一個identity point">identityPointAdd</a>(ID <span class="keyword">const</span>& <span class="keywordtype">id</span>, <a class="code" href="classmeow_1_1Vector.html" title="vector ">Vector<Scalar></a> <span class="keyword">const</span>& b) {</div> -<div class="line"><a name="l00195"></a><span class="lineno"> 195</span>  <span class="keywordflow">if</span> (b.<a class="code" href="classmeow_1_1Vector.html#a554bb098d8af7ef1458624e8b1f47e6a" title="return dimension">dimension</a>() == <span class="keyword">self</span>->dimension_ && !<a class="code" href="classmeow_1_1IdentityPoints.html#a171499ffe3d474aa3632b1a31b6402a0" title="檢查某id是否有使用">exist</a>(<span class="keywordtype">id</span>)) {</div> -<div class="line"><a name="l00196"></a><span class="lineno"> 196</span>  <span class="keyword">self</span>()->points_[<span class="keywordtype">id</span>].<a class="code" href="classmeow_1_1IdentityPoints.html#ae1ea1968aad3345a61257ba5db970429" title="複製資料">copyFrom</a>(b);</div> -<div class="line"><a name="l00197"></a><span class="lineno"> 197</span>  }</div> -<div class="line"><a name="l00198"></a><span class="lineno"> 198</span>  <span class="keywordflow">return</span> <a class="code" href="classmeow_1_1IdentityPoints.html#aabf2528a2d24a68d3a859f239383701f" title="取得一個identity point">identityPoint</a>(<span class="keywordtype">id</span>);</div> -<div class="line"><a name="l00199"></a><span class="lineno"> 199</span>  }</div> -<div class="line"><a name="l00200"></a><span class="lineno"> 200</span>  </div> -<div class="line"><a name="l00204"></a><span class="lineno"><a class="code" href="classmeow_1_1IdentityPoints.html#ad6df062b618a5b7dae5723eea1eb1403"> 204</a></span>  <span class="keywordtype">void</span> <a class="code" href="classmeow_1_1IdentityPoints.html#ad6df062b618a5b7dae5723eea1eb1403" title="刪除一個identity point">identityPointDel</a>(ID <span class="keyword">const</span>& <span class="keywordtype">id</span>) {</div> -<div class="line"><a name="l00205"></a><span class="lineno"> 205</span>  <span class="keyword">self</span>()->points_.erase(<span class="keywordtype">id</span>);</div> -<div class="line"><a name="l00206"></a><span class="lineno"> 206</span>  }</div> -<div class="line"><a name="l00207"></a><span class="lineno"> 207</span>  </div> -<div class="line"><a name="l00211"></a><span class="lineno"><a class="code" href="classmeow_1_1IdentityPoints.html#a4a87edebfe33238c687ff6d6485c53f3"> 211</a></span>  <a class="code" href="classmeow_1_1Vector.html" title="vector ">Vector<Scalar></a>& <a class="code" href="classmeow_1_1IdentityPoints.html#a4a87edebfe33238c687ff6d6485c53f3" title="取得一個identity point, non-constant reference">identityPointGet</a>(ID <span class="keyword">const</span>& <span class="keywordtype">id</span>) {</div> -<div class="line"><a name="l00212"></a><span class="lineno"> 212</span>  <span class="keywordflow">return</span> <span class="keyword">self</span>()->points_[<span class="keywordtype">id</span>];</div> -<div class="line"><a name="l00213"></a><span class="lineno"> 213</span>  }</div> -<div class="line"><a name="l00214"></a><span class="lineno"> 214</span>  </div> -<div class="line"><a name="l00218"></a><span class="lineno"><a class="code" href="classmeow_1_1IdentityPoints.html#a8c2bcc67932db294e3b4e9f665ff505d"> 218</a></span>  <a class="code" href="classmeow_1_1IdentityPoints.html" title="把一個 std::map<ID,Vector<Scalar> > 包起來">IdentityPoints</a>& <a class="code" href="classmeow_1_1IdentityPoints.html#a8c2bcc67932db294e3b4e9f665ff505d" title="same as copyFrom(b) ">operator=</a>(<a class="code" href="classmeow_1_1IdentityPoints.html" title="把一個 std::map<ID,Vector<Scalar> > 包起來">IdentityPoints</a> <span class="keyword">const</span>& b) {</div> -<div class="line"><a name="l00219"></a><span class="lineno"> 219</span>  <span class="keywordflow">return</span> <a class="code" href="classmeow_1_1IdentityPoints.html#ae1ea1968aad3345a61257ba5db970429" title="複製資料">copyFrom</a>(b);</div> -<div class="line"><a name="l00220"></a><span class="lineno"> 220</span>  }</div> -<div class="line"><a name="l00221"></a><span class="lineno"> 221</span>  </div> -<div class="line"><a name="l00226"></a><span class="lineno"><a class="code" href="classmeow_1_1IdentityPoints.html#a7ecba020418b86d76db75e9f636aae9a"> 226</a></span>  <span class="keywordtype">bool</span> <a class="code" href="classmeow_1_1IdentityPoints.html#a7ecba020418b86d76db75e9f636aae9a" title="將資料寫入檔案">write</a>(FILE* f, <span class="keywordtype">bool</span> bin, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> fg)<span class="keyword"> const </span>{</div> -<div class="line"><a name="l00227"></a><span class="lineno"> 227</span>  <span class="keywordflow">return</span> <span class="keyword">false</span>;</div> -<div class="line"><a name="l00228"></a><span class="lineno"> 228</span>  }</div> -<div class="line"><a name="l00229"></a><span class="lineno"> 229</span>  </div> -<div class="line"><a name="l00234"></a><span class="lineno"><a class="code" href="classmeow_1_1IdentityPoints.html#a66b8a6b980dad9b2cb71cb0823304c51"> 234</a></span>  <span class="keywordtype">bool</span> <a class="code" href="classmeow_1_1IdentityPoints.html#a66b8a6b980dad9b2cb71cb0823304c51" title="將資料讀入">read</a>(FILE* f, <span class="keywordtype">bool</span> bin, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> fg) {</div> -<div class="line"><a name="l00235"></a><span class="lineno"> 235</span>  <span class="keywordflow">return</span> <span class="keyword">false</span>;</div> -<div class="line"><a name="l00236"></a><span class="lineno"> 236</span>  }</div> -<div class="line"><a name="l00237"></a><span class="lineno"> 237</span> </div> -<div class="line"><a name="l00242"></a><span class="lineno"><a class="code" href="classmeow_1_1IdentityPoints.html#a464d62354fc3d12767b71632f9b27524"> 242</a></span>  <a class="code" href="classmeow_1_1ObjBase.html" title="一切物件的Base, 並要求每個物件都要有read, write, create, ... 等功能">ObjBase</a>* <a class="code" href="classmeow_1_1IdentityPoints.html#a464d62354fc3d12767b71632f9b27524" title="new一個自己">create</a>()<span class="keyword"> const </span>{</div> -<div class="line"><a name="l00243"></a><span class="lineno"> 243</span>  <span class="keywordflow">return</span> <span class="keyword">new</span> <a class="code" href="classmeow_1_1IdentityPoints.html#ab3566725696aa78c8b4f85892b6dacc4" title="constructor">IdentityPoints</a>();</div> -<div class="line"><a name="l00244"></a><span class="lineno"> 244</span>  }</div> -<div class="line"><a name="l00245"></a><span class="lineno"> 245</span>  </div> -<div class="line"><a name="l00255"></a><span class="lineno"><a class="code" href="classmeow_1_1IdentityPoints.html#a6b17e68e14290ebfdcdd59a0724cdc41"> 255</a></span>  <a class="code" href="classmeow_1_1ObjBase.html" title="一切物件的Base, 並要求每個物件都要有read, write, create, ... 等功能">ObjBase</a>* <a class="code" href="classmeow_1_1IdentityPoints.html#a6b17e68e14290ebfdcdd59a0724cdc41" title="複製資料">copyFrom</a>(<a class="code" href="classmeow_1_1ObjBase.html" title="一切物件的Base, 並要求每個物件都要有read, write, create, ... 等功能">ObjBase</a> <span class="keyword">const</span>* b) {</div> -<div class="line"><a name="l00256"></a><span class="lineno"> 256</span>  <span class="keywordflow">return</span> &(<a class="code" href="classmeow_1_1IdentityPoints.html#ae1ea1968aad3345a61257ba5db970429" title="複製資料">copyFrom</a>(*(<a class="code" href="classmeow_1_1IdentityPoints.html" title="把一個 std::map<ID,Vector<Scalar> > 包起來">IdentityPoints</a>*)b));</div> -<div class="line"><a name="l00257"></a><span class="lineno"> 257</span>  }</div> -<div class="line"><a name="l00258"></a><span class="lineno"> 258</span>  </div> -<div class="line"><a name="l00263"></a><span class="lineno"><a class="code" href="classmeow_1_1IdentityPoints.html#ae90d4c4d8125919ae8807d89790bed61"> 263</a></span>  <span class="keywordtype">char</span> <span class="keyword">const</span>* <a class="code" href="classmeow_1_1IdentityPoints.html#ae90d4c4d8125919ae8807d89790bed61" title="回傳class的type">ctype</a>()<span class="keyword"> const</span>{</div> -<div class="line"><a name="l00264"></a><span class="lineno"> 264</span>  <span class="keyword">static</span> <span class="keywordtype">char</span> <span class="keyword">const</span>* ptr = <span class="keyword">typeid</span>(*this).name();</div> -<div class="line"><a name="l00265"></a><span class="lineno"> 265</span>  <span class="keywordflow">return</span> ptr;</div> -<div class="line"><a name="l00266"></a><span class="lineno"> 266</span>  }</div> -<div class="line"><a name="l00267"></a><span class="lineno"> 267</span>  </div> -<div class="line"><a name="l00272"></a><span class="lineno"><a class="code" href="classmeow_1_1IdentityPoints.html#a6ce521c18a45b50bd8b75201480b97f7"> 272</a></span>  std::string <a class="code" href="classmeow_1_1IdentityPoints.html#a6ce521c18a45b50bd8b75201480b97f7" title="回傳class的type">type</a>()<span class="keyword"> const </span>{</div> -<div class="line"><a name="l00273"></a><span class="lineno"> 273</span>  <span class="keywordflow">return</span> std::string(<a class="code" href="classmeow_1_1IdentityPoints.html#ae90d4c4d8125919ae8807d89790bed61" title="回傳class的type">ctype</a>());</div> -<div class="line"><a name="l00274"></a><span class="lineno"> 274</span>  }</div> -<div class="line"><a name="l00275"></a><span class="lineno"> 275</span> };</div> -<div class="line"><a name="l00276"></a><span class="lineno"> 276</span> </div> -<div class="line"><a name="l00277"></a><span class="lineno"> 277</span> }</div> -<div class="line"><a name="l00278"></a><span class="lineno"> 278</span> </div> -<div class="line"><a name="l00279"></a><span class="lineno"> 279</span> <span class="preprocessor">#endif // gra_IdentityPoints_H__</span></div> +<div class="line"><a name="l00008"></a><span class="lineno"> 8</span> <span class="preprocessor">#include <map></span></div> +<div class="line"><a name="l00009"></a><span class="lineno"> 9</span> <span class="preprocessor">#include <set></span></div> +<div class="line"><a name="l00010"></a><span class="lineno"> 10</span> </div> +<div class="line"><a name="l00011"></a><span class="lineno"> 11</span> <span class="preprocessor">#include <cstdlib></span></div> +<div class="line"><a name="l00012"></a><span class="lineno"> 12</span> </div> +<div class="line"><a name="l00013"></a><span class="lineno"> 13</span> <span class="keyword">namespace </span>meow {</div> +<div class="line"><a name="l00014"></a><span class="lineno"> 14</span> </div> +<div class="line"><a name="l00020"></a><span class="lineno"> 20</span> <span class="keyword">template</span><<span class="keyword">class</span> ID, <span class="keyword">class</span> Scalar></div> +<div class="line"><a name="l00021"></a><span class="lineno"><a class="line" href="classmeow_1_1IdentityPoints.html"> 21</a></span> <span class="keyword">class </span><a class="code" href="classmeow_1_1IdentityPoints.html">IdentityPoints</a>: <span class="keyword">public</span> <a class="code" href="classmeow_1_1ObjBase.html">ObjBase</a> {</div> +<div class="line"><a name="l00022"></a><span class="lineno"> 22</span> <span class="keyword">public</span>:</div> +<div class="line"><a name="l00023"></a><span class="lineno"><a class="line" href="classmeow_1_1IdentityPoints.html#adf552ad8e91278d3ba67ab149611b634"> 23</a></span>  <span class="keyword">typedef</span> <span class="keyword">typename</span> std::map<ID, Vector<Scalar> > <a class="code" href="classmeow_1_1IdentityPoints.html#adf552ad8e91278d3ba67ab149611b634">IdentityPointsMap</a>;</div> +<div class="line"><a name="l00024"></a><span class="lineno"><a class="line" href="classmeow_1_1IdentityPoints.html#af0d41f58b9dfa0f63fdd3085defd6386"> 24</a></span>  <span class="keyword">typedef</span> <span class="keyword">typename</span> IdentityPointsMap:: iterator <a class="code" href="classmeow_1_1IdentityPoints.html#af0d41f58b9dfa0f63fdd3085defd6386">IdentityPointsMapIter</a>;</div> +<div class="line"><a name="l00025"></a><span class="lineno"><a class="line" href="classmeow_1_1IdentityPoints.html#a577f4fbc69ba3a99d2b0deabcdd1f72c"> 25</a></span>  <span class="keyword">typedef</span> <span class="keyword">typename</span> IdentityPointsMap::const_iterator <a class="code" href="classmeow_1_1IdentityPoints.html#a577f4fbc69ba3a99d2b0deabcdd1f72c">IdentityPointsMapIterK</a>;</div> +<div class="line"><a name="l00026"></a><span class="lineno"> 26</span> </div> +<div class="line"><a name="l00027"></a><span class="lineno"> 27</span> <span class="keyword">private</span>:</div> +<div class="line"><a name="l00028"></a><span class="lineno"> 28</span>  <span class="keyword">struct </span>Myself {</div> +<div class="line"><a name="l00029"></a><span class="lineno"> 29</span>  <a class="code" href="classmeow_1_1IdentityPoints.html#adf552ad8e91278d3ba67ab149611b634">IdentityPointsMap</a> points_;</div> +<div class="line"><a name="l00030"></a><span class="lineno"> 30</span>  <span class="keywordtype">size_t</span> dimension_;</div> +<div class="line"><a name="l00031"></a><span class="lineno"> 31</span> </div> +<div class="line"><a name="l00032"></a><span class="lineno"> 32</span>  Myself() {</div> +<div class="line"><a name="l00033"></a><span class="lineno"> 33</span>  dimension_ = 1;</div> +<div class="line"><a name="l00034"></a><span class="lineno"> 34</span>  }</div> +<div class="line"><a name="l00035"></a><span class="lineno"> 35</span>  Myself(Myself <span class="keyword">const</span>& m): points_(m.points_), dimension_(m.dimension_) {</div> +<div class="line"><a name="l00036"></a><span class="lineno"> 36</span>  }</div> +<div class="line"><a name="l00037"></a><span class="lineno"> 37</span>  ~Myself() {</div> +<div class="line"><a name="l00038"></a><span class="lineno"> 38</span>  }</div> +<div class="line"><a name="l00039"></a><span class="lineno"> 39</span>  };</div> +<div class="line"><a name="l00040"></a><span class="lineno"> 40</span> </div> +<div class="line"><a name="l00041"></a><span class="lineno"> 41</span>  <a class="code" href="classmeow_1_1Self.html">Self<Myself></a> <span class="keyword">const</span> <span class="keyword">self</span>;</div> +<div class="line"><a name="l00042"></a><span class="lineno"> 42</span> <span class="keyword">public</span>:</div> +<div class="line"><a name="l00046"></a><span class="lineno"><a class="line" href="classmeow_1_1IdentityPoints.html#ab3566725696aa78c8b4f85892b6dacc4"> 46</a></span>  <a class="code" href="classmeow_1_1IdentityPoints.html#ab3566725696aa78c8b4f85892b6dacc4">IdentityPoints</a>(): self() {</div> +<div class="line"><a name="l00047"></a><span class="lineno"> 47</span>  }</div> +<div class="line"><a name="l00048"></a><span class="lineno"> 48</span> </div> +<div class="line"><a name="l00052"></a><span class="lineno"><a class="line" href="classmeow_1_1IdentityPoints.html#a803396e9f4cb1fc6d35b60cc70bcc50a"> 52</a></span>  <a class="code" href="classmeow_1_1IdentityPoints.html#a803396e9f4cb1fc6d35b60cc70bcc50a">IdentityPoints</a>(<a class="code" href="classmeow_1_1IdentityPoints.html">IdentityPoints</a> <span class="keyword">const</span>& b):</div> +<div class="line"><a name="l00053"></a><span class="lineno"> 53</span>  self(b.self, <a class="code" href="classmeow_1_1Self.html">Self</a><Myself>::COPY_FROM) {</div> +<div class="line"><a name="l00054"></a><span class="lineno"> 54</span>  }</div> +<div class="line"><a name="l00055"></a><span class="lineno"> 55</span> </div> +<div class="line"><a name="l00059"></a><span class="lineno"><a class="line" href="classmeow_1_1IdentityPoints.html#ab32aa1152834a8f95625ccdc6f26b0c6"> 59</a></span>  <a class="code" href="classmeow_1_1IdentityPoints.html#ab32aa1152834a8f95625ccdc6f26b0c6">~IdentityPoints</a>() {</div> +<div class="line"><a name="l00060"></a><span class="lineno"> 60</span>  }</div> +<div class="line"><a name="l00061"></a><span class="lineno"> 61</span> </div> +<div class="line"><a name="l00065"></a><span class="lineno"><a class="line" href="classmeow_1_1IdentityPoints.html#ae1ea1968aad3345a61257ba5db970429"> 65</a></span>  <a class="code" href="classmeow_1_1IdentityPoints.html">IdentityPoints</a>& <a class="code" href="classmeow_1_1IdentityPoints.html#ae1ea1968aad3345a61257ba5db970429">copyFrom</a>(<a class="code" href="classmeow_1_1IdentityPoints.html">IdentityPoints</a> <span class="keyword">const</span>& b) {</div> +<div class="line"><a name="l00066"></a><span class="lineno"> 66</span>  <span class="keyword">self</span>().<a class="code" href="classmeow_1_1IdentityPoints.html#ae1ea1968aad3345a61257ba5db970429">copyFrom</a>(b.self);</div> +<div class="line"><a name="l00067"></a><span class="lineno"> 67</span>  <span class="keywordflow">return</span> *<span class="keyword">this</span>;</div> +<div class="line"><a name="l00068"></a><span class="lineno"> 68</span>  }</div> +<div class="line"><a name="l00069"></a><span class="lineno"> 69</span> </div> +<div class="line"><a name="l00073"></a><span class="lineno"><a class="line" href="classmeow_1_1IdentityPoints.html#a7ec681b9849372eb14ed46734a4f885e"> 73</a></span>  <a class="code" href="classmeow_1_1IdentityPoints.html">IdentityPoints</a>& <a class="code" href="classmeow_1_1IdentityPoints.html#a7ec681b9849372eb14ed46734a4f885e">referenceFrom</a>(<a class="code" href="classmeow_1_1IdentityPoints.html">IdentityPoints</a> <span class="keyword">const</span>& b) {</div> +<div class="line"><a name="l00074"></a><span class="lineno"> 74</span>  <span class="keyword">self</span>().<a class="code" href="classmeow_1_1IdentityPoints.html#a7ec681b9849372eb14ed46734a4f885e">referenceFrom</a>(b.self);</div> +<div class="line"><a name="l00075"></a><span class="lineno"> 75</span>  <span class="keywordflow">return</span> *<span class="keyword">this</span>;</div> +<div class="line"><a name="l00076"></a><span class="lineno"> 76</span>  }</div> +<div class="line"><a name="l00077"></a><span class="lineno"> 77</span> </div> +<div class="line"><a name="l00081"></a><span class="lineno"><a class="line" href="classmeow_1_1IdentityPoints.html#ac9b4356b0c73a799ad97384a4688db66"> 81</a></span>  <span class="keywordtype">void</span> <a class="code" href="classmeow_1_1IdentityPoints.html#ac9b4356b0c73a799ad97384a4688db66">clear</a>() {</div> +<div class="line"><a name="l00082"></a><span class="lineno"> 82</span>  <span class="keyword">self</span>()->points_.clear();</div> +<div class="line"><a name="l00083"></a><span class="lineno"> 83</span>  }</div> +<div class="line"><a name="l00084"></a><span class="lineno"> 84</span> </div> +<div class="line"><a name="l00088"></a><span class="lineno"><a class="line" href="classmeow_1_1IdentityPoints.html#a48e856fca0660a5f56a13ccea992e3ea"> 88</a></span>  <span class="keywordtype">size_t</span> <a class="code" href="classmeow_1_1IdentityPoints.html#a48e856fca0660a5f56a13ccea992e3ea">size</a>()<span class="keyword"> const </span>{</div> +<div class="line"><a name="l00089"></a><span class="lineno"> 89</span>  <span class="keywordflow">return</span> <span class="keyword">self</span>->points_.size();</div> +<div class="line"><a name="l00090"></a><span class="lineno"> 90</span>  }</div> +<div class="line"><a name="l00091"></a><span class="lineno"> 91</span> </div> +<div class="line"><a name="l00095"></a><span class="lineno"><a class="line" href="classmeow_1_1IdentityPoints.html#a58a91f88750306e4ede279dabd7a1791"> 95</a></span>  <span class="keywordtype">bool</span> <a class="code" href="classmeow_1_1IdentityPoints.html#a58a91f88750306e4ede279dabd7a1791">empty</a>()<span class="keyword"> const </span>{</div> +<div class="line"><a name="l00096"></a><span class="lineno"> 96</span>  <span class="keywordflow">return</span> (<a class="code" href="classmeow_1_1IdentityPoints.html#a48e856fca0660a5f56a13ccea992e3ea">size</a>() == 0u);</div> +<div class="line"><a name="l00097"></a><span class="lineno"> 97</span>  }</div> +<div class="line"><a name="l00098"></a><span class="lineno"> 98</span> </div> +<div class="line"><a name="l00102"></a><span class="lineno"><a class="line" href="classmeow_1_1IdentityPoints.html#a171499ffe3d474aa3632b1a31b6402a0"> 102</a></span>  <span class="keywordtype">bool</span> <a class="code" href="classmeow_1_1IdentityPoints.html#a171499ffe3d474aa3632b1a31b6402a0">exist</a>(ID <span class="keyword">const</span>& <span class="keywordtype">id</span>)<span class="keyword"> const </span>{</div> +<div class="line"><a name="l00103"></a><span class="lineno"> 103</span>  <span class="keywordflow">return</span> (self->points_.find(<span class="keywordtype">id</span>) != <span class="keyword">self</span>->points_.end());</div> +<div class="line"><a name="l00104"></a><span class="lineno"> 104</span>  }</div> +<div class="line"><a name="l00105"></a><span class="lineno"> 105</span> </div> +<div class="line"><a name="l00109"></a><span class="lineno"><a class="line" href="classmeow_1_1IdentityPoints.html#a19da7e561a7216146da2d974434a0c68"> 109</a></span>  <span class="keywordtype">size_t</span> <a class="code" href="classmeow_1_1IdentityPoints.html#a19da7e561a7216146da2d974434a0c68">dimension</a>()<span class="keyword"> const </span>{</div> +<div class="line"><a name="l00110"></a><span class="lineno"> 110</span>  <span class="keywordflow">return</span> <span class="keyword">self</span>->dimension_;</div> +<div class="line"><a name="l00111"></a><span class="lineno"> 111</span>  }</div> +<div class="line"><a name="l00112"></a><span class="lineno"> 112</span> </div> +<div class="line"><a name="l00116"></a><span class="lineno"><a class="line" href="classmeow_1_1IdentityPoints.html#a4133a7d9107e92a54d7d602ff8df4a87"> 116</a></span>  <span class="keywordtype">size_t</span> <a class="code" href="classmeow_1_1IdentityPoints.html#a4133a7d9107e92a54d7d602ff8df4a87">dimension</a>(<span class="keywordtype">size_t</span> dim) {</div> +<div class="line"><a name="l00117"></a><span class="lineno"> 117</span>  <span class="keyword">self</span>()->dimension_ = dim;</div> +<div class="line"><a name="l00118"></a><span class="lineno"> 118</span>  <a class="code" href="classmeow_1_1IdentityPoints.html#ac9b4356b0c73a799ad97384a4688db66">clear</a>();</div> +<div class="line"><a name="l00119"></a><span class="lineno"> 119</span>  <span class="keywordflow">return</span> <a class="code" href="classmeow_1_1IdentityPoints.html#a19da7e561a7216146da2d974434a0c68">dimension</a>();</div> +<div class="line"><a name="l00120"></a><span class="lineno"> 120</span>  }</div> +<div class="line"><a name="l00121"></a><span class="lineno"> 121</span> </div> +<div class="line"><a name="l00125"></a><span class="lineno"><a class="line" href="classmeow_1_1IdentityPoints.html#a3955912afecde0f268cb1c6ec6a876ce"> 125</a></span>  <span class="keywordtype">size_t</span> <a class="code" href="classmeow_1_1IdentityPoints.html#a3955912afecde0f268cb1c6ec6a876ce">dimension</a>(<span class="keywordtype">size_t</span> dim, Scalar <span class="keyword">const</span>& init_value) {</div> +<div class="line"><a name="l00126"></a><span class="lineno"> 126</span>  <span class="keyword">self</span>()->dimension_ = dim;</div> +<div class="line"><a name="l00127"></a><span class="lineno"> 127</span>  <span class="keywordflow">for</span> (<a class="code" href="classmeow_1_1IdentityPoints.html#af0d41f58b9dfa0f63fdd3085defd6386">IdentityPointsMapIter</a></div> +<div class="line"><a name="l00128"></a><span class="lineno"> 128</span>  it = <span class="keyword">self</span>()->points_.begin(); it != <span class="keyword">self</span>()->points_.end(); ++it) {</div> +<div class="line"><a name="l00129"></a><span class="lineno"> 129</span>  it.second.dimension(dim, init_value);</div> +<div class="line"><a name="l00130"></a><span class="lineno"> 130</span>  }</div> +<div class="line"><a name="l00131"></a><span class="lineno"> 131</span>  <span class="keywordflow">return</span> <a class="code" href="classmeow_1_1IdentityPoints.html#a19da7e561a7216146da2d974434a0c68">dimension</a>();</div> +<div class="line"><a name="l00132"></a><span class="lineno"> 132</span>  }</div> +<div class="line"><a name="l00133"></a><span class="lineno"> 133</span> </div> +<div class="line"><a name="l00137"></a><span class="lineno"><a class="line" href="classmeow_1_1IdentityPoints.html#a312db9235d0a92aa6c297757079f6dd7"> 137</a></span>  <a class="code" href="classmeow_1_1IdentityPoints.html#adf552ad8e91278d3ba67ab149611b634">IdentityPointsMap</a> <span class="keyword">const</span>& <a class="code" href="classmeow_1_1IdentityPoints.html#a312db9235d0a92aa6c297757079f6dd7">identityPoints</a>()<span class="keyword"> const </span>{</div> +<div class="line"><a name="l00138"></a><span class="lineno"> 138</span>  <span class="keywordflow">return</span> <span class="keyword">self</span>->points_;</div> +<div class="line"><a name="l00139"></a><span class="lineno"> 139</span>  }</div> +<div class="line"><a name="l00140"></a><span class="lineno"> 140</span> </div> +<div class="line"><a name="l00144"></a><span class="lineno"><a class="line" href="classmeow_1_1IdentityPoints.html#aa812c3c2040fa9c5aa863fd34983c276"> 144</a></span>  <a class="code" href="classmeow_1_1IdentityPoints.html#adf552ad8e91278d3ba67ab149611b634">IdentityPointsMap</a> <span class="keyword">const</span>& <a class="code" href="classmeow_1_1IdentityPoints.html#aa812c3c2040fa9c5aa863fd34983c276">identityPoints</a>(<a class="code" href="classmeow_1_1IdentityPoints.html#adf552ad8e91278d3ba67ab149611b634">IdentityPointsMap</a> <span class="keyword">const</span>& points) {</div> +<div class="line"><a name="l00145"></a><span class="lineno"> 145</span>  <a class="code" href="classmeow_1_1IdentityPoints.html#ac9b4356b0c73a799ad97384a4688db66">clear</a>();</div> +<div class="line"><a name="l00146"></a><span class="lineno"> 146</span>  <span class="keywordflow">return</span> <a class="code" href="classmeow_1_1IdentityPoints.html#af7b65433eccc4d45af938a577a5b5946">identityPointsAdd</a>(points);</div> +<div class="line"><a name="l00147"></a><span class="lineno"> 147</span>  }</div> +<div class="line"><a name="l00148"></a><span class="lineno"> 148</span> </div> +<div class="line"><a name="l00152"></a><span class="lineno"><a class="line" href="classmeow_1_1IdentityPoints.html#af7b65433eccc4d45af938a577a5b5946"> 152</a></span>  <a class="code" href="classmeow_1_1IdentityPoints.html#adf552ad8e91278d3ba67ab149611b634">IdentityPointsMap</a> <span class="keyword">const</span>& <a class="code" href="classmeow_1_1IdentityPoints.html#af7b65433eccc4d45af938a577a5b5946">identityPointsAdd</a>(<a class="code" href="classmeow_1_1IdentityPoints.html#adf552ad8e91278d3ba67ab149611b634">IdentityPointsMap</a> <span class="keyword">const</span>& points) {</div> +<div class="line"><a name="l00153"></a><span class="lineno"> 153</span>  <span class="keywordflow">for</span> (<a class="code" href="classmeow_1_1IdentityPoints.html#a577f4fbc69ba3a99d2b0deabcdd1f72c">IdentityPointsMapIterK</a> it = points.begin(); it != points.end(); ++it) {</div> +<div class="line"><a name="l00154"></a><span class="lineno"> 154</span>  <a class="code" href="classmeow_1_1IdentityPoints.html#a8ad5a9cc2cfa2a9a32bf90b47cc42d94">identityPointAdd</a>(it.first, it.second);</div> +<div class="line"><a name="l00155"></a><span class="lineno"> 155</span>  }</div> +<div class="line"><a name="l00156"></a><span class="lineno"> 156</span>  <span class="keywordflow">return</span> <a class="code" href="classmeow_1_1IdentityPoints.html#a312db9235d0a92aa6c297757079f6dd7">identityPoints</a>();</div> +<div class="line"><a name="l00157"></a><span class="lineno"> 157</span>  }</div> +<div class="line"><a name="l00158"></a><span class="lineno"> 158</span> </div> +<div class="line"><a name="l00162"></a><span class="lineno"><a class="line" href="classmeow_1_1IdentityPoints.html#a442f6744170780c61801706bb45c74f5"> 162</a></span>  <a class="code" href="classmeow_1_1IdentityPoints.html#adf552ad8e91278d3ba67ab149611b634">IdentityPointsMap</a> <span class="keyword">const</span>& <a class="code" href="classmeow_1_1IdentityPoints.html#a442f6744170780c61801706bb45c74f5">identityPointsDel</a>(std::set<ID> <span class="keyword">const</span>& ids) {</div> +<div class="line"><a name="l00163"></a><span class="lineno"> 163</span>  <span class="keywordflow">for</span> (<span class="keyword">typename</span> std::set<ID>::const_iterator</div> +<div class="line"><a name="l00164"></a><span class="lineno"> 164</span>  it = ids.begin(); it != ids.end(); ++it) {</div> +<div class="line"><a name="l00165"></a><span class="lineno"> 165</span>  <a class="code" href="classmeow_1_1IdentityPoints.html#ad6df062b618a5b7dae5723eea1eb1403">identityPointDel</a>(*it);</div> +<div class="line"><a name="l00166"></a><span class="lineno"> 166</span>  }</div> +<div class="line"><a name="l00167"></a><span class="lineno"> 167</span>  <span class="keywordflow">return</span> <a class="code" href="classmeow_1_1IdentityPoints.html#a312db9235d0a92aa6c297757079f6dd7">identityPoints</a>();</div> +<div class="line"><a name="l00168"></a><span class="lineno"> 168</span>  }</div> +<div class="line"><a name="l00169"></a><span class="lineno"> 169</span> </div> +<div class="line"><a name="l00173"></a><span class="lineno"><a class="line" href="classmeow_1_1IdentityPoints.html#aabf2528a2d24a68d3a859f239383701f"> 173</a></span>  <a class="code" href="classmeow_1_1Vector.html">Vector<Scalar></a> <a class="code" href="classmeow_1_1IdentityPoints.html#aabf2528a2d24a68d3a859f239383701f">identityPoint</a>(ID <span class="keyword">const</span>& <span class="keywordtype">id</span>)<span class="keyword"> const </span>{</div> +<div class="line"><a name="l00174"></a><span class="lineno"> 174</span>  <span class="keywordflow">return</span> (<a class="code" href="classmeow_1_1IdentityPoints.html#a171499ffe3d474aa3632b1a31b6402a0">exist</a>(<span class="keywordtype">id</span>) ? self->points_.find(<span class="keywordtype">id</span>)->second : <a class="code" href="classmeow_1_1Vector.html">Vector<Scalar></a>());</div> +<div class="line"><a name="l00175"></a><span class="lineno"> 175</span>  }</div> +<div class="line"><a name="l00176"></a><span class="lineno"> 176</span> </div> +<div class="line"><a name="l00180"></a><span class="lineno"><a class="line" href="classmeow_1_1IdentityPoints.html#a22cc708e09447d1c059d8f7a07fa34cc"> 180</a></span>  <a class="code" href="classmeow_1_1Vector.html">Vector<Scalar></a> <a class="code" href="classmeow_1_1IdentityPoints.html#a22cc708e09447d1c059d8f7a07fa34cc">identityPoint</a>(ID <span class="keyword">const</span>& <span class="keywordtype">id</span>, <a class="code" href="classmeow_1_1Vector.html">Vector<Scalar></a> <span class="keyword">const</span>& b) {</div> +<div class="line"><a name="l00181"></a><span class="lineno"> 181</span>  <span class="keywordflow">if</span> (b.<a class="code" href="classmeow_1_1Vector.html#a554bb098d8af7ef1458624e8b1f47e6a">dimension</a>() == <span class="keyword">self</span>->dimension_ && <a class="code" href="classmeow_1_1IdentityPoints.html#a171499ffe3d474aa3632b1a31b6402a0">exist</a>(<span class="keywordtype">id</span>)) {</div> +<div class="line"><a name="l00182"></a><span class="lineno"> 182</span>  <span class="keyword">self</span>()->points_[<span class="keywordtype">id</span>].<a class="code" href="classmeow_1_1IdentityPoints.html#ae1ea1968aad3345a61257ba5db970429">copyFrom</a>(b);</div> +<div class="line"><a name="l00183"></a><span class="lineno"> 183</span>  }</div> +<div class="line"><a name="l00184"></a><span class="lineno"> 184</span>  <span class="keywordflow">return</span> <a class="code" href="classmeow_1_1IdentityPoints.html#aabf2528a2d24a68d3a859f239383701f">identityPoint</a>(<span class="keywordtype">id</span>);</div> +<div class="line"><a name="l00185"></a><span class="lineno"> 185</span>  }</div> +<div class="line"><a name="l00186"></a><span class="lineno"> 186</span> </div> +<div class="line"><a name="l00190"></a><span class="lineno"><a class="line" href="classmeow_1_1IdentityPoints.html#a8ad5a9cc2cfa2a9a32bf90b47cc42d94"> 190</a></span>  <a class="code" href="classmeow_1_1Vector.html">Vector<Scalar></a> <a class="code" href="classmeow_1_1IdentityPoints.html#a8ad5a9cc2cfa2a9a32bf90b47cc42d94">identityPointAdd</a>(ID <span class="keyword">const</span>& <span class="keywordtype">id</span>, <a class="code" href="classmeow_1_1Vector.html">Vector<Scalar></a> <span class="keyword">const</span>& b) {</div> +<div class="line"><a name="l00191"></a><span class="lineno"> 191</span>  <span class="keywordflow">if</span> (b.<a class="code" href="classmeow_1_1Vector.html#a554bb098d8af7ef1458624e8b1f47e6a">dimension</a>() == <span class="keyword">self</span>->dimension_ && !<a class="code" href="classmeow_1_1IdentityPoints.html#a171499ffe3d474aa3632b1a31b6402a0">exist</a>(<span class="keywordtype">id</span>)) {</div> +<div class="line"><a name="l00192"></a><span class="lineno"> 192</span>  <span class="keyword">self</span>()->points_[<span class="keywordtype">id</span>].<a class="code" href="classmeow_1_1IdentityPoints.html#ae1ea1968aad3345a61257ba5db970429">copyFrom</a>(b);</div> +<div class="line"><a name="l00193"></a><span class="lineno"> 193</span>  }</div> +<div class="line"><a name="l00194"></a><span class="lineno"> 194</span>  <span class="keywordflow">return</span> <a class="code" href="classmeow_1_1IdentityPoints.html#aabf2528a2d24a68d3a859f239383701f">identityPoint</a>(<span class="keywordtype">id</span>);</div> +<div class="line"><a name="l00195"></a><span class="lineno"> 195</span>  }</div> +<div class="line"><a name="l00196"></a><span class="lineno"> 196</span> </div> +<div class="line"><a name="l00200"></a><span class="lineno"><a class="line" href="classmeow_1_1IdentityPoints.html#ad6df062b618a5b7dae5723eea1eb1403"> 200</a></span>  <span class="keywordtype">void</span> <a class="code" href="classmeow_1_1IdentityPoints.html#ad6df062b618a5b7dae5723eea1eb1403">identityPointDel</a>(ID <span class="keyword">const</span>& <span class="keywordtype">id</span>) {</div> +<div class="line"><a name="l00201"></a><span class="lineno"> 201</span>  <span class="keyword">self</span>()->points_.erase(<span class="keywordtype">id</span>);</div> +<div class="line"><a name="l00202"></a><span class="lineno"> 202</span>  }</div> +<div class="line"><a name="l00203"></a><span class="lineno"> 203</span> </div> +<div class="line"><a name="l00207"></a><span class="lineno"><a class="line" href="classmeow_1_1IdentityPoints.html#a4a87edebfe33238c687ff6d6485c53f3"> 207</a></span>  <a class="code" href="classmeow_1_1Vector.html">Vector<Scalar></a>& <a class="code" href="classmeow_1_1IdentityPoints.html#a4a87edebfe33238c687ff6d6485c53f3">identityPointGet</a>(ID <span class="keyword">const</span>& <span class="keywordtype">id</span>) {</div> +<div class="line"><a name="l00208"></a><span class="lineno"> 208</span>  <span class="keywordflow">return</span> <span class="keyword">self</span>()->points_[<span class="keywordtype">id</span>];</div> +<div class="line"><a name="l00209"></a><span class="lineno"> 209</span>  }</div> +<div class="line"><a name="l00210"></a><span class="lineno"> 210</span> </div> +<div class="line"><a name="l00214"></a><span class="lineno"><a class="line" href="classmeow_1_1IdentityPoints.html#a8c2bcc67932db294e3b4e9f665ff505d"> 214</a></span>  <a class="code" href="classmeow_1_1IdentityPoints.html">IdentityPoints</a>& <a class="code" href="classmeow_1_1IdentityPoints.html#a8c2bcc67932db294e3b4e9f665ff505d">operator=</a>(<a class="code" href="classmeow_1_1IdentityPoints.html">IdentityPoints</a> <span class="keyword">const</span>& b) {</div> +<div class="line"><a name="l00215"></a><span class="lineno"> 215</span>  <span class="keywordflow">return</span> <a class="code" href="classmeow_1_1IdentityPoints.html#ae1ea1968aad3345a61257ba5db970429">copyFrom</a>(b);</div> +<div class="line"><a name="l00216"></a><span class="lineno"> 216</span>  }</div> +<div class="line"><a name="l00217"></a><span class="lineno"> 217</span> </div> +<div class="line"><a name="l00222"></a><span class="lineno"><a class="line" href="classmeow_1_1IdentityPoints.html#a7ecba020418b86d76db75e9f636aae9a"> 222</a></span>  <span class="keywordtype">bool</span> <a class="code" href="classmeow_1_1IdentityPoints.html#a7ecba020418b86d76db75e9f636aae9a">write</a>(FILE* f, <span class="keywordtype">bool</span> bin, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> fg)<span class="keyword"> const </span>{</div> +<div class="line"><a name="l00223"></a><span class="lineno"> 223</span>  <span class="keywordflow">if</span> (bin) {</div> +<div class="line"><a name="l00224"></a><span class="lineno"> 224</span>  <span class="keywordtype">long</span> dim, ct;</div> +<div class="line"><a name="l00225"></a><span class="lineno"> 225</span>  <span class="keywordflow">if</span> (fwrite(&(dim = <a class="code" href="classmeow_1_1IdentityPoints.html#a19da7e561a7216146da2d974434a0c68">dimension</a>()), <span class="keyword">sizeof</span>(dim), 1, f) < 1) <span class="keywordflow">return</span> <span class="keyword">false</span>;</div> +<div class="line"><a name="l00226"></a><span class="lineno"> 226</span>  <span class="keywordflow">if</span> (fwrite(&(ct = <a class="code" href="classmeow_1_1IdentityPoints.html#a48e856fca0660a5f56a13ccea992e3ea">size</a>()), <span class="keyword">sizeof</span>(ct), 1, f) < 1) <span class="keywordflow">return</span> <span class="keyword">false</span>;</div> +<div class="line"><a name="l00227"></a><span class="lineno"> 227</span>  <span class="keywordflow">for</span> (<a class="code" href="classmeow_1_1IdentityPoints.html#a577f4fbc69ba3a99d2b0deabcdd1f72c">IdentityPointsMapIterK</a></div> +<div class="line"><a name="l00228"></a><span class="lineno"> 228</span>  it = <a class="code" href="classmeow_1_1IdentityPoints.html#a312db9235d0a92aa6c297757079f6dd7">identityPoints</a>().begin(), ed = <a class="code" href="classmeow_1_1IdentityPoints.html#a312db9235d0a92aa6c297757079f6dd7">identityPoints</a>().end();</div> +<div class="line"><a name="l00229"></a><span class="lineno"> 229</span>  it != ed; ++it) {</div> +<div class="line"><a name="l00230"></a><span class="lineno"> 230</span>  <span class="keywordtype">double</span> tmp;</div> +<div class="line"><a name="l00231"></a><span class="lineno"> 231</span>  <span class="keywordflow">if</span> (fwrite(&(tmp = it->first), <span class="keyword">sizeof</span>(tmp), 1, f) < 1) <span class="keywordflow">return</span> <span class="keyword">false</span>;</div> +<div class="line"><a name="l00232"></a><span class="lineno"> 232</span>  <span class="keywordflow">for</span> (<span class="keywordtype">long</span> i = 0; i < dim; ++i) {</div> +<div class="line"><a name="l00233"></a><span class="lineno"> 233</span>  <span class="keywordflow">if</span> (fwrite(&(tmp = it->second(i)), <span class="keyword">sizeof</span>(tmp), 1, f) < 1)</div> +<div class="line"><a name="l00234"></a><span class="lineno"> 234</span>  <span class="keywordflow">return</span> <span class="keyword">false</span>;</div> +<div class="line"><a name="l00235"></a><span class="lineno"> 235</span>  }</div> +<div class="line"><a name="l00236"></a><span class="lineno"> 236</span>  }</div> +<div class="line"><a name="l00237"></a><span class="lineno"> 237</span>  }</div> +<div class="line"><a name="l00238"></a><span class="lineno"> 238</span>  <span class="keywordflow">else</span> {</div> +<div class="line"><a name="l00239"></a><span class="lineno"> 239</span>  <span class="keywordflow">if</span> (fprintf(f, <span class="stringliteral">"%ld %lu\n"</span>, <a class="code" href="classmeow_1_1IdentityPoints.html#a19da7e561a7216146da2d974434a0c68">dimension</a>(), <a class="code" href="classmeow_1_1IdentityPoints.html#a48e856fca0660a5f56a13ccea992e3ea">size</a>()) < 1) <span class="keywordflow">return</span> <span class="keyword">false</span>;</div> +<div class="line"><a name="l00240"></a><span class="lineno"> 240</span>  <span class="keywordflow">for</span> (<a class="code" href="classmeow_1_1IdentityPoints.html#a577f4fbc69ba3a99d2b0deabcdd1f72c">IdentityPointsMapIterK</a></div> +<div class="line"><a name="l00241"></a><span class="lineno"> 241</span>  it = <a class="code" href="classmeow_1_1IdentityPoints.html#a312db9235d0a92aa6c297757079f6dd7">identityPoints</a>().begin(), ed = <a class="code" href="classmeow_1_1IdentityPoints.html#a312db9235d0a92aa6c297757079f6dd7">identityPoints</a>().end();</div> +<div class="line"><a name="l00242"></a><span class="lineno"> 242</span>  it != ed; ++it) {</div> +<div class="line"><a name="l00243"></a><span class="lineno"> 243</span>  <span class="keywordflow">if</span> (fprintf(f, <span class="stringliteral">"%f "</span>, (<span class="keywordtype">double</span>)it->first) < 1) <span class="keywordflow">return</span> <span class="keyword">false</span>;</div> +<div class="line"><a name="l00244"></a><span class="lineno"> 244</span>  <span class="keywordflow">for</span> (<span class="keywordtype">long</span> i = 0, I = <a class="code" href="classmeow_1_1IdentityPoints.html#a19da7e561a7216146da2d974434a0c68">dimension</a>(); i < I; ++i) {</div> +<div class="line"><a name="l00245"></a><span class="lineno"> 245</span>  <span class="keywordflow">if</span> (fprintf(f, <span class="stringliteral">"%f "</span>, (<span class="keywordtype">double</span>)it->second(i)) < 1) <span class="keywordflow">return</span> <span class="keyword">false</span>;</div> +<div class="line"><a name="l00246"></a><span class="lineno"> 246</span>  }</div> +<div class="line"><a name="l00247"></a><span class="lineno"> 247</span>  fprintf(f, <span class="stringliteral">"\n"</span>);</div> +<div class="line"><a name="l00248"></a><span class="lineno"> 248</span>  }</div> +<div class="line"><a name="l00249"></a><span class="lineno"> 249</span>  }</div> +<div class="line"><a name="l00250"></a><span class="lineno"> 250</span>  <span class="keywordflow">return</span> <span class="keyword">true</span>;</div> +<div class="line"><a name="l00251"></a><span class="lineno"> 251</span>  }</div> +<div class="line"><a name="l00252"></a><span class="lineno"> 252</span> </div> +<div class="line"><a name="l00257"></a><span class="lineno"><a class="line" href="classmeow_1_1IdentityPoints.html#a66b8a6b980dad9b2cb71cb0823304c51"> 257</a></span>  <span class="keywordtype">bool</span> <a class="code" href="classmeow_1_1IdentityPoints.html#a66b8a6b980dad9b2cb71cb0823304c51">read</a>(FILE* f, <span class="keywordtype">bool</span> bin, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> fg) {</div> +<div class="line"><a name="l00258"></a><span class="lineno"> 258</span>  <span class="keywordtype">long</span> dim, ct;</div> +<div class="line"><a name="l00259"></a><span class="lineno"> 259</span>  <span class="keywordflow">if</span> (bin) {</div> +<div class="line"><a name="l00260"></a><span class="lineno"> 260</span>  <span class="keywordflow">if</span> (fread(&dim, <span class="keyword">sizeof</span>(dim), 1, f) < 1) <span class="keywordflow">return</span> <span class="keyword">false</span>;</div> +<div class="line"><a name="l00261"></a><span class="lineno"> 261</span>  <a class="code" href="classmeow_1_1IdentityPoints.html#a19da7e561a7216146da2d974434a0c68">dimension</a>(dim);</div> +<div class="line"><a name="l00262"></a><span class="lineno"> 262</span>  <span class="keywordflow">if</span> (fread(&ct, <span class="keyword">sizeof</span>(ct), 1, f) < 1) <span class="keywordflow">return</span> <span class="keyword">false</span>;</div> +<div class="line"><a name="l00263"></a><span class="lineno"> 263</span>  <span class="keywordtype">double</span> id, tt;</div> +<div class="line"><a name="l00264"></a><span class="lineno"> 264</span>  <a class="code" href="classmeow_1_1Vector.html">Vector<Scalar></a> tmp(dim, 0);</div> +<div class="line"><a name="l00265"></a><span class="lineno"> 265</span>  <span class="keywordflow">for</span> (<span class="keywordtype">int</span> i = 0; i < ct; ++i) {</div> +<div class="line"><a name="l00266"></a><span class="lineno"> 266</span>  <span class="keywordflow">if</span> (fread(&<span class="keywordtype">id</span>, <span class="keyword">sizeof</span>(<span class="keywordtype">id</span>), 1, f) < 1) <span class="keywordflow">return</span> <span class="keyword">false</span>;</div> +<div class="line"><a name="l00267"></a><span class="lineno"> 267</span>  <span class="keywordflow">for</span> (<span class="keywordtype">size_t</span> j = 0, J = dim; j < J; ++j) {</div> +<div class="line"><a name="l00268"></a><span class="lineno"> 268</span>  <span class="keywordflow">if</span> (fread(&tt, <span class="keyword">sizeof</span>(tt), 1, f) < 1) <span class="keywordflow">return</span> <span class="keyword">false</span>;</div> +<div class="line"><a name="l00269"></a><span class="lineno"> 269</span>  tmp.<a class="code" href="classmeow_1_1Vector.html#af5ecb8d9cc811a2d56e1725c4bfd30e8">entry</a>(j, tt);</div> +<div class="line"><a name="l00270"></a><span class="lineno"> 270</span>  }</div> +<div class="line"><a name="l00271"></a><span class="lineno"> 271</span>  <a class="code" href="classmeow_1_1IdentityPoints.html#a8ad5a9cc2cfa2a9a32bf90b47cc42d94">identityPointAdd</a>((ID)<span class="keywordtype">id</span>, tmp);</div> +<div class="line"><a name="l00272"></a><span class="lineno"> 272</span>  }</div> +<div class="line"><a name="l00273"></a><span class="lineno"> 273</span>  }</div> +<div class="line"><a name="l00274"></a><span class="lineno"> 274</span>  <span class="keywordflow">else</span> {</div> +<div class="line"><a name="l00275"></a><span class="lineno"> 275</span>  <span class="keywordflow">if</span> (fscanf(f, <span class="stringliteral">"%ld %ld"</span>, &dim, &ct) < 2) <span class="keywordflow">return</span> <span class="keyword">false</span>;</div> +<div class="line"><a name="l00276"></a><span class="lineno"> 276</span>  <a class="code" href="classmeow_1_1IdentityPoints.html#a19da7e561a7216146da2d974434a0c68">dimension</a>(dim);</div> +<div class="line"><a name="l00277"></a><span class="lineno"> 277</span>  <span class="keywordtype">double</span> id, tt;</div> +<div class="line"><a name="l00278"></a><span class="lineno"> 278</span>  <a class="code" href="classmeow_1_1Vector.html">Vector<Scalar></a> tmp(dim, 0);</div> +<div class="line"><a name="l00279"></a><span class="lineno"> 279</span>  <span class="keywordflow">for</span> (<span class="keywordtype">int</span> i = 0; i < ct; ++i) {</div> +<div class="line"><a name="l00280"></a><span class="lineno"> 280</span>  <span class="keywordflow">if</span> (fscanf(f, <span class="stringliteral">"%lf"</span>, &<span class="keywordtype">id</span>) < 1) <span class="keywordflow">return</span> <span class="keyword">false</span>;</div> +<div class="line"><a name="l00281"></a><span class="lineno"> 281</span>  <span class="keywordflow">for</span> (<span class="keywordtype">int</span> j = 0, J = dim; j < J; ++j) {</div> +<div class="line"><a name="l00282"></a><span class="lineno"> 282</span>  <span class="keywordflow">if</span> (fscanf(f, <span class="stringliteral">"%lf"</span>, &tt) < 1) <span class="keywordflow">return</span> <span class="keyword">false</span>;</div> +<div class="line"><a name="l00283"></a><span class="lineno"> 283</span>  tmp.<a class="code" href="classmeow_1_1Vector.html#af5ecb8d9cc811a2d56e1725c4bfd30e8">entry</a>(j, tt);</div> +<div class="line"><a name="l00284"></a><span class="lineno"> 284</span>  }</div> +<div class="line"><a name="l00285"></a><span class="lineno"> 285</span>  <a class="code" href="classmeow_1_1IdentityPoints.html#a8ad5a9cc2cfa2a9a32bf90b47cc42d94">identityPointAdd</a>((ID)<span class="keywordtype">id</span>, tmp);</div> +<div class="line"><a name="l00286"></a><span class="lineno"> 286</span>  }</div> +<div class="line"><a name="l00287"></a><span class="lineno"> 287</span>  }</div> +<div class="line"><a name="l00288"></a><span class="lineno"> 288</span>  <span class="keywordflow">return</span> <span class="keyword">true</span>;</div> +<div class="line"><a name="l00289"></a><span class="lineno"> 289</span>  }</div> +<div class="line"><a name="l00290"></a><span class="lineno"> 290</span> </div> +<div class="line"><a name="l00295"></a><span class="lineno"><a class="line" href="classmeow_1_1IdentityPoints.html#a464d62354fc3d12767b71632f9b27524"> 295</a></span>  <a class="code" href="classmeow_1_1ObjBase.html">ObjBase</a>* <a class="code" href="classmeow_1_1IdentityPoints.html#a464d62354fc3d12767b71632f9b27524">create</a>()<span class="keyword"> const </span>{</div> +<div class="line"><a name="l00296"></a><span class="lineno"> 296</span>  <span class="keywordflow">return</span> <span class="keyword">new</span> <a class="code" href="classmeow_1_1IdentityPoints.html#ab3566725696aa78c8b4f85892b6dacc4">IdentityPoints</a>();</div> +<div class="line"><a name="l00297"></a><span class="lineno"> 297</span>  }</div> +<div class="line"><a name="l00298"></a><span class="lineno"> 298</span> </div> +<div class="line"><a name="l00308"></a><span class="lineno"><a class="line" href="classmeow_1_1IdentityPoints.html#a6b17e68e14290ebfdcdd59a0724cdc41"> 308</a></span>  <a class="code" href="classmeow_1_1ObjBase.html">ObjBase</a>* <a class="code" href="classmeow_1_1IdentityPoints.html#a6b17e68e14290ebfdcdd59a0724cdc41">copyFrom</a>(<a class="code" href="classmeow_1_1ObjBase.html">ObjBase</a> <span class="keyword">const</span>* b) {</div> +<div class="line"><a name="l00309"></a><span class="lineno"> 309</span>  <span class="keywordflow">return</span> &(<a class="code" href="classmeow_1_1IdentityPoints.html#ae1ea1968aad3345a61257ba5db970429">copyFrom</a>(*(<a class="code" href="classmeow_1_1IdentityPoints.html">IdentityPoints</a>*)b));</div> +<div class="line"><a name="l00310"></a><span class="lineno"> 310</span>  }</div> +<div class="line"><a name="l00311"></a><span class="lineno"> 311</span> </div> +<div class="line"><a name="l00316"></a><span class="lineno"><a class="line" href="classmeow_1_1IdentityPoints.html#ae90d4c4d8125919ae8807d89790bed61"> 316</a></span>  <span class="keywordtype">char</span> <span class="keyword">const</span>* <a class="code" href="classmeow_1_1IdentityPoints.html#ae90d4c4d8125919ae8807d89790bed61">ctype</a>()<span class="keyword"> const </span>{</div> +<div class="line"><a name="l00317"></a><span class="lineno"> 317</span>  <span class="keywordflow">return</span> <span class="keyword">typeid</span>(*this).name();</div> +<div class="line"><a name="l00318"></a><span class="lineno"> 318</span>  }</div> +<div class="line"><a name="l00319"></a><span class="lineno"> 319</span> </div> +<div class="line"><a name="l00324"></a><span class="lineno"><a class="line" href="classmeow_1_1IdentityPoints.html#a6ce521c18a45b50bd8b75201480b97f7"> 324</a></span>  std::string <a class="code" href="classmeow_1_1IdentityPoints.html#a6ce521c18a45b50bd8b75201480b97f7">type</a>()<span class="keyword"> const </span>{</div> +<div class="line"><a name="l00325"></a><span class="lineno"> 325</span>  <span class="keywordflow">return</span> std::string(<a class="code" href="classmeow_1_1IdentityPoints.html#ae90d4c4d8125919ae8807d89790bed61">ctype</a>());</div> +<div class="line"><a name="l00326"></a><span class="lineno"> 326</span>  }</div> +<div class="line"><a name="l00327"></a><span class="lineno"> 327</span> };</div> +<div class="line"><a name="l00328"></a><span class="lineno"> 328</span> </div> +<div class="line"><a name="l00329"></a><span class="lineno"> 329</span> }</div> +<div class="line"><a name="l00330"></a><span class="lineno"> 330</span> </div> +<div class="line"><a name="l00331"></a><span class="lineno"> 331</span> <span class="preprocessor">#endif // gra_IdentityPoints_H__</span></div> +<div class="ttc" id="classmeow_1_1IdentityPoints_html_a6ce521c18a45b50bd8b75201480b97f7"><div class="ttname"><a href="classmeow_1_1IdentityPoints.html#a6ce521c18a45b50bd8b75201480b97f7">meow::IdentityPoints::type</a></div><div class="ttdeci">std::string type() const </div><div class="ttdoc">回傳class的type </div><div class="ttdef"><b>Definition:</b> <a href="IdentityPoints_8h_source.html#l00324">IdentityPoints.h:324</a></div></div> +<div class="ttc" id="classmeow_1_1Vector_html_a554bb098d8af7ef1458624e8b1f47e6a"><div class="ttname"><a href="classmeow_1_1Vector.html#a554bb098d8af7ef1458624e8b1f47e6a">meow::Vector::dimension</a></div><div class="ttdeci">size_t dimension() const </div><div class="ttdoc">return dimension </div><div class="ttdef"><b>Definition:</b> <a href="Vector_8h_source.html#l00100">Vector.h:100</a></div></div> +<div class="ttc" id="classmeow_1_1IdentityPoints_html_a4133a7d9107e92a54d7d602ff8df4a87"><div class="ttname"><a href="classmeow_1_1IdentityPoints.html#a4133a7d9107e92a54d7d602ff8df4a87">meow::IdentityPoints::dimension</a></div><div class="ttdeci">size_t dimension(size_t dim)</div><div class="ttdoc">設定dimension, 並且清空資料 </div><div class="ttdef"><b>Definition:</b> <a href="IdentityPoints_8h_source.html#l00116">IdentityPoints.h:116</a></div></div> +<div class="ttc" id="classmeow_1_1IdentityPoints_html_a464d62354fc3d12767b71632f9b27524"><div class="ttname"><a href="classmeow_1_1IdentityPoints.html#a464d62354fc3d12767b71632f9b27524">meow::IdentityPoints::create</a></div><div class="ttdeci">ObjBase * create() const </div><div class="ttdoc">new一個自己 </div><div class="ttdef"><b>Definition:</b> <a href="IdentityPoints_8h_source.html#l00295">IdentityPoints.h:295</a></div></div> +<div class="ttc" id="classmeow_1_1IdentityPoints_html_a4a87edebfe33238c687ff6d6485c53f3"><div class="ttname"><a href="classmeow_1_1IdentityPoints.html#a4a87edebfe33238c687ff6d6485c53f3">meow::IdentityPoints::identityPointGet</a></div><div class="ttdeci">Vector< Scalar > & identityPointGet(ID const &id)</div><div class="ttdoc">取得一個identity point, non-constant reference </div><div class="ttdef"><b>Definition:</b> <a href="IdentityPoints_8h_source.html#l00207">IdentityPoints.h:207</a></div></div> +<div class="ttc" id="classmeow_1_1IdentityPoints_html_a66b8a6b980dad9b2cb71cb0823304c51"><div class="ttname"><a href="classmeow_1_1IdentityPoints.html#a66b8a6b980dad9b2cb71cb0823304c51">meow::IdentityPoints::read</a></div><div class="ttdeci">bool read(FILE *f, bool bin, unsigned int fg)</div><div class="ttdoc">將資料讀入 </div><div class="ttdef"><b>Definition:</b> <a href="IdentityPoints_8h_source.html#l00257">IdentityPoints.h:257</a></div></div> +<div class="ttc" id="classmeow_1_1IdentityPoints_html_a58a91f88750306e4ede279dabd7a1791"><div class="ttname"><a href="classmeow_1_1IdentityPoints.html#a58a91f88750306e4ede279dabd7a1791">meow::IdentityPoints::empty</a></div><div class="ttdeci">bool empty() const </div><div class="ttdoc">回傳是否沒有identity points </div><div class="ttdef"><b>Definition:</b> <a href="IdentityPoints_8h_source.html#l00095">IdentityPoints.h:95</a></div></div> +<div class="ttc" id="classmeow_1_1IdentityPoints_html_aa812c3c2040fa9c5aa863fd34983c276"><div class="ttname"><a href="classmeow_1_1IdentityPoints.html#aa812c3c2040fa9c5aa863fd34983c276">meow::IdentityPoints::identityPoints</a></div><div class="ttdeci">IdentityPointsMap const & identityPoints(IdentityPointsMap const &points)</div><div class="ttdoc">設定所有identity points </div><div class="ttdef"><b>Definition:</b> <a href="IdentityPoints_8h_source.html#l00144">IdentityPoints.h:144</a></div></div> +<div class="ttc" id="classmeow_1_1IdentityPoints_html_a6b17e68e14290ebfdcdd59a0724cdc41"><div class="ttname"><a href="classmeow_1_1IdentityPoints.html#a6b17e68e14290ebfdcdd59a0724cdc41">meow::IdentityPoints::copyFrom</a></div><div class="ttdeci">ObjBase * copyFrom(ObjBase const *b)</div><div class="ttdoc">複製資料 </div><div class="ttdef"><b>Definition:</b> <a href="IdentityPoints_8h_source.html#l00308">IdentityPoints.h:308</a></div></div> +<div class="ttc" id="classmeow_1_1Vector_html_af5ecb8d9cc811a2d56e1725c4bfd30e8"><div class="ttname"><a href="classmeow_1_1Vector.html#af5ecb8d9cc811a2d56e1725c4bfd30e8">meow::Vector::entry</a></div><div class="ttdeci">Scalar entry(size_t i) const </div><div class="ttdoc">return i -th entry </div><div class="ttdef"><b>Definition:</b> <a href="Vector_8h_source.html#l00125">Vector.h:125</a></div></div> +<div class="ttc" id="classmeow_1_1IdentityPoints_html"><div class="ttname"><a href="classmeow_1_1IdentityPoints.html">meow::IdentityPoints</a></div><div class="ttdoc">把一個 std::map<ID,Vector<Scalar> > 包起來 </div><div class="ttdef"><b>Definition:</b> <a href="IdentityPoints_8h_source.html#l00021">IdentityPoints.h:21</a></div></div> +<div class="ttc" id="classmeow_1_1IdentityPoints_html_ae90d4c4d8125919ae8807d89790bed61"><div class="ttname"><a href="classmeow_1_1IdentityPoints.html#ae90d4c4d8125919ae8807d89790bed61">meow::IdentityPoints::ctype</a></div><div class="ttdeci">char const * ctype() const </div><div class="ttdoc">回傳class的type </div><div class="ttdef"><b>Definition:</b> <a href="IdentityPoints_8h_source.html#l00316">IdentityPoints.h:316</a></div></div> +<div class="ttc" id="classmeow_1_1IdentityPoints_html_ae1ea1968aad3345a61257ba5db970429"><div class="ttname"><a href="classmeow_1_1IdentityPoints.html#ae1ea1968aad3345a61257ba5db970429">meow::IdentityPoints::copyFrom</a></div><div class="ttdeci">IdentityPoints & copyFrom(IdentityPoints const &b)</div><div class="ttdoc">複製資料 </div><div class="ttdef"><b>Definition:</b> <a href="IdentityPoints_8h_source.html#l00065">IdentityPoints.h:65</a></div></div> +<div class="ttc" id="classmeow_1_1IdentityPoints_html_a48e856fca0660a5f56a13ccea992e3ea"><div class="ttname"><a href="classmeow_1_1IdentityPoints.html#a48e856fca0660a5f56a13ccea992e3ea">meow::IdentityPoints::size</a></div><div class="ttdeci">size_t size() const </div><div class="ttdoc">回傳有幾個identity points </div><div class="ttdef"><b>Definition:</b> <a href="IdentityPoints_8h_source.html#l00088">IdentityPoints.h:88</a></div></div> +<div class="ttc" id="classmeow_1_1IdentityPoints_html_a7ec681b9849372eb14ed46734a4f885e"><div class="ttname"><a href="classmeow_1_1IdentityPoints.html#a7ec681b9849372eb14ed46734a4f885e">meow::IdentityPoints::referenceFrom</a></div><div class="ttdeci">IdentityPoints & referenceFrom(IdentityPoints const &b)</div><div class="ttdoc">參照 </div><div class="ttdef"><b>Definition:</b> <a href="IdentityPoints_8h_source.html#l00073">IdentityPoints.h:73</a></div></div> +<div class="ttc" id="classmeow_1_1IdentityPoints_html_a171499ffe3d474aa3632b1a31b6402a0"><div class="ttname"><a href="classmeow_1_1IdentityPoints.html#a171499ffe3d474aa3632b1a31b6402a0">meow::IdentityPoints::exist</a></div><div class="ttdeci">bool exist(ID const &id) const </div><div class="ttdoc">檢查某id是否有使用 </div><div class="ttdef"><b>Definition:</b> <a href="IdentityPoints_8h_source.html#l00102">IdentityPoints.h:102</a></div></div> +<div class="ttc" id="classmeow_1_1IdentityPoints_html_ad6df062b618a5b7dae5723eea1eb1403"><div class="ttname"><a href="classmeow_1_1IdentityPoints.html#ad6df062b618a5b7dae5723eea1eb1403">meow::IdentityPoints::identityPointDel</a></div><div class="ttdeci">void identityPointDel(ID const &id)</div><div class="ttdoc">刪除一個identity point </div><div class="ttdef"><b>Definition:</b> <a href="IdentityPoints_8h_source.html#l00200">IdentityPoints.h:200</a></div></div> +<div class="ttc" id="classmeow_1_1IdentityPoints_html_ac9b4356b0c73a799ad97384a4688db66"><div class="ttname"><a href="classmeow_1_1IdentityPoints.html#ac9b4356b0c73a799ad97384a4688db66">meow::IdentityPoints::clear</a></div><div class="ttdeci">void clear()</div><div class="ttdoc">清除一切identity points </div><div class="ttdef"><b>Definition:</b> <a href="IdentityPoints_8h_source.html#l00081">IdentityPoints.h:81</a></div></div> +<div class="ttc" id="classmeow_1_1IdentityPoints_html_a8ad5a9cc2cfa2a9a32bf90b47cc42d94"><div class="ttname"><a href="classmeow_1_1IdentityPoints.html#a8ad5a9cc2cfa2a9a32bf90b47cc42d94">meow::IdentityPoints::identityPointAdd</a></div><div class="ttdeci">Vector< Scalar > identityPointAdd(ID const &id, Vector< Scalar > const &b)</div><div class="ttdoc">新增一個identity point </div><div class="ttdef"><b>Definition:</b> <a href="IdentityPoints_8h_source.html#l00190">IdentityPoints.h:190</a></div></div> +<div class="ttc" id="classmeow_1_1IdentityPoints_html_a803396e9f4cb1fc6d35b60cc70bcc50a"><div class="ttname"><a href="classmeow_1_1IdentityPoints.html#a803396e9f4cb1fc6d35b60cc70bcc50a">meow::IdentityPoints::IdentityPoints</a></div><div class="ttdeci">IdentityPoints(IdentityPoints const &b)</div><div class="ttdoc">constructor, 並且複製資料 </div><div class="ttdef"><b>Definition:</b> <a href="IdentityPoints_8h_source.html#l00052">IdentityPoints.h:52</a></div></div> +<div class="ttc" id="classmeow_1_1IdentityPoints_html_adf552ad8e91278d3ba67ab149611b634"><div class="ttname"><a href="classmeow_1_1IdentityPoints.html#adf552ad8e91278d3ba67ab149611b634">meow::IdentityPoints::IdentityPointsMap</a></div><div class="ttdeci">std::map< ID, Vector< Scalar > > IdentityPointsMap</div><div class="ttdef"><b>Definition:</b> <a href="IdentityPoints_8h_source.html#l00023">IdentityPoints.h:23</a></div></div> +<div class="ttc" id="classmeow_1_1ObjBase_html"><div class="ttname"><a href="classmeow_1_1ObjBase.html">meow::ObjBase</a></div><div class="ttdoc">一切物件的Base, 並要求每個物件都要有read, write, create, ... 等功能 </div><div class="ttdef"><b>Definition:</b> <a href="ObjBase_8h_source.html#l00015">ObjBase.h:15</a></div></div> +<div class="ttc" id="classmeow_1_1IdentityPoints_html_ab3566725696aa78c8b4f85892b6dacc4"><div class="ttname"><a href="classmeow_1_1IdentityPoints.html#ab3566725696aa78c8b4f85892b6dacc4">meow::IdentityPoints::IdentityPoints</a></div><div class="ttdeci">IdentityPoints()</div><div class="ttdoc">constructor </div><div class="ttdef"><b>Definition:</b> <a href="IdentityPoints_8h_source.html#l00046">IdentityPoints.h:46</a></div></div> +<div class="ttc" id="classmeow_1_1Vector_html"><div class="ttname"><a href="classmeow_1_1Vector.html">meow::Vector</a></div><div class="ttdoc">vector </div><div class="ttdef"><b>Definition:</b> <a href="Vector_8h_source.html#l00019">Vector.h:19</a></div></div> +<div class="ttc" id="classmeow_1_1IdentityPoints_html_a312db9235d0a92aa6c297757079f6dd7"><div class="ttname"><a href="classmeow_1_1IdentityPoints.html#a312db9235d0a92aa6c297757079f6dd7">meow::IdentityPoints::identityPoints</a></div><div class="ttdeci">IdentityPointsMap const & identityPoints() const </div><div class="ttdoc">取得所有identity points </div><div class="ttdef"><b>Definition:</b> <a href="IdentityPoints_8h_source.html#l00137">IdentityPoints.h:137</a></div></div> +<div class="ttc" id="classmeow_1_1IdentityPoints_html_a19da7e561a7216146da2d974434a0c68"><div class="ttname"><a href="classmeow_1_1IdentityPoints.html#a19da7e561a7216146da2d974434a0c68">meow::IdentityPoints::dimension</a></div><div class="ttdeci">size_t dimension() const </div><div class="ttdoc">回傳dimension </div><div class="ttdef"><b>Definition:</b> <a href="IdentityPoints_8h_source.html#l00109">IdentityPoints.h:109</a></div></div> +<div class="ttc" id="classmeow_1_1IdentityPoints_html_a8c2bcc67932db294e3b4e9f665ff505d"><div class="ttname"><a href="classmeow_1_1IdentityPoints.html#a8c2bcc67932db294e3b4e9f665ff505d">meow::IdentityPoints::operator=</a></div><div class="ttdeci">IdentityPoints & operator=(IdentityPoints const &b)</div><div class="ttdoc">same as copyFrom(b) </div><div class="ttdef"><b>Definition:</b> <a href="IdentityPoints_8h_source.html#l00214">IdentityPoints.h:214</a></div></div> +<div class="ttc" id="classmeow_1_1IdentityPoints_html_a3955912afecde0f268cb1c6ec6a876ce"><div class="ttname"><a href="classmeow_1_1IdentityPoints.html#a3955912afecde0f268cb1c6ec6a876ce">meow::IdentityPoints::dimension</a></div><div class="ttdeci">size_t dimension(size_t dim, Scalar const &init_value)</div><div class="ttdoc">設定dimension, 並且針對每個identity point指定重設dimension </div><div class="ttdef"><b>Definition:</b> <a href="IdentityPoints_8h_source.html#l00125">IdentityPoints.h:125</a></div></div> +<div class="ttc" id="classmeow_1_1IdentityPoints_html_aabf2528a2d24a68d3a859f239383701f"><div class="ttname"><a href="classmeow_1_1IdentityPoints.html#aabf2528a2d24a68d3a859f239383701f">meow::IdentityPoints::identityPoint</a></div><div class="ttdeci">Vector< Scalar > identityPoint(ID const &id) const </div><div class="ttdoc">取得一個identity point </div><div class="ttdef"><b>Definition:</b> <a href="IdentityPoints_8h_source.html#l00173">IdentityPoints.h:173</a></div></div> +<div class="ttc" id="classmeow_1_1Self_html"><div class="ttname"><a href="classmeow_1_1Self.html">meow::Self< Myself ></a></div></div> +<div class="ttc" id="classmeow_1_1IdentityPoints_html_ab32aa1152834a8f95625ccdc6f26b0c6"><div class="ttname"><a href="classmeow_1_1IdentityPoints.html#ab32aa1152834a8f95625ccdc6f26b0c6">meow::IdentityPoints::~IdentityPoints</a></div><div class="ttdeci">~IdentityPoints()</div><div class="ttdoc">destructor </div><div class="ttdef"><b>Definition:</b> <a href="IdentityPoints_8h_source.html#l00059">IdentityPoints.h:59</a></div></div> +<div class="ttc" id="classmeow_1_1IdentityPoints_html_a7ecba020418b86d76db75e9f636aae9a"><div class="ttname"><a href="classmeow_1_1IdentityPoints.html#a7ecba020418b86d76db75e9f636aae9a">meow::IdentityPoints::write</a></div><div class="ttdeci">bool write(FILE *f, bool bin, unsigned int fg) const </div><div class="ttdoc">將資料寫入檔案 </div><div class="ttdef"><b>Definition:</b> <a href="IdentityPoints_8h_source.html#l00222">IdentityPoints.h:222</a></div></div> +<div class="ttc" id="classmeow_1_1IdentityPoints_html_af0d41f58b9dfa0f63fdd3085defd6386"><div class="ttname"><a href="classmeow_1_1IdentityPoints.html#af0d41f58b9dfa0f63fdd3085defd6386">meow::IdentityPoints::IdentityPointsMapIter</a></div><div class="ttdeci">IdentityPointsMap::iterator IdentityPointsMapIter</div><div class="ttdef"><b>Definition:</b> <a href="IdentityPoints_8h_source.html#l00024">IdentityPoints.h:24</a></div></div> +<div class="ttc" id="classmeow_1_1IdentityPoints_html_a577f4fbc69ba3a99d2b0deabcdd1f72c"><div class="ttname"><a href="classmeow_1_1IdentityPoints.html#a577f4fbc69ba3a99d2b0deabcdd1f72c">meow::IdentityPoints::IdentityPointsMapIterK</a></div><div class="ttdeci">IdentityPointsMap::const_iterator IdentityPointsMapIterK</div><div class="ttdef"><b>Definition:</b> <a href="IdentityPoints_8h_source.html#l00025">IdentityPoints.h:25</a></div></div> +<div class="ttc" id="classmeow_1_1IdentityPoints_html_a22cc708e09447d1c059d8f7a07fa34cc"><div class="ttname"><a href="classmeow_1_1IdentityPoints.html#a22cc708e09447d1c059d8f7a07fa34cc">meow::IdentityPoints::identityPoint</a></div><div class="ttdeci">Vector< Scalar > identityPoint(ID const &id, Vector< Scalar > const &b)</div><div class="ttdoc">修改一個identity point </div><div class="ttdef"><b>Definition:</b> <a href="IdentityPoints_8h_source.html#l00180">IdentityPoints.h:180</a></div></div> +<div class="ttc" id="classmeow_1_1IdentityPoints_html_af7b65433eccc4d45af938a577a5b5946"><div class="ttname"><a href="classmeow_1_1IdentityPoints.html#af7b65433eccc4d45af938a577a5b5946">meow::IdentityPoints::identityPointsAdd</a></div><div class="ttdeci">IdentityPointsMap const & identityPointsAdd(IdentityPointsMap const &points)</div><div class="ttdoc">加入identity Points </div><div class="ttdef"><b>Definition:</b> <a href="IdentityPoints_8h_source.html#l00152">IdentityPoints.h:152</a></div></div> +<div class="ttc" id="classmeow_1_1IdentityPoints_html_a442f6744170780c61801706bb45c74f5"><div class="ttname"><a href="classmeow_1_1IdentityPoints.html#a442f6744170780c61801706bb45c74f5">meow::IdentityPoints::identityPointsDel</a></div><div class="ttdeci">IdentityPointsMap const & identityPointsDel(std::set< ID > const &ids)</div><div class="ttdoc">移除identity Points </div><div class="ttdef"><b>Definition:</b> <a href="IdentityPoints_8h_source.html#l00162">IdentityPoints.h:162</a></div></div> </div><!-- fragment --></div><!-- contents --> </div><!-- doc-content --> <!-- HTML footer for doxygen 1.8.3.1--> @@ -244,9 +333,9 @@ $(document).ready(function(){initNavTree('IdentityPoints_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="dir_115d3279a93b9c99d8f569a34543848f.html">gra</a></li><li class="navelem"><a class="el" href="IdentityPoints_8h.html">IdentityPoints.h</a></li> - <li class="footer">Generated on Fri Jun 6 2014 17:51:46 for Templates -- Meow by + <li class="footer">Generated on Mon Jun 23 2014 17:02:02 for Templates -- Meow by <a href="http://www.doxygen.org/index.html"> - <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.3.1 </li> + <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.6 </li> </ul> </div> </body> |