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

📄 type_gdatabase.html

📁 一个非常有用的开源代码
💻 HTML
字号:
<html><head><title>Generated Documentation</title></head><body>	<image src="headerimage.png">	<br><br><table><tr><td><big><big><big style="font-family: arial;"><b>GDataBase</b></big></big></big><br><br></td><td></td></tr></table><br><br><big><big><i>Statics (public)</i></big></big><br><div style="margin-left: 40px;">bool <big><b>Create</b></big>(const char* szFilename)<br><div style="margin-left: 80px;"><font color=brown> This will return true if it creates the database with the specified filename</font></div><br>int <big><b>IntToVal</b></big>(int nVal, char* pBuf)<br><a href="type_GDataBase.html">GDataBase</a>* <big><b>Open</b></big>(const char* szFilename)<br><div style="margin-left: 80px;"><font color=brown> This will return a pointer to a GDataBase object if it succeeds at opening the database.  You must delete it when you're done (which will close the database).  This will return NULL if it fails to open the database.</font></div><br>void <big><b>Test</b></big>()<br>int <big><b>ValToInt</b></big>(const char* pBuf)<br><div style="margin-left: 80px;"><font color=brown> Value conversion</font></div><br></div><br><big><big><i>Destructors</i></big></big><br><div style="margin-left: 40px;"><big><b>~GDataBase</b></big>()<br></div><br><big><big><i>Public</i></big></big><br><div style="margin-left: 40px;">bool <big><b>AddTable</b></big>(<a href="type_GDBRecord.html">GDBRecord</a>* pRecord)<br><div style="margin-left: 80px;"><font color=brown> Adds a new table to the database</font></div><br>bool <big><b>AddTuple</b></big>(<a href="type_GDBRecord.html">GDBRecord</a>* pRecord, <a href="type_GDBRecord.html">GDBRecord</a>* pTableRecord)<br><div style="margin-left: 80px;"><font color=brown> Adds a new tuple to the specified table</font></div><br>bool <big><b>DeleteRecord</b></big>(<a href="type_GDBRecord.html">GDBRecord</a>* pTuple, <a href="type_GDBRecord.html">GDBRecord</a>* pTable)<br><div style="margin-left: 80px;"><font color=brown> Delete a record</font></div><br>void <big><b>Flush</b></big>()<br><div style="margin-left: 80px;"><font color=brown> Make sure everything has been written to disk</font></div><br>bool <big><b>GetTable</b></big>(<a href="type_GDBRecord.html">GDBRecord</a>* pOutTable, const void* pName, int nNameSize)<br><div style="margin-left: 80px;"><font color=brown> Gets a table from the database.  *Caution*: if you add a tuple to a table, you must call GetTable again because the old one will contain old information.  Even if you just want to add another record, you still have to do it because the table contains a pointer to the root of the AVL-tree, which might change.</font></div><br>bool <big><b>GetTuple</b></big>(<a href="type_GDBRecord.html">GDBRecord</a>* pOutTuple, <a href="type_GDBRecord.html">GDBRecord</a>* pInTable, int nField, const void* pValue, int nValueSize, int nValueSizeCap)<br><div style="margin-left: 80px;"><font color=brown> Finds the first exact match of a tuple by a singe field</font></div><br>void <big><b>Query</b></big>(<a href="type_GDBQueryEnumerator.html">GDBQueryEnumerator</a>* pOutEnumerator, <a href="type_GDBRecord.html">GDBRecord</a>* pTableRecord, int nField, QueryType eQueryType, const void* pValue1, int nValue1Size, const void* pValue2, int nValue2Size, bool bLeftToRight, int nValueSizeCap)<br><div style="margin-left: 80px;"><font color=brown> Finds a set of records</font></div><br></div><br><big><big><i>Protected</i></big></big><br><div style="margin-left: 40px;">bool <big><b>AddRecord</b></big>(<a href="type_GDBRecord.html">GDBRecord</a>* pRecord, <a href="type_GDBRecord.html">GDBRecord</a>* pTableRecord)<br><div style="margin-left: 80px;"><font color=brown> Database access</font></div><br>int <big><b>Find</b></big>(const char* sVal, int nValSize, bool bRightMost, bool bClosest, int nNodePos)<br>int <big><b>FindDeletedRecordToReuse</b></big>(int nSize)<br><div style="margin-left: 80px;"><font color=brown> Paging system</font></div><br>int <big><b>FindRecord</b></big>(const char* szValue, int nValueSize, bool bRightMost, bool bClosest, int nRootValue, int* pnOutValPos)<br>int <big><b>FindTuple</b></big>(<a href="type_GDBRecord.html">GDBRecord</a>* pTableRecord, int nField, const char* pValue, int nValueSize, int* pTrailBuffer, int nTrailBufferSize, int* pnTrailUsed, bool bRightMost, bool bClosest)<br>void <big><b>FlushPage</b></big>(GDBPage* pPage)<br>int <big><b>GetLeftOrRightMost</b></big>(int nValPos, bool bRight)<br>int <big><b>GetNextRecord</b></big>(int* pnValPos, <a href="type_GDBRecord.html">GDBRecord</a>* pTableRecord, int nField, bool bRight)<br>int <big><b>GetNextValue</b></big>(int nPos, <a href="type_GDBRecord.html">GDBRecord</a>* pTableRecord, int nField, bool bRight)<br>GDBPage* <big><b>GetPage</b></big>(int* nPos)<br>bool <big><b>InsertValue</b></big>(int nHeadPos, int nValuePos)<br><div style="margin-left: 80px;"><font color=brown> Guarantees to write pVal to the database</font></div><br>bool <big><b>Read</b></big>(char* pBuf, int nPos, int nSize)<br>int <big><b>ReadIntValue</b></big>(int nPos)<br>bool <big><b>ReadRecord</b></big>(<a href="type_GDBRecord.html">GDBRecord</a>* pOutRecord, int nPos, int nValueSizeCap)<br>bool <big><b>Write</b></big>(const char* pBuf, int nPos, int nSize)<br>void <big><b>WriteIntValue</b></big>(int nPos, int nValue)<br></div><br></body></html>

⌨️ 快捷键说明

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