symtab_8h-source.html

来自「一个功能强大的内存数据库源代码,c++编写,有详细的注释」· HTML 代码 · 共 59 行

HTML
59
字号
<!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>symtab.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> &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>symtab.h</h1><div class="fragment"><pre>00001 <font class="comment">//-&lt; SYMTAB.H &gt;----------------------------------------------------*--------*</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">// Symbol table interface</font>00009 <font class="comment">//-------------------------------------------------------------------*--------*</font>00010 00011 <font class="preprocessor">#ifndef __SYMTAB_H__</font>00012 <font class="preprocessor"></font><font class="preprocessor">#define __SYMTAB_H__</font>00013 <font class="preprocessor"></font>00014 <font class="preprocessor">#ifndef CLONE_INDENTIFIERS</font>00015 <font class="preprocessor"></font><font class="preprocessor">#define FASTDB_CLONE_ANY_IDENTIFIER false</font>00016 <font class="preprocessor"></font><font class="preprocessor">#else</font>00017 <font class="preprocessor"></font><font class="preprocessor">#define FASTDB_CLONE_ANY_IDENTIFIER true</font>00018 <font class="preprocessor"></font><font class="preprocessor">#endif</font>00019 <font class="preprocessor"></font>00020 <font class="keyword">class  </font>FASTDB_DLL_ENTRY dbSymbolTable { 00021     <font class="keyword">struct </font>HashTableItem { 00022         HashTableItem* next;00023         <font class="keywordtype">char</font>*          str;00024         <font class="keywordtype">unsigned</font>       hash;00025         <font class="keywordtype">int</font>            tag;00026         byte           allocated;00027         00028         ~HashTableItem() { 00029             <font class="keywordflow">if</font> (allocated) { 00030                 <font class="keyword">delete</font>[] str;00031             }00032         }00033     };00034     <font class="keyword">static</font> HashTableItem* hashTable[];00035 00036   <font class="keyword">public</font>:00037     ~dbSymbolTable();00038     <font class="keyword">static</font> dbSymbolTable instance;00039 00040     <font class="keyword">static</font> <font class="keywordtype">int</font> add(<font class="keywordtype">char</font>* &amp;str, <font class="keywordtype">int</font> tag,  <font class="keywordtype">bool</font> allocate = <font class="keyword">true</font>);00041 };00042 00043 <font class="preprocessor">#endif</font>00044 <font class="preprocessor"></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 + -
显示快捷键?