diff options
Diffstat (limited to 'doc/html/classmeow_1_1Self.html')
-rw-r--r-- | doc/html/classmeow_1_1Self.html | 231 |
1 files changed, 148 insertions, 83 deletions
diff --git a/doc/html/classmeow_1_1Self.html b/doc/html/classmeow_1_1Self.html index d8e34ad..75f57e3 100644 --- a/doc/html/classmeow_1_1Self.html +++ b/doc/html/classmeow_1_1Self.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: meow::Self< Data > Class Template Reference</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"> @@ -64,7 +64,7 @@ $(document).ready(function(){initNavTree('classmeow_1_1Self.html','');}); </div><!--header--> <div class="contents"> -<p>具有copy on write, 且擁有比C++更靈活的reference機制 +<p>A little class use for packing the data part of another class. With this technique, it can achieve Copy-On-Write(COR) mechanism at background and have a reference mechanism which much more flexible then the one C++ has. <a href="classmeow_1_1Self.html#details">More...</a></p> <p><code>#include "<a class="el" href="Self_8h_source.html">Self.h</a>"</code></p> @@ -74,103 +74,143 @@ Public Types</h2></td></tr> <tr class="memitem:aa7d169e9d20d590f3e571206084797f8"><td class="memItemLeft" align="right" valign="top">enum  </td><td class="memItemRight" valign="bottom"><a class="el" href="classmeow_1_1Self.html#aa7d169e9d20d590f3e571206084797f8">DuplicateType</a> { <a class="el" href="classmeow_1_1Self.html#aa7d169e9d20d590f3e571206084797f8adef1b0d02e1090b1b610a4ea91bd6730">COPY_FROM</a>, <a class="el" href="classmeow_1_1Self.html#aa7d169e9d20d590f3e571206084797f8a40c8a3eba568e04a5ce09ee0fa881822">REFERENCE_FROM</a> }</td></tr> -<tr class="memdesc:aa7d169e9d20d590f3e571206084797f8"><td class="mdescLeft"> </td><td class="mdescRight">複製資料的方法 <a href="classmeow_1_1Self.html#aa7d169e9d20d590f3e571206084797f8">More...</a><br/></td></tr> +<tr class="memdesc:aa7d169e9d20d590f3e571206084797f8"><td class="mdescLeft"> </td><td class="mdescRight">Kind of ways of duplicating. <a href="classmeow_1_1Self.html#aa7d169e9d20d590f3e571206084797f8">More...</a><br/></td></tr> <tr class="separator:aa7d169e9d20d590f3e571206084797f8"><td class="memSeparator" colspan="2"> </td></tr> </table><table class="memberdecls"> <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a> Public Member Functions</h2></td></tr> <tr class="memitem:a6b39fcc4b184809f9aeaeb1c9a0bac2d"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classmeow_1_1Self.html#a6b39fcc4b184809f9aeaeb1c9a0bac2d">Self</a> ()</td></tr> -<tr class="memdesc:a6b39fcc4b184809f9aeaeb1c9a0bac2d"><td class="mdescLeft"> </td><td class="mdescRight">constructor, 並宣告一個實體 <a href="#a6b39fcc4b184809f9aeaeb1c9a0bac2d">More...</a><br/></td></tr> +<tr class="memdesc:a6b39fcc4b184809f9aeaeb1c9a0bac2d"><td class="mdescLeft"> </td><td class="mdescRight">constructor with a real entity <a href="#a6b39fcc4b184809f9aeaeb1c9a0bac2d">More...</a><br/></td></tr> <tr class="separator:a6b39fcc4b184809f9aeaeb1c9a0bac2d"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:af3220c1e1d7966c6dbaf4ec62f8cbc2f"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classmeow_1_1Self.html#af3220c1e1d7966c6dbaf4ec62f8cbc2f">Self</a> (Data const &d)</td></tr> -<tr class="memdesc:af3220c1e1d7966c6dbaf4ec62f8cbc2f"><td class="mdescLeft"> </td><td class="mdescRight">connstructor, 宣告一個實體, 其中該實體的constructor用copy constructor <a href="#af3220c1e1d7966c6dbaf4ec62f8cbc2f">More...</a><br/></td></tr> +<tr class="memdesc:af3220c1e1d7966c6dbaf4ec62f8cbc2f"><td class="mdescLeft"> </td><td class="mdescRight">connstructor with a real entity with it using its copy constructor <a href="#af3220c1e1d7966c6dbaf4ec62f8cbc2f">More...</a><br/></td></tr> <tr class="separator:af3220c1e1d7966c6dbaf4ec62f8cbc2f"><td class="memSeparator" colspan="2"> </td></tr> -<tr class="memitem:af98a65e83bb96c0860d91a5013b269ef"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classmeow_1_1Self.html#af98a65e83bb96c0860d91a5013b269ef">Self</a> (<a class="el" href="classmeow_1_1Self.html">Self</a> const &b, <a class="el" href="classmeow_1_1Self.html#aa7d169e9d20d590f3e571206084797f8">DuplicateType</a> d=<a class="el" href="classmeow_1_1Self.html#aa7d169e9d20d590f3e571206084797f8adef1b0d02e1090b1b610a4ea91bd6730">COPY_FROM</a>)</td></tr> -<tr class="memdesc:af98a65e83bb96c0860d91a5013b269ef"><td class="mdescLeft"> </td><td class="mdescRight">constructor, 使用給定的Self當作init value, 並且可以指定要用 reference還是copy <a href="#af98a65e83bb96c0860d91a5013b269ef">More...</a><br/></td></tr> -<tr class="separator:af98a65e83bb96c0860d91a5013b269ef"><td class="memSeparator" colspan="2"> </td></tr> +<tr class="memitem:afee797a10c73a1c8e02c8e6315a2930b"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classmeow_1_1Self.html#afee797a10c73a1c8e02c8e6315a2930b">Self</a> (<a class="el" href="classmeow_1_1Self.html">Self</a> const &b, <a class="el" href="classmeow_1_1Self.html#aa7d169e9d20d590f3e571206084797f8">DuplicateType</a> d)</td></tr> +<tr class="memdesc:afee797a10c73a1c8e02c8e6315a2930b"><td class="mdescLeft"> </td><td class="mdescRight">constructor with given another <a class="el" href="classmeow_1_1Self.html" title="A little class use for packing the data part of another class. With this technique, it can achieve Copy-On-Write(COR) mechanism at background and have a reference mechanism which much more flexible then the one C++ has. ">Self</a> <a href="#afee797a10c73a1c8e02c8e6315a2930b">More...</a><br/></td></tr> +<tr class="separator:afee797a10c73a1c8e02c8e6315a2930b"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a000ede7e217c31401cc0a4b1c6749ee5"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classmeow_1_1Self.html#a000ede7e217c31401cc0a4b1c6749ee5">Self</a> (<a class="el" href="classmeow_1_1Self.html">Self</a> const &b)</td></tr> <tr class="memdesc:a000ede7e217c31401cc0a4b1c6749ee5"><td class="mdescLeft"> </td><td class="mdescRight">Disallow copy constructor. <a href="#a000ede7e217c31401cc0a4b1c6749ee5">More...</a><br/></td></tr> <tr class="separator:a000ede7e217c31401cc0a4b1c6749ee5"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:ada16564a03665b10810a6342d61044bc"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classmeow_1_1Self.html#ada16564a03665b10810a6342d61044bc">~Self</a> ()</td></tr> -<tr class="memdesc:ada16564a03665b10810a6342d61044bc"><td class="mdescLeft"> </td><td class="mdescRight">解構子 <a href="#ada16564a03665b10810a6342d61044bc">More...</a><br/></td></tr> +<tr class="memdesc:ada16564a03665b10810a6342d61044bc"><td class="mdescLeft"> </td><td class="mdescRight">destructor <a href="#ada16564a03665b10810a6342d61044bc">More...</a><br/></td></tr> <tr class="separator:ada16564a03665b10810a6342d61044bc"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a6063551c3e6ac647500e938ade8fbc99"><td class="memItemLeft" align="right" valign="top">Data const * </td><td class="memItemRight" valign="bottom"><a class="el" href="classmeow_1_1Self.html#a6063551c3e6ac647500e938ade8fbc99">operator-></a> () const </td></tr> -<tr class="memdesc:a6063551c3e6ac647500e938ade8fbc99"><td class="mdescLeft"> </td><td class="mdescRight">回傳指向 Data const 的指標 <a href="#a6063551c3e6ac647500e938ade8fbc99">More...</a><br/></td></tr> +<tr class="memdesc:a6063551c3e6ac647500e938ade8fbc99"><td class="mdescLeft"> </td><td class="mdescRight">Return the constant pointer to the data. <a href="#a6063551c3e6ac647500e938ade8fbc99">More...</a><br/></td></tr> <tr class="separator:a6063551c3e6ac647500e938ade8fbc99"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:ace312355261c68ac7531767939f5c4c2"><td class="memItemLeft" align="right" valign="top">Data * </td><td class="memItemRight" valign="bottom"><a class="el" href="classmeow_1_1Self.html#ace312355261c68ac7531767939f5c4c2">operator-></a> ()</td></tr> -<tr class="memdesc:ace312355261c68ac7531767939f5c4c2"><td class="mdescLeft"> </td><td class="mdescRight">回傳指向 Data 的指標, 如有需要, 這邊會做資料的duplicate <a href="#ace312355261c68ac7531767939f5c4c2">More...</a><br/></td></tr> +<tr class="memdesc:ace312355261c68ac7531767939f5c4c2"><td class="mdescLeft"> </td><td class="mdescRight">Return the non-constant pointer to the data (COR's clone might occure here. <a href="#ace312355261c68ac7531767939f5c4c2">More...</a><br/></td></tr> <tr class="separator:ace312355261c68ac7531767939f5c4c2"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a5962339e9ee49312ab770f1119256ca6"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classmeow_1_1Self.html">Self</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classmeow_1_1Self.html#a5962339e9ee49312ab770f1119256ca6">operator()</a> () const </td></tr> -<tr class="memdesc:a5962339e9ee49312ab770f1119256ca6"><td class="mdescLeft"> </td><td class="mdescRight">回傳非const型態的自己 <a href="#a5962339e9ee49312ab770f1119256ca6">More...</a><br/></td></tr> +<tr class="memdesc:a5962339e9ee49312ab770f1119256ca6"><td class="mdescLeft"> </td><td class="mdescRight">Return the non-constant reference of <code>*this</code>. <a href="#a5962339e9ee49312ab770f1119256ca6">More...</a><br/></td></tr> <tr class="separator:a5962339e9ee49312ab770f1119256ca6"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a9cd016a38a09f479fe2ed83eb1ebdae2"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classmeow_1_1Self.html">Self</a> const & </td><td class="memItemRight" valign="bottom"><a class="el" href="classmeow_1_1Self.html#a9cd016a38a09f479fe2ed83eb1ebdae2">copyFrom</a> (<a class="el" href="classmeow_1_1Self.html">Self</a> const &s)</td></tr> -<tr class="memdesc:a9cd016a38a09f479fe2ed83eb1ebdae2"><td class="mdescLeft"> </td><td class="mdescRight">將給定的 <code><a class="el" href="classmeow_1_1Self.html" title="具有copy on write, 且擁有比C++更靈活的reference機制">Self</a></code> 的資料複製到自己這裡 <a href="#a9cd016a38a09f479fe2ed83eb1ebdae2">More...</a><br/></td></tr> +<tr class="memdesc:a9cd016a38a09f479fe2ed83eb1ebdae2"><td class="mdescLeft"> </td><td class="mdescRight">Copy the gived <code><a class="el" href="classmeow_1_1Self.html" title="A little class use for packing the data part of another class. With this technique, it can achieve Copy-On-Write(COR) mechanism at background and have a reference mechanism which much more flexible then the one C++ has. ">Self</a></code> to myself. <a href="#a9cd016a38a09f479fe2ed83eb1ebdae2">More...</a><br/></td></tr> <tr class="separator:a9cd016a38a09f479fe2ed83eb1ebdae2"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a63e1570c927c7fa3b95b71fe978e355d"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classmeow_1_1Self.html">Self</a> const & </td><td class="memItemRight" valign="bottom"><a class="el" href="classmeow_1_1Self.html#a63e1570c927c7fa3b95b71fe978e355d">referenceFrom</a> (<a class="el" href="classmeow_1_1Self.html">Self</a> const &s)</td></tr> -<tr class="memdesc:a63e1570c927c7fa3b95b71fe978e355d"><td class="mdescLeft"> </td><td class="mdescRight">將自己reference 到給定的 <code><a class="el" href="classmeow_1_1Self.html" title="具有copy on write, 且擁有比C++更靈活的reference機制">Self</a></code> <a href="#a63e1570c927c7fa3b95b71fe978e355d">More...</a><br/></td></tr> +<tr class="memdesc:a63e1570c927c7fa3b95b71fe978e355d"><td class="mdescLeft"> </td><td class="mdescRight">Reference myself from given <code><a class="el" href="classmeow_1_1Self.html" title="A little class use for packing the data part of another class. With this technique, it can achieve Copy-On-Write(COR) mechanism at background and have a reference mechanism which much more flexible then the one C++ has. ">Self</a></code> object. <a href="#a63e1570c927c7fa3b95b71fe978e355d">More...</a><br/></td></tr> <tr class="separator:a63e1570c927c7fa3b95b71fe978e355d"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:ae4256bfc598bb0db76141ffce506806e"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classmeow_1_1Self.html">Self</a> const & </td><td class="memItemRight" valign="bottom"><a class="el" href="classmeow_1_1Self.html#ae4256bfc598bb0db76141ffce506806e">duplicateFrom</a> (<a class="el" href="classmeow_1_1Self.html">Self</a> const &s, <a class="el" href="classmeow_1_1Self.html#aa7d169e9d20d590f3e571206084797f8">DuplicateType</a> t)</td></tr> -<tr class="memdesc:ae4256bfc598bb0db76141ffce506806e"><td class="mdescLeft"> </td><td class="mdescRight">依據給定DuplicateType選擇要呼叫copyFrom還是referenceFrom <a href="#ae4256bfc598bb0db76141ffce506806e">More...</a><br/></td></tr> +<tr class="memdesc:ae4256bfc598bb0db76141ffce506806e"><td class="mdescLeft"> </td><td class="mdescRight">call <code><a class="el" href="classmeow_1_1Self.html#a9cd016a38a09f479fe2ed83eb1ebdae2" title="Copy the gived Self to myself. ">copyFrom()</a></code> or <code><a class="el" href="classmeow_1_1Self.html#a63e1570c927c7fa3b95b71fe978e355d" title="Reference myself from given Self object. ">referenceFrom()</a></code> depend on your instruction <a href="#ae4256bfc598bb0db76141ffce506806e">More...</a><br/></td></tr> <tr class="separator:ae4256bfc598bb0db76141ffce506806e"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:ab3671e44693b79e2f987f59652d46ca9"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classmeow_1_1Self.html#ab3671e44693b79e2f987f59652d46ca9">same</a> (<a class="el" href="classmeow_1_1Self.html">Self</a> const &s) const </td></tr> -<tr class="memdesc:ab3671e44693b79e2f987f59652d46ca9"><td class="mdescLeft"> </td><td class="mdescRight">比對兩個 <code><a class="el" href="classmeow_1_1Self.html" title="具有copy on write, 且擁有比C++更靈活的reference機制">Self</a></code> 是否指向同一個reference <a href="#ab3671e44693b79e2f987f59652d46ca9">More...</a><br/></td></tr> +<tr class="memdesc:ab3671e44693b79e2f987f59652d46ca9"><td class="mdescLeft"> </td><td class="mdescRight">Compare tht if the gived <code><a class="el" href="classmeow_1_1Self.html" title="A little class use for packing the data part of another class. With this technique, it can achieve Copy-On-Write(COR) mechanism at background and have a reference mechanism which much more flexible then the one C++ has. ">Self</a></code> object is reference from the same object of me. <a href="#ab3671e44693b79e2f987f59652d46ca9">More...</a><br/></td></tr> <tr class="separator:ab3671e44693b79e2f987f59652d46ca9"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a91098e2218c358470e81d64f35d6491d"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classmeow_1_1Self.html#a91098e2218c358470e81d64f35d6491d">equal</a> (<a class="el" href="classmeow_1_1Self.html">Self</a> const &s) const </td></tr> -<tr class="memdesc:a91098e2218c358470e81d64f35d6491d"><td class="mdescLeft"> </td><td class="mdescRight">比對兩個 <code><a class="el" href="classmeow_1_1Self.html" title="具有copy on write, 且擁有比C++更靈活的reference機制">Self</a></code> 的內容是否一樣 <a href="#a91098e2218c358470e81d64f35d6491d">More...</a><br/></td></tr> +<tr class="memdesc:a91098e2218c358470e81d64f35d6491d"><td class="mdescLeft"> </td><td class="mdescRight">Compare that the data are the same. <a href="#a91098e2218c358470e81d64f35d6491d">More...</a><br/></td></tr> <tr class="separator:a91098e2218c358470e81d64f35d6491d"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a10f22a83c3afcf65f8f9680f2a2f945c"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classmeow_1_1Self.html#a10f22a83c3afcf65f8f9680f2a2f945c">referenceLess</a> (<a class="el" href="classmeow_1_1Self.html">Self</a> const &s) const </td></tr> -<tr class="memdesc:a10f22a83c3afcf65f8f9680f2a2f945c"><td class="mdescLeft"> </td><td class="mdescRight">以reference作為判斷依據的小於判斷 <a href="#a10f22a83c3afcf65f8f9680f2a2f945c">More...</a><br/></td></tr> +<tr class="memdesc:a10f22a83c3afcf65f8f9680f2a2f945c"><td class="mdescLeft"> </td><td class="mdescRight">Order compare by reference pointer. <a href="#a10f22a83c3afcf65f8f9680f2a2f945c">More...</a><br/></td></tr> <tr class="separator:a10f22a83c3afcf65f8f9680f2a2f945c"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:af3277e1109c59e5f81549889b344a675"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classmeow_1_1Self.html#af3277e1109c59e5f81549889b344a675">operator=</a> (<a class="el" href="classmeow_1_1Self.html">Self</a> const &a)</td></tr> -<tr class="memdesc:af3277e1109c59e5f81549889b344a675"><td class="mdescLeft"> </td><td class="mdescRight">將 <code>operator=</code> 給disable掉 <a href="#af3277e1109c59e5f81549889b344a675">More...</a><br/></td></tr> +<tr class="memdesc:af3277e1109c59e5f81549889b344a675"><td class="mdescLeft"> </td><td class="mdescRight">Disallow default <code>'operator='</code>. <a href="#af3277e1109c59e5f81549889b344a675">More...</a><br/></td></tr> <tr class="separator:af3277e1109c59e5f81549889b344a675"><td class="memSeparator" colspan="2"> </td></tr> </table> <a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2> <div class="textblock"><h3>template<class Data><br/> class meow::Self< Data ></h3> -<p>具有copy on write, 且擁有比C++更靈活的reference機制 </p> -<p>使用上就是把所有成員變數包到一個class/structure裡, 送給Self <br/> - 例如以下 </p> +<p>A little class use for packing the data part of another class. With this technique, it can achieve Copy-On-Write(COR) mechanism at background and have a reference mechanism which much more flexible then the one C++ has. </p> +<p>Sample code: </p> <div class="fragment"><div class="line"><span class="keyword">class </span>A {</div> <div class="line"><span class="keyword">private</span>:</div> <div class="line"> <span class="keyword">struct </span>Myself {</div> <div class="line"> <span class="keywordtype">int</span> data;</div> -<div class="line"> Myself() { <span class="comment">// 必要</span></div> +<div class="line"></div> +<div class="line"> Myself() { <span class="comment">// Necessary</span></div> <div class="line"> data = 0;</div> <div class="line"> }</div> -<div class="line"> Myself(Myself <span class="keyword">const</span>& b): data(b.data) { <span class="comment">// 必要, copy constructor</span></div> +<div class="line"></div> +<div class="line"> Myself(Myself <span class="keyword">const</span>& b): data(b.data) { <span class="comment">// Necessary, copy constructor</span></div> <div class="line"> }</div> +<div class="line"></div> <div class="line"> ~Myself() {</div> <div class="line"> }</div> -<div class="line"> <span class="keywordtype">bool</span> operator==(Myself <span class="keyword">const</span>& b)<span class="keyword"> const </span>{ <span class="comment">// 不一定需要(有用到equal()才要)</span></div> +<div class="line"></div> +<div class="line"> <span class="keywordtype">bool</span> operator==(Myself <span class="keyword">const</span>& b)<span class="keyword"> const </span>{ <span class="comment">// Optional (this method will</span></div> +<div class="line"> <span class="comment">// be called only if you use</span></div> +<div class="line"> <span class="comment">// Self::equal() method)</span></div> <div class="line"> <span class="keywordflow">return</span> (data == b.data);</div> <div class="line"> }</div> <div class="line"> };</div> <div class="line"></div> -<div class="line"> Self<Myself> <span class="keyword">const</span> <span class="keyword">self</span>;</div> +<div class="line"> Self<Myself> <span class="keyword">const</span> <span class="keyword">self</span>; <span class="comment">// Here we use 'constant' data type in </span></div> +<div class="line"> <span class="comment">// order to have a coutious coding style</span></div> +<div class="line"> <span class="comment">// and allow the COR mechanism to clone</span></div> +<div class="line"> <span class="comment">// data only when we really want to</span></div> +<div class="line"> <span class="comment">// modify them.</span></div> <div class="line"><span class="keyword">public</span>:</div> -<div class="line"> A(): self() { } <span class="comment">// 預設呼叫Myself()</span></div> -<div class="line"> A(A <span class="keyword">const</span>& a): self(a.self, <a class="code" href="classmeow_1_1Self.html#aa7d169e9d20d590f3e571206084797f8adef1b0d02e1090b1b610a4ea91bd6730" title="跟一般的複製一樣">COPY_FROM</a>) { } <span class="comment">// 用Myself(b)做到copyFrom</span></div> +<div class="line"> A(): self() { } <span class="comment">// Default constructor</span></div> +<div class="line"></div> +<div class="line"> A(A <span class="keyword">const</span>& a): self(a.self, <a class="code" href="classmeow_1_1Self.html#aa7d169e9d20d590f3e571206084797f8adef1b0d02e1090b1b610a4ea91bd6730">COPY_FROM</a>) { } <span class="comment">// Copy constructor. You must</span></div> +<div class="line"> <span class="comment">// tell me which way of</span></div> +<div class="line"> <span class="comment">// duplicating should I use.</span></div> +<div class="line"> <span class="comment">// It strongly recommended you</span></div> +<div class="line"> <span class="comment">// use COYP_FROM for keeping the</span></div> +<div class="line"> <span class="comment">// C++'s original behavior.</span></div> <div class="line"> ~A() { }</div> -<div class="line"> <span class="keywordtype">void</span> setMemeber(<span class="keywordtype">int</span> k) {</div> -<div class="line"> <span class="keyword">self</span>()->data = k; <span class="comment">// self()->?? 可以有write權限</span></div> -<div class="line"> }</div> +<div class="line"></div> <div class="line"> <span class="keywordtype">int</span> getMemember(<span class="keywordtype">int</span> wh)<span class="keyword"> const </span>{</div> -<div class="line"> <span class="keywordflow">return</span> <span class="keyword">self</span>->data; <span class="comment">// self->?? 只有const</span></div> +<div class="line"> <span class="keywordflow">return</span> <span class="keyword">self</span>->data; <span class="comment">// Use 'operator->()' to get the pointer of the data</span></div> +<div class="line"> <span class="comment">// The pointer is constant or not will depend on</span></div> +<div class="line"> <span class="comment">// whether the left side variable of '->' is</span></div> +<div class="line"> <span class="comment">// constant or not.</span></div> +<div class="line"> <span class="comment">// If we just want to read the data, use</span></div> +<div class="line"> <span class="comment">// 'self' instead of 'self()'</span></div> <div class="line"> }</div> -<div class="line"> A <a class="code" href="classmeow_1_1Self.html#a63e1570c927c7fa3b95b71fe978e355d" title="將自己reference 到給定的 Self ">referenceFrom</a>(A <span class="keyword">const</span>& a) {</div> -<div class="line"> <span class="keyword">self</span>.<a class="code" href="classmeow_1_1Self.html#a63e1570c927c7fa3b95b71fe978e355d" title="將自己reference 到給定的 Self ">referenceFrom</a>(a.self);</div> +<div class="line"> <span class="keywordtype">void</span> setMemeber(<span class="keywordtype">int</span> k) {</div> +<div class="line"> <span class="keyword">self</span>()->data = k; <span class="comment">// As a result of 'self()' returning a non-constant</span></div> +<div class="line"> <span class="comment">// reference of itself, here we get the permission</span></div> +<div class="line"> <span class="comment">// for modiying data.</span></div> +<div class="line"> <span class="comment">// So now we can observe that if you type</span></div> +<div class="line"> <span class="comment">// 'Self<Myself> self' instead of the one above,</span></div> +<div class="line"> <span class="comment">// 'self' and 'self()' will become the same one and</span></div> +<div class="line"> <span class="comment">// both of them allow you using '->' for getting</span></div> +<div class="line"> <span class="comment">// writing permission. At the same time, the COR</span></div> +<div class="line"> <span class="comment">// machanism will become useless because everytime</span></div> +<div class="line"> <span class="comment">// you want to access the date, Self will copy the</span></div> +<div class="line"> <span class="comment">// data to prevent you to modify it no matter that</span></div> +<div class="line"> <span class="comment">// you might just want to read it.</span></div> <div class="line"> }</div> -<div class="line"> A <a class="code" href="classmeow_1_1Self.html#a9cd016a38a09f479fe2ed83eb1ebdae2" title="將給定的 Self 的資料複製到自己這裡">copyFrom</a>(A <span class="keyword">const</span>& a) {</div> -<div class="line"> <span class="keyword">self</span>.<a class="code" href="classmeow_1_1Self.html#a9cd016a38a09f479fe2ed83eb1ebdae2" title="將給定的 Self 的資料複製到自己這裡">copyFrom</a>(a.self);</div> +<div class="line"></div> +<div class="line"> A <a class="code" href="classmeow_1_1Self.html#a63e1570c927c7fa3b95b71fe978e355d">referenceFrom</a>(A <span class="keyword">const</span>& a) {</div> +<div class="line"> <span class="keyword">self</span>.<a class="code" href="classmeow_1_1Self.html#a63e1570c927c7fa3b95b71fe978e355d">referenceFrom</a>(a.self);</div> <div class="line"> }</div> -<div class="line"> A& <a class="code" href="classmeow_1_1Self.html#af3277e1109c59e5f81549889b344a675" title="將 operator= 給disable掉">operator=</a>(A <span class="keyword">const</span>& b) { <span class="comment">// for std::swap</span></div> -<div class="line"> <a class="code" href="classmeow_1_1Self.html#a9cd016a38a09f479fe2ed83eb1ebdae2" title="將給定的 Self 的資料複製到自己這裡">copyFrom</a>(b);</div> +<div class="line"></div> +<div class="line"> A <a class="code" href="classmeow_1_1Self.html#a9cd016a38a09f479fe2ed83eb1ebdae2">copyFrom</a>(A <span class="keyword">const</span>& a) {</div> +<div class="line"> <span class="keyword">self</span>.<a class="code" href="classmeow_1_1Self.html#a9cd016a38a09f479fe2ed83eb1ebdae2">copyFrom</a>(a.self);</div> +<div class="line"> }</div> +<div class="line"></div> +<div class="line"> A& <a class="code" href="classmeow_1_1Self.html#af3277e1109c59e5f81549889b344a675">operator=</a>(A <span class="keyword">const</span>& b) { <span class="comment">// If you really like to use operator=, it</span></div> +<div class="line"> <span class="comment">// strongly recommended you use 'copyFrom()' for</span></div> +<div class="line"> <span class="comment">// keeping C++'s original behavior.</span></div> +<div class="line"> <a class="code" href="classmeow_1_1Self.html#a9cd016a38a09f479fe2ed83eb1ebdae2">copyFrom</a>(b);</div> <div class="line"> }</div> <div class="line">};</div> -</div><!-- fragment --><dl class="section author"><dt>Author</dt><dd>cathook</dd></dl> -<dl class="section warning"><dt>Warning</dt><dd><code><a class="el" href="classmeow_1_1Self.html" title="具有copy on write, 且擁有比C++更靈活的reference機制">Self</a></code> 這個class會把<code>operator=</code> 給disable掉, 所以使用它當 kernel的class預設的 <code>operator=</code> 都會無法使用 </dd></dl> +</div><!-- fragment --><p> Note that '<a class="el" href="classmeow_1_1Self.html#a63e1570c927c7fa3b95b71fe978e355d" title="Reference myself from given Self object. ">referenceFrom()</a>' will cause the two object become the same one, Which means that if you do something like '<code>a.referenceFrom(b)</code>; <code>a.copyFrom(c)</code>; ', the result is that the value of <code>a</code>,b,c will all the same one.</p> +<dl class="section author"><dt>Author</dt><dd>cathook</dd></dl> +<dl class="section warning"><dt>Warning</dt><dd>This class disabled the method <code>operator=</code> and copy constructor in order to prevent upexplicit default behavior, so if you want to have one of them (or both), you must implement yourself </dd></dl> + +<p>Definition at line <a class="el" href="Self_8h_source.html#l00104">104</a> of file <a class="el" href="Self_8h_source.html">Self.h</a>.</p> </div><h2 class="groupheader">Member Enumeration Documentation</h2> <a class="anchor" id="aa7d169e9d20d590f3e571206084797f8"></a> <div class="memitem"> @@ -184,16 +224,18 @@ template<class Data> </div> </table> </div><div class="memdoc"> -<p>複製資料的方法 </p> +<p>Kind of ways of duplicating. </p> <table class="fieldtable"> -<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><em><a class="anchor" id="aa7d169e9d20d590f3e571206084797f8adef1b0d02e1090b1b610a4ea91bd6730"></a>COPY_FROM</em> </td><td class="fielddoc"> -<p>跟一般的複製一樣 </p> +<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><em><a class="anchor" id="aa7d169e9d20d590f3e571206084797f8adef1b0d02e1090b1b610a4ea91bd6730"></a>COPY_FROM</em> </td><td class="fielddoc"> +<p>Normal copy operation. </p> </td></tr> -<tr><td class="fieldname"><em><a class="anchor" id="aa7d169e9d20d590f3e571206084797f8a40c8a3eba568e04a5ce09ee0fa881822"></a>REFERENCE_FROM</em> </td><td class="fielddoc"> -<p>參照, 執行完兩個Self會完全等效 </p> +<tr><td class="fieldname"><em><a class="anchor" id="aa7d169e9d20d590f3e571206084797f8a40c8a3eba568e04a5ce09ee0fa881822"></a>REFERENCE_FROM</em> </td><td class="fielddoc"> +<p>By reference, much like pointer's copy operation. </p> </td></tr> </table> +<p>Definition at line <a class="el" href="Self_8h_source.html#l00109">109</a> of file <a class="el" href="Self_8h_source.html">Self.h</a>.</p> + </div> </div> <h2 class="groupheader">Constructor & Destructor Documentation</h2> @@ -220,7 +262,9 @@ template<class Data> </div> </table> </div><div class="memdoc"> -<p>constructor, 並宣告一個實體 </p> +<p>constructor with a real entity </p> + +<p>Definition at line <a class="el" href="Self_8h_source.html#l00173">173</a> of file <a class="el" href="Self_8h_source.html">Self.h</a>.</p> </div> </div> @@ -248,7 +292,7 @@ template<class Data> </div> </table> </div><div class="memdoc"> -<p>connstructor, 宣告一個實體, 其中該實體的constructor用copy constructor </p> +<p>connstructor with a real entity with it using its copy constructor </p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramdir">[in]</td><td class="paramname">d</td><td>Inital data </td></tr> @@ -256,9 +300,11 @@ template<class Data> </div> </dd> </dl> +<p>Definition at line <a class="el" href="Self_8h_source.html#l00181">181</a> of file <a class="el" href="Self_8h_source.html">Self.h</a>.</p> + </div> </div> -<a class="anchor" id="af98a65e83bb96c0860d91a5013b269ef"></a> +<a class="anchor" id="afee797a10c73a1c8e02c8e6315a2930b"></a> <div class="memitem"> <div class="memproto"> <div class="memtemplate"> @@ -277,7 +323,7 @@ template<class Data> </div> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="el" href="classmeow_1_1Self.html#aa7d169e9d20d590f3e571206084797f8">DuplicateType</a> </td> - <td class="paramname"><em>d</em> = <code><a class="el" href="classmeow_1_1Self.html#aa7d169e9d20d590f3e571206084797f8adef1b0d02e1090b1b610a4ea91bd6730">COPY_FROM</a></code> </td> + <td class="paramname"><em>d</em> </td> </tr> <tr> <td></td> @@ -292,15 +338,17 @@ template<class Data> </div> </table> </div><div class="memdoc"> -<p>constructor, 使用給定的Self當作init value, 並且可以指定要用 reference還是copy </p> +<p>constructor with given another <a class="el" href="classmeow_1_1Self.html" title="A little class use for packing the data part of another class. With this technique, it can achieve Copy-On-Write(COR) mechanism at background and have a reference mechanism which much more flexible then the one C++ has. ">Self</a> </p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> - <tr><td class="paramdir">[in]</td><td class="paramname">b</td><td>給定的Self </td></tr> - <tr><td class="paramdir">[in]</td><td class="paramname">d</td><td>指定要用copy還是reference </td></tr> + <tr><td class="paramdir">[in]</td><td class="paramname">b</td><td>Another <a class="el" href="classmeow_1_1Self.html" title="A little class use for packing the data part of another class. With this technique, it can achieve Copy-On-Write(COR) mechanism at background and have a reference mechanism which much more flexible then the one C++ has. ">Self</a> object. </td></tr> + <tr><td class="paramdir">[in]</td><td class="paramname">d</td><td>To indicate type of way of duplicating </td></tr> </table> </dd> </dl> +<p>Definition at line <a class="el" href="Self_8h_source.html#l00190">190</a> of file <a class="el" href="Self_8h_source.html">Self.h</a>.</p> + </div> </div> <a class="anchor" id="a000ede7e217c31401cc0a4b1c6749ee5"></a> @@ -346,7 +394,9 @@ template<class Data> </div> </table> </div><div class="memdoc"> -<p>解構子 </p> +<p>destructor </p> + +<p>Definition at line <a class="el" href="Self_8h_source.html#l00206">206</a> of file <a class="el" href="Self_8h_source.html">Self.h</a>.</p> </div> </div> @@ -375,15 +425,16 @@ template<class Data> </div> </table> </div><div class="memdoc"> -<p>將給定的 <code><a class="el" href="classmeow_1_1Self.html" title="具有copy on write, 且擁有比C++更靈活的reference機制">Self</a></code> 的資料複製到自己這裡 </p> +<p>Copy the gived <code><a class="el" href="classmeow_1_1Self.html" title="A little class use for packing the data part of another class. With this technique, it can achieve Copy-On-Write(COR) mechanism at background and have a reference mechanism which much more flexible then the one C++ has. ">Self</a></code> to myself. </p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> - <tr><td class="paramdir">[in]</td><td class="paramname">s</td><td>給定的<code><a class="el" href="classmeow_1_1Self.html" title="具有copy on write, 且擁有比C++更靈活的reference機制">Self</a></code> </td></tr> + <tr><td class="paramdir">[in]</td><td class="paramname">s</td><td>gived <code><a class="el" href="classmeow_1_1Self.html" title="A little class use for packing the data part of another class. With this technique, it can achieve Copy-On-Write(COR) mechanism at background and have a reference mechanism which much more flexible then the one C++ has. ">Self</a></code> </td></tr> </table> </dd> </dl> -<dl class="section return"><dt>Returns</dt><dd>*this</dd></dl> -<dl class="section note"><dt>Note</dt><dd>與reference的差別是, copy之後若該給定的 <code><a class="el" href="classmeow_1_1Self.html" title="具有copy on write, 且擁有比C++更靈活的reference機制">Self</a></code> 有資料修改, this 這邊 <b>不會</b> 被改到 </dd></dl> +<dl class="section return"><dt>Returns</dt><dd>*this </dd></dl> + +<p>Definition at line <a class="el" href="Self_8h_source.html#l00233">233</a> of file <a class="el" href="Self_8h_source.html">Self.h</a>.</p> </div> </div> @@ -421,16 +472,18 @@ template<class Data> </div> </table> </div><div class="memdoc"> -<p>依據給定DuplicateType選擇要呼叫copyFrom還是referenceFrom </p> +<p>call <code><a class="el" href="classmeow_1_1Self.html#a9cd016a38a09f479fe2ed83eb1ebdae2" title="Copy the gived Self to myself. ">copyFrom()</a></code> or <code><a class="el" href="classmeow_1_1Self.html#a63e1570c927c7fa3b95b71fe978e355d" title="Reference myself from given Self object. ">referenceFrom()</a></code> depend on your instruction </p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> - <tr><td class="paramdir">[in]</td><td class="paramname">s</td><td>給定的 <code><a class="el" href="classmeow_1_1Self.html" title="具有copy on write, 且擁有比C++更靈活的reference機制">Self</a></code> </td></tr> - <tr><td class="paramdir">[in]</td><td class="paramname">t</td><td>給定的 <code>DuplicateType</code> </td></tr> + <tr><td class="paramdir">[in]</td><td class="paramname">s</td><td>gived <code><a class="el" href="classmeow_1_1Self.html" title="A little class use for packing the data part of another class. With this technique, it can achieve Copy-On-Write(COR) mechanism at background and have a reference mechanism which much more flexible then the one C++ has. ">Self</a></code> object </td></tr> + <tr><td class="paramdir">[in]</td><td class="paramname">t</td><td>instruction </td></tr> </table> </dd> </dl> <dl class="section return"><dt>Returns</dt><dd>*this </dd></dl> +<p>Definition at line <a class="el" href="Self_8h_source.html#l00262">262</a> of file <a class="el" href="Self_8h_source.html">Self.h</a>.</p> + </div> </div> <a class="anchor" id="a91098e2218c358470e81d64f35d6491d"></a> @@ -457,15 +510,17 @@ template<class Data> </div> </table> </div><div class="memdoc"> -<p>比對兩個 <code><a class="el" href="classmeow_1_1Self.html" title="具有copy on write, 且擁有比C++更靈活的reference機制">Self</a></code> 的內容是否一樣 </p> +<p>Compare that the data are the same. </p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> - <tr><td class="paramdir">[in]</td><td class="paramname">s</td><td>另一個 <code><a class="el" href="classmeow_1_1Self.html" title="具有copy on write, 且擁有比C++更靈活的reference機制">Self</a></code> </td></tr> + <tr><td class="paramdir">[in]</td><td class="paramname">s</td><td>another <code><a class="el" href="classmeow_1_1Self.html" title="A little class use for packing the data part of another class. With this technique, it can achieve Copy-On-Write(COR) mechanism at background and have a reference mechanism which much more flexible then the one C++ has. ">Self</a></code> object </td></tr> </table> </dd> </dl> -<dl class="section return"><dt>Returns</dt><dd><code>true/false</code> 表示兩個內容是否一樣</dd></dl> -<dl class="section note"><dt>Note</dt><dd>需要用到 Data的equal() </dd></dl> +<dl class="section return"><dt>Returns</dt><dd><code>true</code> if the data are same.</dd></dl> +<dl class="section note"><dt>Note</dt><dd>This will need the method 'Data::equal()' </dd></dl> + +<p>Definition at line <a class="el" href="Self_8h_source.html#l00289">289</a> of file <a class="el" href="Self_8h_source.html">Self.h</a>.</p> </div> </div> @@ -492,7 +547,9 @@ template<class Data> </div> </table> </div><div class="memdoc"> -<p>回傳非const型態的自己 </p> +<p>Return the non-constant reference of <code>*this</code>. </p> + +<p>Definition at line <a class="el" href="Self_8h_source.html#l00223">223</a> of file <a class="el" href="Self_8h_source.html">Self.h</a>.</p> </div> </div> @@ -519,7 +576,9 @@ template<class Data> </div> </table> </div><div class="memdoc"> -<p>回傳指向 Data const 的指標 </p> +<p>Return the constant pointer to the data. </p> + +<p>Definition at line <a class="el" href="Self_8h_source.html#l00211">211</a> of file <a class="el" href="Self_8h_source.html">Self.h</a>.</p> </div> </div> @@ -546,7 +605,9 @@ template<class Data> </div> </table> </div><div class="memdoc"> -<p>回傳指向 Data 的指標, 如有需要, 這邊會做資料的duplicate </p> +<p>Return the non-constant pointer to the data (COR's clone might occure here. </p> + +<p>Definition at line <a class="el" href="Self_8h_source.html#l00218">218</a> of file <a class="el" href="Self_8h_source.html">Self.h</a>.</p> </div> </div> @@ -566,7 +627,7 @@ template<class Data> </div> </table> </div><div class="memdoc"> -<p>將 <code>operator=</code> 給disable掉 </p> +<p>Disallow default <code>'operator='</code>. </p> </div> </div> @@ -594,15 +655,16 @@ template<class Data> </div> </table> </div><div class="memdoc"> -<p>將自己reference 到給定的 <code><a class="el" href="classmeow_1_1Self.html" title="具有copy on write, 且擁有比C++更靈活的reference機制">Self</a></code> </p> +<p>Reference myself from given <code><a class="el" href="classmeow_1_1Self.html" title="A little class use for packing the data part of another class. With this technique, it can achieve Copy-On-Write(COR) mechanism at background and have a reference mechanism which much more flexible then the one C++ has. ">Self</a></code> object. </p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> - <tr><td class="paramdir">[in]</td><td class="paramname">s</td><td>給定的<code><a class="el" href="classmeow_1_1Self.html" title="具有copy on write, 且擁有比C++更靈活的reference機制">Self</a></code> </td></tr> + <tr><td class="paramdir">[in]</td><td class="paramname">s</td><td>given <code><a class="el" href="classmeow_1_1Self.html" title="A little class use for packing the data part of another class. With this technique, it can achieve Copy-On-Write(COR) mechanism at background and have a reference mechanism which much more flexible then the one C++ has. ">Self</a></code> </td></tr> </table> </dd> </dl> -<dl class="section return"><dt>Returns</dt><dd>*this</dd></dl> -<dl class="section note"><dt>Note</dt><dd>把reference想像成指標會比較容易思考, 譬如 <code>a.referenceFrom(b)</code> <code>b.referenceFrom(c)</code> 相當於 <b>a指向b原本指的記憶體位置</b>, <b>b指向c原本指的記憶體位置</b> , 之後更動c時, 只有b會被牽連 </dd></dl> +<dl class="section return"><dt>Returns</dt><dd>*this </dd></dl> + +<p>Definition at line <a class="el" href="Self_8h_source.html#l00246">246</a> of file <a class="el" href="Self_8h_source.html">Self.h</a>.</p> </div> </div> @@ -630,14 +692,15 @@ template<class Data> </div> </table> </div><div class="memdoc"> -<p>以reference作為判斷依據的小於判斷 </p> +<p>Order compare by reference pointer. </p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> - <tr><td class="paramdir">[in]</td><td class="paramname">s</td><td>另一個 <code><a class="el" href="classmeow_1_1Self.html" title="具有copy on write, 且擁有比C++更靈活的reference機制">Self</a></code> </td></tr> + <tr><td class="paramdir">[in]</td><td class="paramname">s</td><td>another <code><a class="el" href="classmeow_1_1Self.html" title="A little class use for packing the data part of another class. With this technique, it can achieve Copy-On-Write(COR) mechanism at background and have a reference mechanism which much more flexible then the one C++ has. ">Self</a></code> object </td></tr> </table> </dd> </dl> -<dl class="section return"><dt>Returns</dt><dd><code>true/false</code> 表示自己是否小於另一個 <code><a class="el" href="classmeow_1_1Self.html" title="具有copy on write, 且擁有比C++更靈活的reference機制">Self</a></code> </dd></dl> + +<p>Definition at line <a class="el" href="Self_8h_source.html#l00299">299</a> of file <a class="el" href="Self_8h_source.html">Self.h</a>.</p> </div> </div> @@ -665,14 +728,16 @@ template<class Data> </div> </table> </div><div class="memdoc"> -<p>比對兩個 <code><a class="el" href="classmeow_1_1Self.html" title="具有copy on write, 且擁有比C++更靈活的reference機制">Self</a></code> 是否指向同一個reference </p> +<p>Compare tht if the gived <code><a class="el" href="classmeow_1_1Self.html" title="A little class use for packing the data part of another class. With this technique, it can achieve Copy-On-Write(COR) mechanism at background and have a reference mechanism which much more flexible then the one C++ has. ">Self</a></code> object is reference from the same object of me. </p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> - <tr><td class="paramdir">[in]</td><td class="paramname">s</td><td>另一個 <code><a class="el" href="classmeow_1_1Self.html" title="具有copy on write, 且擁有比C++更靈活的reference機制">Self</a></code> </td></tr> + <tr><td class="paramdir">[in]</td><td class="paramname">s</td><td>gived <code><a class="el" href="classmeow_1_1Self.html" title="A little class use for packing the data part of another class. With this technique, it can achieve Copy-On-Write(COR) mechanism at background and have a reference mechanism which much more flexible then the one C++ has. ">Self</a></code> object </td></tr> </table> </dd> </dl> -<dl class="section return"><dt>Returns</dt><dd><code>true/false</code> 表示是否為同一個reference </dd></dl> +<dl class="section return"><dt>Returns</dt><dd><code>true</code> if we are referenced to the same object. </dd></dl> + +<p>Definition at line <a class="el" href="Self_8h_source.html#l00277">277</a> of file <a class="el" href="Self_8h_source.html">Self.h</a>.</p> </div> </div> @@ -686,9 +751,9 @@ template<class Data> </div> <div id="nav-path" class="navpath"><!-- id is needed for treeview function! --> <ul> <li class="navelem"><a class="el" href="namespacemeow.html">meow</a></li><li class="navelem"><a class="el" href="classmeow_1_1Self.html">Self</a></li> - <li class="footer">Generated on Fri Jun 6 2014 17:51:50 for Templates -- Meow by + <li class="footer">Generated on Mon Jun 23 2014 17:02:08 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> |