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

📄 symtab_8h-source.html

📁 FastDb是高效的内存数据库系统
💻 HTML
字号:
<!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: symtab.h Source File</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>symtab.h</h1><div class="fragment"><pre>00001 <span class="comment">//-&lt; SYMTAB.H &gt;----------------------------------------------------*--------*</span>00002 <span class="comment">// FastDB                    Version 1.0         (c) 1999  GARRET    *     ?  *</span>00003 <span class="comment">// (Main Memory Database Management System)                          *   /\|  *</span>00004 <span class="comment">//                                                                   *  /  \  *</span>00005 <span class="comment">//                          Created:     20-Nov-98    K.A. Knizhnik  * / [] \ *</span>00006 <span class="comment">//                          Last update: 10-Dec-98    K.A. Knizhnik  * GARRET *</span>00007 <span class="comment">//-------------------------------------------------------------------*--------*</span>00008 <span class="comment">// Symbol table interface</span>00009 <span class="comment">//-------------------------------------------------------------------*--------*</span>00010 00011 <span class="preprocessor">#ifndef __SYMTAB_H__</span>00012 <span class="preprocessor"></span><span class="preprocessor">#define __SYMTAB_H__</span>00013 <span class="preprocessor"></span>00014 <span class="preprocessor">#ifndef CLONE_IDENTIFIERS</span>00015 <span class="preprocessor"></span><span class="preprocessor">#define FASTDB_CLONE_ANY_IDENTIFIER false</span>00016 <span class="preprocessor"></span><span class="preprocessor">#else</span>00017 <span class="preprocessor"></span><span class="preprocessor">#define FASTDB_CLONE_ANY_IDENTIFIER true</span>00018 <span class="preprocessor"></span><span class="preprocessor">#endif</span>00019 <span class="preprocessor"></span>00020 <span class="keyword">class  </span>FASTDB_DLL_ENTRY dbSymbolTable { 00021     <span class="keyword">struct </span>HashTableItem { 00022         HashTableItem* next;00023         <span class="keywordtype">char</span>*          str;00024         <span class="keywordtype">unsigned</span>       hash;00025         <span class="keywordtype">int</span>            tag;00026         byte           allocated;00027         00028         ~HashTableItem() { 00029             <span class="keywordflow">if</span> (allocated) { 00030                 <span class="keyword">delete</span>[] str;00031             }00032         }00033     };00034     <span class="keyword">static</span> HashTableItem* hashTable[];00035 00036   <span class="keyword">public</span>:00037     ~dbSymbolTable();00038     <span class="keyword">static</span> dbSymbolTable instance;00039 00040     <span class="keyword">static</span> <span class="keywordtype">int</span> add(<span class="keywordtype">char</span>* &amp;str, <span class="keywordtype">int</span> tag,  <span class="keywordtype">bool</span> allocate = <span class="keyword">true</span>);00041 };00042 00043 <span class="preprocessor">#endif</span>00044 <span class="preprocessor"></span></pre></div><hr size="1"><address style="align: right;"><small>Generated on Thu Feb 12 13:04:48 2004 for FastDB by<a href="http://www.doxygen.org/index.html"><img src="doxygen.png" alt="doxygen" align="middle" border=0 > </a>1.3.5 </small></address></body></html>

⌨️ 快捷键说明

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