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

📄 classdbreference.html

📁 FastDb是高效的内存数据库系统
💻 HTML
📖 第 1 页 / 共 2 页
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"><title>FastDB:  TemplatedbReference&lt; T &gt; class Reference</title><link href="doxygen.css" rel="stylesheet" type="text/css"></head><body><!-- Generated by Doxygen 1.3.5 --><div class="qindex"><a class="qindex" href="index.html">Main&nbsp;Page</a> | <a class="qindex" href="hierarchy.html">Class&nbsp;Hierarchy</a> | <a class="qindex" href="annotated.html">Class&nbsp;List</a> | <a class="qindex" href="files.html">File&nbsp;List</a> | <a class="qindex" href="functions.html">Class&nbsp;Members</a></div><h1>dbReference&lt; T &gt; Class Template Reference</h1><code>#include &lt;<a class="el" href="reference_8h-source.html">reference.h</a>&gt;</code><p><p>Inheritance diagram for dbReference&lt; T &gt;:<p><center><img src="classdbReference.png" usemap="#dbReference< T >_map" border="0" alt=""></center><map name="dbReference< T >_map"><area href="classdbAnyReference.html" alt="dbAnyReference" shape="rect" coords="0,0,116,24"></map><a href="classdbReference-members.html">List of all members.</a><table border=0 cellpadding=0 cellspacing=0><tr><td></td></tr><tr><td colspan=2><br><h2>Public Member Functions</h2></td></tr><tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="classdbFieldDescriptor.html">dbFieldDescriptor</a> *&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classdbReference.html#dbReferencea0">dbDescribeComponents</a> (<a class="el" href="classdbFieldDescriptor.html">dbFieldDescriptor</a> *fd)</td></tr><tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="classdbReference.html">dbReference</a> &amp;&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classdbReference.html#dbReferencea1">operator=</a> (<a class="el" href="classdbReference.html">dbReference</a> const &amp;ref)</td></tr><tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="classdbReference.html">dbReference</a> &amp;&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classdbReference.html#dbReferencea2">operator=</a> (<a class="el" href="classdbNullReference.html">dbNullReference</a> const &amp;)</td></tr><tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="classdbReference.html">dbReference</a>&lt; T &gt; &amp;&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classdbReference.html#dbReferencea3">unsafeAssign</a> (<a class="el" href="classdbAnyReference.html">dbAnyReference</a> const &amp;ref)</td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>bool&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classdbReference.html#dbReferencea4">operator==</a> (<a class="el" href="classdbReference.html">dbReference</a> const &amp;ref) const </td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>bool&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classdbReference.html#dbReferencea5">operator!=</a> (<a class="el" href="classdbReference.html">dbReference</a> const &amp;ref) const </td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>bool&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classdbReference.html#dbReferencea6">operator==</a> (<a class="el" href="classdbNullReference.html">dbNullReference</a> const &amp;) const </td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>bool&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classdbReference.html#dbReferencea7">operator!=</a> (<a class="el" href="classdbNullReference.html">dbNullReference</a> const &amp;) const </td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classdbReference.html#dbReferencea8">dbReference</a> (<a class="el" href="classdbNullReference.html">dbNullReference</a> const &amp;)</td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classdbReference.html#dbReferencea9">dbReference</a> (<a class="el" href="classdbReference.html">dbReference</a> const &amp;ref)</td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classdbReference.html#dbReferencea10">dbReference</a> (oid_t oid=0)</td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>oid_t&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classdbAnyReference.html#dbReference_3_01Version_01_4a11">getOid</a> () const </td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>bool&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classdbAnyReference.html#dbReference_3_01Version_01_4a12">isNull</a> () const </td></tr><tr><td colspan=2><br><h2>Protected Attributes</h2></td></tr><tr><td class="memItemLeft" nowrap align=right valign=top><a class="anchor" name="dbReference_3_01Version_01_4p0" doxytag="dbReference::oid" ></a>oid_t&nbsp;</td><td class="memItemRight" valign=bottom><b>oid</b></td></tr><tr><td colspan=2><br><h2>Friends</h2></td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>bool&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classdbAnyReference.html#dbReference_3_01Version_01_4n0">isNull</a> (<a class="el" href="classdbAnyReference.html">dbAnyReference</a> const &amp;ref)</td></tr></table><hr><a name="_details"></a><h2>Detailed Description</h2><h3>template&lt;class T&gt;<br> class dbReference&lt; T &gt;</h3>Template for reference parameterized by class of referenced records. <p><hr><h2>Constructor &amp; Destructor Documentation</h2><a class="anchor" name="dbReferencea8" doxytag="dbReference::dbReference" ></a><p><table class="mdTable" width="100%" cellpadding="2" cellspacing="0">  <tr>    <td class="mdRow">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" colspan="4">template&lt;class T&gt; </td>        </tr>        <tr>          <td class="md" nowrap valign="top"> <a class="el" href="classdbReference.html">dbReference</a>&lt; T &gt;::<a class="el" href="classdbReference.html">dbReference</a> </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top"><a class="el" href="classdbNullReference.html">dbNullReference</a> const &amp;&nbsp;</td>          <td class="mdname1" valign="top" nowrap>          </td>          <td class="md" valign="top">&nbsp;)&nbsp;</td>          <td class="md" nowrap><code> [inline]</code></td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>Constructor of null reference     </td>  </tr></table><a class="anchor" name="dbReferencea9" doxytag="dbReference::dbReference" ></a><p><table class="mdTable" width="100%" cellpadding="2" cellspacing="0">  <tr>    <td class="mdRow">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" colspan="4">template&lt;class T&gt; </td>        </tr>        <tr>          <td class="md" nowrap valign="top"> <a class="el" href="classdbReference.html">dbReference</a>&lt; T &gt;::<a class="el" href="classdbReference.html">dbReference</a> </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top"><a class="el" href="classdbReference.html">dbReference</a>&lt; T &gt; const &amp;&nbsp;</td>          <td class="mdname1" valign="top" nowrap> <em>ref</em>          </td>          <td class="md" valign="top">&nbsp;)&nbsp;</td>          <td class="md" nowrap><code> [inline]</code></td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>Copy constructor from reference of the same type     </td>  </tr></table><a class="anchor" name="dbReferencea10" doxytag="dbReference::dbReference" ></a><p><table class="mdTable" width="100%" cellpadding="2" cellspacing="0">  <tr>    <td class="mdRow">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" colspan="4">template&lt;class T&gt; </td>        </tr>        <tr>          <td class="md" nowrap valign="top"> <a class="el" href="classdbReference.html">dbReference</a>&lt; T &gt;::<a class="el" href="classdbReference.html">dbReference</a> </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">oid_t&nbsp;</td>          <td class="mdname1" valign="top" nowrap> <em>oid</em> = 0          </td>          <td class="md" valign="top">&nbsp;)&nbsp;</td>          <td class="md" nowrap><code> [inline]</code></td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>Construstor of reference from OID. Use this constructor with care, because FastDB is not able to check if asigned OID belongs to the required table. If you assign OID of record friom some other table and then use this reference, results will be unpredicted (even database corruption is possible)     </td>  </tr></table><hr><h2>Member Function Documentation</h2><a class="anchor" name="dbReferencea0" doxytag="dbReference::dbDescribeComponents" ></a><p><table class="mdTable" width="100%" cellpadding="2" cellspacing="0">  <tr>    <td class="mdRow">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" colspan="4">template&lt;class T&gt; </td>        </tr>        <tr>          <td class="md" nowrap valign="top"> <a class="el" href="classdbFieldDescriptor.html">dbFieldDescriptor</a>* <a class="el" href="classdbReference.html">dbReference</a>&lt; T &gt;::dbDescribeComponents </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top"><a class="el" href="classdbFieldDescriptor.html">dbFieldDescriptor</a> *&nbsp;</td>          <td class="mdname1" valign="top" nowrap> <em>fd</em>          </td>          <td class="md" valign="top">&nbsp;)&nbsp;</td>          <td class="md" nowrap><code> [inline]</code></td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>Internal method used to describe reference <p>Reimplemented from <a class="el" href="classdbAnyReference.html">dbAnyReference</a>.    </td>  </tr></table><a class="anchor" name="dbReference_3_01Version_01_4a11" doxytag="dbReference::getOid" ></a><p><table class="mdTable" width="100%" cellpadding="2" cellspacing="0">  <tr>    <td class="mdRow">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top"> oid_t dbAnyReference::getOid </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="mdname1" valign="top" nowrap>          </td>          <td class="md" valign="top">&nbsp;)&nbsp;</td>          <td class="md" nowrap> const<code> [inline, inherited]</code></td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>Get object idetifier <dl compact><dt><b>Returns:</b></dt><dd>object identifier of referenced object </dd></dl>    </td>  </tr></table><a class="anchor" name="dbReference_3_01Version_01_4a12" doxytag="dbReference::isNull" ></a><p><table class="mdTable" width="100%" cellpadding="2" cellspacing="0">  <tr>    <td class="mdRow">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top"> bool dbAnyReference::isNull </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="mdname1" valign="top" nowrap>          </td>          <td class="md" valign="top">&nbsp;)&nbsp;</td>          <td class="md" nowrap> const<code> [inline, inherited]</code></td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>Check whether reference is null     </td>  </tr></table><a class="anchor" name="dbReferencea7" doxytag="dbReference::operator!=" ></a><p><table class="mdTable" width="100%" cellpadding="2" cellspacing="0">  <tr>    <td class="mdRow">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" colspan="4">template&lt;class T&gt; </td>        </tr>        <tr>          <td class="md" nowrap valign="top"> bool <a class="el" href="classdbReference.html">dbReference</a>&lt; T &gt;::operator!= </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top"><a class="el" href="classdbNullReference.html">dbNullReference</a> const &amp;&nbsp;</td>          <td class="mdname1" valign="top" nowrap>          </td>          <td class="md" valign="top">&nbsp;)&nbsp;</td>          <td class="md" nowrap> const<code> [inline]</code></td>        </tr>

⌨️ 快捷键说明

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