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

📄 classdbreference.html

📁 最新版本!fastdb是高效的内存数据库系统
💻 HTML
📖 第 1 页 / 共 2 页
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title> TemplatedbReference&lt; T &gt; class Reference</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.2.18 -->
<center>
<a class="qindex" href="index.html">Main Page</a> &nbsp; <a class="qindex" href="hierarchy.html">Class Hierarchy</a> &nbsp; <a class="qindex" href="annotated.html">Compound List</a> &nbsp; <a class="qindex" href="files.html">File List</a> &nbsp; <a class="qindex" href="functions.html">Compound Members</a> &nbsp; </center>
<hr><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 Methods</h2></td></tr>
<tr><td nowrap align=right valign=top><a class="el" href="classdbFieldDescriptor.html">dbFieldDescriptor</a> *&nbsp;</td><td valign=bottom><a class="el" href="classdbReference.html#dbReferencea0">dbDescribeComponents</a> (<a class="el" href="classdbFieldDescriptor.html">dbFieldDescriptor</a> *fd)</td></tr>
<tr><td nowrap align=right valign=top>dbReference &amp;&nbsp;</td><td valign=bottom><a class="el" href="classdbReference.html#dbReferencea1">operator=</a> (dbReference const &amp;ref)</td></tr>
<tr><td nowrap align=right valign=top>dbReference &amp;&nbsp;</td><td 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 nowrap align=right valign=top>dbReference&lt; T &gt; &amp;&nbsp;</td><td 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 nowrap align=right valign=top>bool&nbsp;</td><td valign=bottom><a class="el" href="classdbReference.html#dbReferencea4">operator==</a> (dbReference const &amp;ref) const</td></tr>
<tr><td nowrap align=right valign=top>bool&nbsp;</td><td valign=bottom><a class="el" href="classdbReference.html#dbReferencea5">operator&gt;</a> (dbReference const &amp;ref) const</td></tr>
<tr><td nowrap align=right valign=top>bool&nbsp;</td><td valign=bottom><a class="el" href="classdbReference.html#dbReferencea6">operator&lt;</a> (dbReference const &amp;ref) const</td></tr>
<tr><td nowrap align=right valign=top>bool&nbsp;</td><td valign=bottom><a class="el" href="classdbReference.html#dbReferencea7">operator!=</a> (dbReference const &amp;ref) const</td></tr>
<tr><td nowrap align=right valign=top>bool&nbsp;</td><td valign=bottom><a class="el" href="classdbReference.html#dbReferencea8">operator==</a> (<a class="el" href="classdbNullReference.html">dbNullReference</a> const &amp;) const</td></tr>
<tr><td nowrap align=right valign=top>bool&nbsp;</td><td valign=bottom><a class="el" href="classdbReference.html#dbReferencea9">operator!=</a> (<a class="el" href="classdbNullReference.html">dbNullReference</a> const &amp;) const</td></tr>
<tr><td nowrap align=right valign=top>&nbsp;</td><td valign=bottom><a class="el" href="classdbReference.html#dbReferencea10">dbReference</a> (<a class="el" href="classdbNullReference.html">dbNullReference</a> const &amp;)</td></tr>
<tr><td nowrap align=right valign=top>&nbsp;</td><td valign=bottom><a class="el" href="classdbReference.html#dbReferencea11">dbReference</a> (dbReference const &amp;ref)</td></tr>
<tr><td nowrap align=right valign=top>&nbsp;</td><td valign=bottom><a class="el" href="classdbReference.html#dbReferencea12">dbReference</a> (oid_t oid=0)</td></tr>
<tr><td nowrap align=right valign=top>oid_t&nbsp;</td><td valign=bottom><a class="el" href="classdbReference.html#dbReferencea13">getOid</a> () const</td></tr>
<tr><td nowrap align=right valign=top>bool&nbsp;</td><td valign=bottom><a class="el" href="classdbReference.html#dbReferencea14">isNull</a> () const</td></tr>
<tr><td colspan=2><br><h2>Friends</h2></td></tr>
<tr><td nowrap align=right valign=top>bool&nbsp;</td><td valign=bottom><a class="el" href="classdbReference.html#dbReferencel0">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 name="dbReferencea10" doxytag="dbReference::dbReference"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <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"> dbReference&lt; T &gt;::dbReference </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>&nbsp;          </td>
          <td class="md" valign="top">)&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 name="dbReferencea11" doxytag="dbReference::dbReference"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <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"> dbReference&lt; T &gt;::dbReference </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">dbReference&lt; T &gt; const &amp;&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>&nbsp; <em>ref</em>          </td>
          <td class="md" valign="top">)&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 name="dbReferencea12" doxytag="dbReference::dbReference"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <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"> dbReference&lt; T &gt;::dbReference </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">oid_t&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>&nbsp; <em>oid</em> = 0          </td>
          <td class="md" valign="top">)&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 name="dbReferencea0" doxytag="dbReference::dbDescribeComponents"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <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>* dbReference&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>&nbsp; <em>fd</em>          </td>
          <td class="md" valign="top">)&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 name="dbReferencea13" doxytag="dbReference::getOid"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <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>&nbsp;          </td>
          <td class="md" valign="top">)&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 </dl>    </td>
  </tr>
</table>
<a name="dbReferencea14" doxytag="dbReference::isNull"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <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>&nbsp;          </td>
          <td class="md" valign="top">)&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 name="dbReferencea9" doxytag="dbReference::operator!="></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <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 dbReference&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>&nbsp;          </td>
          <td class="md" valign="top">)&nbsp;</td>
          <td class="md" nowrap> const<code> [inline]</code></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Operator for cecking if reference is not null     </td>
  </tr>
</table>
<a name="dbReferencea7" doxytag="dbReference::operator!="></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <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 dbReference&lt; T &gt;::operator!= </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">dbReference&lt; T &gt; const &amp;&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>&nbsp; <em>ref</em>          </td>
          <td class="md" valign="top">)&nbsp;</td>
          <td class="md" nowrap> const<code> [inline]</code></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>

⌨️ 快捷键说明

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