hashtab_8h-source.html
来自「一个功能强大的内存数据库源代码,c++编写,有详细的注释」· HTML 代码 · 共 64 行
HTML
64 行
<!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>hashtab.h Source File</title><link href="doxygen.css" rel="stylesheet" type="text/css"></head><body><!-- Generated by Doxygen 1.2.15 --><center><a class="qindex" href="index.html">Main Page</a> <a class="qindex" href="hierarchy.html">Class Hierarchy</a> <a class="qindex" href="annotated.html">Compound List</a> <a class="qindex" href="files.html">File List</a> <a class="qindex" href="functions.html">Compound Members</a> </center><hr><h1>hashtab.h</h1><div class="fragment"><pre>00001 <font class="comment">//-< HASHTAB.CPP >---------------------------------------------------*--------*</font>00002 <font class="comment">// FastDB Version 1.0 (c) 1999 GARRET * ? *</font>00003 <font class="comment">// (Main Memory Database Management System) * /\| *</font>00004 <font class="comment">// * / \ *</font>00005 <font class="comment">// Created: 20-Nov-98 K.A. Knizhnik * / [] \ *</font>00006 <font class="comment">// Last update: 10-Dec-98 K.A. Knizhnik * GARRET *</font>00007 <font class="comment">//-------------------------------------------------------------------*--------*</font>00008 <font class="comment">// Extensible hash table interface</font>00009 <font class="comment">//-------------------------------------------------------------------*--------*</font>00010 00011 <font class="preprocessor">#ifndef __HASHTAB_H__</font>00012 <font class="preprocessor"></font><font class="preprocessor">#define __HASHTAB_H__</font>00013 <font class="preprocessor"></font>00014 <font class="keyword">class </font>FASTDB_DLL_ENTRY dbHashTableItem { 00015 <font class="keyword">public</font>:00016 oid_t next;00017 oid_t record;00018 nat4 hash;00019 };00020 00021 <font class="keyword">const</font> size_t dbInitHashTableSize = 16*1024-1;00022 00023 00024 <font class="keyword">class </font>FASTDB_DLL_ENTRY dbHashTable { 00025 nat4 size;00026 nat4 used;00027 oid_t page;00028 00029 <font class="keyword">static</font> <font class="keywordtype">unsigned</font> strHashCode(byte* key, <font class="keywordtype">int</font> keylen);00030 <font class="keyword">static</font> <font class="keywordtype">unsigned</font> hashCode(byte* key, <font class="keywordtype">int</font> keylen);00031 <font class="keyword">static</font> <font class="keywordtype">int</font> <font class="keyword">const</font> keySize[];00032 00033 <font class="keyword">public</font>:00034 <font class="keyword">static</font> oid_t allocate(<a class="code" href="classdbDatabase.html">dbDatabase</a>* db, size_t nRows = 0);00035 00036 <font class="keyword">static</font> <font class="keywordtype">void</font> insert(<a class="code" href="classdbDatabase.html">dbDatabase</a>* db, oid_t hashId, 00037 oid_t rowId, <font class="keywordtype">int</font> type, <font class="keywordtype">int</font> sizeofType, <font class="keywordtype">int</font> offs, size_t nRows);00038 00039 <font class="keyword">static</font> <font class="keywordtype">void</font> remove(<a class="code" href="classdbDatabase.html">dbDatabase</a>* db, oid_t hashId, 00040 oid_t rowId, <font class="keywordtype">int</font> type, <font class="keywordtype">int</font> sizeofType, <font class="keywordtype">int</font> offs);00041 00042 <font class="keyword">static</font> <font class="keywordtype">void</font> find(<a class="code" href="classdbDatabase.html">dbDatabase</a>* db, oid_t hashId, <a class="code" href="classdbSearchContext.html">dbSearchContext</a>& sc);00043 00044 <font class="keyword">static</font> <font class="keywordtype">void</font> drop(<a class="code" href="classdbDatabase.html">dbDatabase</a>* db, oid_t hashId);00045 00046 <font class="keyword">static</font> <font class="keywordtype">void</font> purge(<a class="code" href="classdbDatabase.html">dbDatabase</a>* db, oid_t hashId);00047 };00048 00049 <font class="preprocessor">#endif</font></pre></div><hr><address align="right"><small>Generated on Fri Nov 15 21:06:29 2002 for FastDB by<a href="http://www.doxygen.org/index.html"><img src="doxygen.png" alt="doxygen" align="middle" border=0 width=110 height=53></a>1.2.15 </small></address></body></html>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?