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

📄 classdbfielddescriptor.html

📁 俄罗斯牛人KK的作品,著名的ORDBMS,这里上传最新的3.39版本源代码.希望了解对象关系数据库的同好,请不要错过.
💻 HTML
📖 第 1 页 / 共 4 页
字号:
<!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>dbFieldDescriptor 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>dbFieldDescriptor Class Reference</h1><code>#include &lt;<a class="el" href="class_8h-source.html">class.h</a>&gt;</code><p><a href="classdbFieldDescriptor-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 Types</h2></td></tr><tr><td nowrap align=right valign=top>enum &nbsp;</td><td valign=bottom><a class="el" href="classdbFieldDescriptor.html#dbFieldDescriptors4">FieldAttributes</a> </td></tr><tr><td colspan=2><br><h2>Public Methods</h2></td></tr><tr><td nowrap align=right valign=top>size_t&nbsp;</td><td valign=bottom><a class="el" href="classdbFieldDescriptor.html#dbFieldDescriptora0">calculateRecordSize</a> (byte *base, size_t offs)</td></tr><tr><td nowrap align=right valign=top>size_t&nbsp;</td><td valign=bottom><a class="el" href="classdbFieldDescriptor.html#dbFieldDescriptora1">calculateNewRecordSize</a> (byte *base, size_t offs)</td></tr><tr><td nowrap align=right valign=top>size_t&nbsp;</td><td valign=bottom><a class="el" href="classdbFieldDescriptor.html#dbFieldDescriptora2">convertRecord</a> (byte *dst, byte *src, size_t offs)</td></tr><tr><td nowrap align=right valign=top>int&nbsp;</td><td valign=bottom><a class="el" href="classdbFieldDescriptor.html#dbFieldDescriptora3">sizeWithoutOneField</a> (dbFieldDescriptor *field, byte *base, size_t &amp;size)</td></tr><tr><td nowrap align=right valign=top>size_t&nbsp;</td><td valign=bottom><a class="el" href="classdbFieldDescriptor.html#dbFieldDescriptora4">copyRecordExceptOneField</a> (dbFieldDescriptor *field, byte *dst, byte *src, size_t offs)</td></tr><tr><td nowrap align=right valign=top>size_t&nbsp;</td><td valign=bottom><a class="el" href="classdbFieldDescriptor.html#dbFieldDescriptora5">storeRecordFields</a> (byte *dst, byte *src, size_t offs, bool insert)</td></tr><tr><td nowrap align=right valign=top>void&nbsp;</td><td valign=bottom><a class="el" href="classdbFieldDescriptor.html#dbFieldDescriptora6">markUpdatedFields</a> (byte *dst, byte *src)</td></tr><tr><td nowrap align=right valign=top>void&nbsp;</td><td valign=bottom><a class="el" href="classdbFieldDescriptor.html#dbFieldDescriptora7">fetchRecordFields</a> (byte *dst, byte *src)</td></tr><tr><td nowrap align=right valign=top>void&nbsp;</td><td valign=bottom><a class="el" href="classdbFieldDescriptor.html#dbFieldDescriptora8">adjustReferences</a> (byte *record, size_t base, size_t size, long shift)</td></tr><tr><td nowrap align=right valign=top>dbFieldDescriptor *&nbsp;</td><td valign=bottom><a class="el" href="classdbFieldDescriptor.html#dbFieldDescriptora9">find</a> (const char *<a class="el" href="classdbFieldDescriptor.html#dbFieldDescriptorm7">name</a>)</td></tr><tr><td nowrap align=right valign=top>dbFieldDescriptor *&nbsp;</td><td valign=bottom><a class="el" href="classdbFieldDescriptor.html#dbFieldDescriptora10">getFirstComponent</a> ()</td></tr><tr><td nowrap align=right valign=top>dbFieldDescriptor *&nbsp;</td><td valign=bottom><a class="el" href="classdbFieldDescriptor.html#dbFieldDescriptora11">getNextComponent</a> (dbFieldDescriptor *field)</td></tr><tr><td nowrap align=right valign=top>dbFieldDescriptor &amp;&nbsp;</td><td valign=bottom><a class="el" href="classdbFieldDescriptor.html#dbFieldDescriptora12">operator,</a> (dbFieldDescriptor &amp;field)</td></tr><tr><td nowrap align=right valign=top>dbFieldDescriptor &amp;&nbsp;</td><td valign=bottom><a class="el" href="classdbFieldDescriptor.html#dbFieldDescriptora15">adjustOffsets</a> (long offs)</td></tr><tr><td nowrap align=right valign=top>&nbsp;</td><td valign=bottom><a class="el" href="classdbFieldDescriptor.html#dbFieldDescriptora16">dbFieldDescriptor</a> (char const *<a class="el" href="classdbFieldDescriptor.html#dbFieldDescriptorm7">name</a>, size_t offs, size_t size, int <a class="el" href="classdbFieldDescriptor.html#dbFieldDescriptorm16">indexType</a>, char const *inverse=NULL, dbFieldDescriptor *<a class="el" href="classdbFieldDescriptor.html#dbFieldDescriptorm19">components</a>=NULL)</td></tr><tr><td nowrap align=right valign=top>&nbsp;</td><td valign=bottom><a class="el" href="classdbFieldDescriptor.html#dbFieldDescriptora17">dbFieldDescriptor</a> (char const *<a class="el" href="classdbFieldDescriptor.html#dbFieldDescriptorm7">name</a>)</td></tr><tr><td nowrap align=right valign=top>&nbsp;</td><td valign=bottom><a class="el" href="classdbFieldDescriptor.html#dbFieldDescriptora18">~dbFieldDescriptor</a> ()</td></tr><tr><td colspan=2><br><h2>Public Attributes</h2></td></tr><tr><td nowrap align=right valign=top>dbFieldDescriptor *&nbsp;</td><td valign=bottom><a class="el" href="classdbFieldDescriptor.html#dbFieldDescriptorm0">next</a></td></tr><tr><td nowrap align=right valign=top>dbFieldDescriptor *&nbsp;</td><td valign=bottom><a class="el" href="classdbFieldDescriptor.html#dbFieldDescriptorm1">prev</a></td></tr><tr><td nowrap align=right valign=top>dbFieldDescriptor *&nbsp;</td><td valign=bottom><a class="el" href="classdbFieldDescriptor.html#dbFieldDescriptorm2">nextField</a></td></tr><tr><td nowrap align=right valign=top>dbFieldDescriptor *&nbsp;</td><td valign=bottom><a class="el" href="classdbFieldDescriptor.html#dbFieldDescriptorm3">nextHashedField</a></td></tr><tr><td nowrap align=right valign=top>dbFieldDescriptor *&nbsp;</td><td valign=bottom><a class="el" href="classdbFieldDescriptor.html#dbFieldDescriptorm4">nextIndexedField</a></td></tr><tr><td nowrap align=right valign=top>dbFieldDescriptor *&nbsp;</td><td valign=bottom><a class="el" href="classdbFieldDescriptor.html#dbFieldDescriptorm5">nextInverseField</a></td></tr><tr><td nowrap align=right valign=top>int&nbsp;</td><td valign=bottom><a class="el" href="classdbFieldDescriptor.html#dbFieldDescriptorm6">fieldNo</a></td></tr><tr><td nowrap align=right valign=top>char *&nbsp;</td><td valign=bottom><a class="el" href="classdbFieldDescriptor.html#dbFieldDescriptorm7">name</a></td></tr><tr><td nowrap align=right valign=top>char *&nbsp;</td><td valign=bottom><a class="el" href="classdbFieldDescriptor.html#dbFieldDescriptorm8">longName</a></td></tr><tr><td nowrap align=right valign=top>char *&nbsp;</td><td valign=bottom><a class="el" href="classdbFieldDescriptor.html#dbFieldDescriptorm9">refTableName</a></td></tr><tr><td nowrap align=right valign=top><a class="el" href="classdbTableDescriptor.html">dbTableDescriptor</a> *&nbsp;</td><td valign=bottom><a class="el" href="classdbFieldDescriptor.html#dbFieldDescriptorm10">refTable</a></td></tr><tr><td nowrap align=right valign=top><a class="el" href="classdbTableDescriptor.html">dbTableDescriptor</a> *&nbsp;</td><td valign=bottom><a class="el" href="classdbFieldDescriptor.html#dbFieldDescriptorm11">defTable</a></td></tr><tr><td nowrap align=right valign=top>dbFieldDescriptor *&nbsp;</td><td valign=bottom><a class="el" href="classdbFieldDescriptor.html#dbFieldDescriptorm12">inverseRef</a></td></tr><tr><td nowrap align=right valign=top>char *&nbsp;</td><td valign=bottom><a class="el" href="classdbFieldDescriptor.html#dbFieldDescriptorm13">inverseRefName</a></td></tr><tr><td nowrap align=right valign=top>int&nbsp;</td><td valign=bottom><a class="el" href="classdbFieldDescriptor.html#dbFieldDescriptorm14">type</a></td></tr><tr><td nowrap align=right valign=top>int&nbsp;</td><td valign=bottom><a class="el" href="classdbFieldDescriptor.html#dbFieldDescriptorm15">appType</a></td></tr><tr><td nowrap align=right valign=top>int&nbsp;</td><td valign=bottom><a class="el" href="classdbFieldDescriptor.html#dbFieldDescriptorm16">indexType</a></td></tr><tr><td nowrap align=right valign=top>int&nbsp;</td><td valign=bottom><a class="el" href="classdbFieldDescriptor.html#dbFieldDescriptorm17">dbsOffs</a></td></tr><tr><td nowrap align=right valign=top>int&nbsp;</td><td valign=bottom><a class="el" href="classdbFieldDescriptor.html#dbFieldDescriptorm18">appOffs</a></td></tr><tr><td nowrap align=right valign=top>dbFieldDescriptor *&nbsp;</td><td valign=bottom><a class="el" href="classdbFieldDescriptor.html#dbFieldDescriptorm19">components</a></td></tr><tr><td nowrap align=right valign=top>oid_t&nbsp;</td><td valign=bottom><a class="el" href="classdbFieldDescriptor.html#dbFieldDescriptorm20">hashTable</a></td></tr><tr><td nowrap align=right valign=top>oid_t&nbsp;</td><td valign=bottom><a class="el" href="classdbFieldDescriptor.html#dbFieldDescriptorm21">tTree</a></td></tr><tr><td nowrap align=right valign=top>size_t&nbsp;</td><td valign=bottom><a class="el" href="classdbFieldDescriptor.html#dbFieldDescriptorm22">dbsSize</a></td></tr><tr><td nowrap align=right valign=top>size_t&nbsp;</td><td valign=bottom><a class="el" href="classdbFieldDescriptor.html#dbFieldDescriptorm23">appSize</a></td></tr><tr><td nowrap align=right valign=top>size_t&nbsp;</td><td valign=bottom><a class="el" href="classdbFieldDescriptor.html#dbFieldDescriptorm24">alignment</a></td></tr><tr><td nowrap align=right valign=top>dbUDTComparator&nbsp;</td><td valign=bottom><a class="el" href="classdbFieldDescriptor.html#dbFieldDescriptorm25">comparator</a></td></tr><tr><td nowrap align=right valign=top>int&nbsp;</td><td valign=bottom><a class="el" href="classdbFieldDescriptor.html#dbFieldDescriptorm27">oldDbsType</a></td></tr><tr><td nowrap align=right valign=top>int&nbsp;</td><td valign=bottom><a class="el" href="classdbFieldDescriptor.html#dbFieldDescriptorm28">oldDbsOffs</a></td></tr><tr><td nowrap align=right valign=top>int&nbsp;</td><td valign=bottom><a class="el" href="classdbFieldDescriptor.html#dbFieldDescriptorm29">oldDbsSize</a></td></tr><tr><td nowrap align=right valign=top><a class="el" href="classdbAnyMethodTrampoline.html">dbAnyMethodTrampoline</a> *&nbsp;</td><td valign=bottom><a class="el" href="classdbFieldDescriptor.html#dbFieldDescriptorm30">method</a></td></tr><tr><td nowrap align=right valign=top>void(*&nbsp;</td><td valign=bottom><a class="el" href="classdbFieldDescriptor.html#dbFieldDescriptorm31">arrayAllocator</a> )(<a class="el" href="classdbAnyArray.html">dbAnyArray</a> *array, void *data, size_t length)</td></tr></table><hr><a name="_details"></a><h2>Detailed Description</h2>Descriptor of table field <p><hr><h2>Member Enumeration Documentation</h2><a name="dbFieldDescriptors4" doxytag="dbFieldDescriptor::FieldAttributes"></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"> enum dbFieldDescriptor::FieldAttributes      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>Attributes of the field     </td>  </tr></table><hr><h2>Constructor &amp; Destructor Documentation</h2><a name="dbFieldDescriptora16" doxytag="dbFieldDescriptor::dbFieldDescriptor"></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"> dbFieldDescriptor::dbFieldDescriptor </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">char const *&nbsp;</td>          <td class="mdname" nowrap>&nbsp; <em>name</em>, </td>        </tr>        <tr>          <td></td>          <td></td>          <td class="md" nowrap>size_t&nbsp;</td>          <td class="mdname" nowrap>&nbsp; <em>offs</em>, </td>        </tr>        <tr>          <td></td>          <td></td>          <td class="md" nowrap>size_t&nbsp;</td>          <td class="mdname" nowrap>&nbsp; <em>size</em>, </td>        </tr>        <tr>          <td></td>          <td></td>          <td class="md" nowrap>int&nbsp;</td>          <td class="mdname" nowrap>&nbsp; <em>indexType</em>, </td>        </tr>        <tr>          <td></td>          <td></td>          <td class="md" nowrap>char const *&nbsp;</td>          <td class="mdname" nowrap>&nbsp; <em>inverse</em> = NULL, </td>        </tr>        <tr>          <td></td>          <td></td>          <td class="md" nowrap>dbFieldDescriptor *&nbsp;</td>          <td class="mdname" nowrap>&nbsp; <em>components</em> = NULL</td>        </tr>        <tr>          <td></td>          <td class="md">)&nbsp;</td>          <td class="md" colspan="2"></td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>Field descriptor constructor <dl compact><dt><b>Parameters: </b></dt><dd><table border=0 cellspacing=2 cellpadding=0><tr><td valign=top><em>name</em>&nbsp;</td><td>name of the field </td></tr><tr><td valign=top><em>offs</em>&nbsp;</td><td>offset of the field </td></tr><tr><td valign=top><em>size</em>&nbsp;</td><td>size of the field </td></tr><tr><td valign=top><em>indexType</em>&nbsp;</td><td>type of index used for this field </td></tr><tr><td valign=top><em>inverse</em>&nbsp;</td><td>name of inverse field </td></tr><tr><td valign=top><em>components</em>&nbsp;</td><td>comopnents of structure or array </td></tr></table></dl>    </td>  </tr></table><a name="dbFieldDescriptora17" doxytag="dbFieldDescriptor::dbFieldDescriptor"></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"> dbFieldDescriptor::dbFieldDescriptor </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">char const *&nbsp;</td>          <td class="mdname1" valign="top" nowrap>&nbsp; <em>name</em>          </td>          <td class="md" valign="top">)&nbsp;</td>          <td class="md" nowrap></td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>Constructor of dummy field descriptor  <dl compact><dt><b>Parameters: </b></dt><dd><table border=0 cellspacing=2 cellpadding=0><tr><td valign=top><em>name</em>&nbsp;</td><td>name of the field </td></tr></table></dl>    </td>  </tr></table><a name="dbFieldDescriptora18" doxytag="dbFieldDescriptor::~dbFieldDescriptor"></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"> dbFieldDescriptor::~dbFieldDescriptor </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></td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>Field descriptor destructor     </td>  </tr></table><hr><h2>Member Function Documentation</h2><a name="dbFieldDescriptora15" doxytag="dbFieldDescriptor::adjustOffsets"></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"> dbFieldDescriptor&amp; dbFieldDescriptor::adjustOffsets </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">long&nbsp;</td>          <td class="mdname1" valign="top" nowrap>&nbsp; <em>offs</em>          </td>          <td class="md" valign="top">)&nbsp;</td>          <td class="md" nowrap></td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>Adjust offsets within application objects for descriptors of base classes.     </td>  </tr></table><a name="dbFieldDescriptora8" doxytag="dbFieldDescriptor::adjustReferences"></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"> void dbFieldDescriptor::adjustReferences </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">byte *&nbsp;</td>          <td class="mdname" nowrap>&nbsp; <em>record</em>, </td>        </tr>        <tr>          <td></td>          <td></td>          <td class="md" nowrap>size_t&nbsp;</td>          <td class="mdname" nowrap>&nbsp; <em>base</em>, </td>        </tr>        <tr>          <td></td>          <td></td>          <td class="md" nowrap>size_t&nbsp;</td>          <td class="mdname" nowrap>&nbsp; <em>size</em>, </td>        </tr>        <tr>          <td></td>          <td></td>          <td class="md" nowrap>long&nbsp;</td>          <td class="mdname" nowrap>&nbsp; <em>shift</em></td>        </tr>        <tr>          <td></td>          <td class="md">)&nbsp;</td>          <td class="md" colspan="2"></td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>Adjust references in all fetched records (current records in all opened cursors) when database was reallocated. <dl compact><dt><b>Parameters: </b></dt><dd><table border=0 cellspacing=2 cellpadding=0><tr><td valign=top><em>record</em>&nbsp;</td><td>pointer to the application object which references should be adjusted </td></tr><tr><td valign=top><em>base</em>&nbsp;</td><td>new address of memory mapping  </td></tr><tr><td valign=top><em>size</em>&nbsp;</td><td>database isze before extension </td></tr><tr><td valign=top><em>shift</em>&nbsp;</td><td>difference between old and new addresses of memory mapping obejct location. </td></tr></table></dl>    </td>  </tr></table><a name="dbFieldDescriptora1" doxytag="dbFieldDescriptor::calculateNewRecordSize"></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"> size_t dbFieldDescriptor::calculateNewRecordSize </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">byte *&nbsp;</td>          <td class="mdname" nowrap>&nbsp; <em>base</em>, </td>        </tr>        <tr>          <td></td>          <td></td>          <td class="md" nowrap>size_t&nbsp;</td>          <td class="mdname" nowrap>&nbsp; <em>offs</em></td>        </tr>        <tr>          <td></td>          <td class="md">)&nbsp;</td>          <td class="md" colspan="2"></td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>Calculate record size after reformatting record according to the new definition of the application class. This method performs interation thtough all components in one scope and recursively invoke itself for structure and array components.  <dl compact><dt><b>Parameters: </b></dt><dd><table border=0 cellspacing=2 cellpadding=0><tr><td valign=top><em>base</em>&nbsp;</td><td>address of the application object  </td></tr><tr><td valign=top><em>offs</em>&nbsp;</td><td>offset of the end of varying part of the record </td></tr></table></dl><dl compact><dt><b>Returns: </b></dt><dd>size of the record </dl>    </td>  </tr></table><a name="dbFieldDescriptora0" doxytag="dbFieldDescriptor::calculateRecordSize"></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"> size_t dbFieldDescriptor::calculateRecordSize </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">byte *&nbsp;</td>          <td class="mdname" nowrap>&nbsp; <em>base</em>, </td>        </tr>        <tr>          <td></td>          <td></td>          <td class="md" nowrap>size_t&nbsp;</td>          <td class="mdname" nowrap>&nbsp; <em>offs</em></td>        </tr>        <tr>          <td></td>          <td class="md">)&nbsp;</td>          <td class="md" colspan="2"></td>

⌨️ 快捷键说明

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