gecko-dev/db/cxx/namemap.txt
1998-10-15 03:56:37 +00:00

54 lines
2.3 KiB
Plaintext

@(#)namemap.txt 10.1 (Sleepycat) 7/17/97
The bulk of DB provides for wrapper classes and appropriately named methods
that call into DB. For the most part, there is a straightforward mapping of
names. For the purposes of referencing documentation, this chart shows the
underlying C structure name for each C++ class. In some cases, using the
given C prefix with a C++ method name gives the underlying C function name.
For example, DBMemPoolFile::close() is implemented by memp_fclose().
C++ C C prefix
DBApp none
DBAppOptions DB_ENV
DBConfig none
DBException none
DBIterator DBC (cursor)
DBLock DB_LOCK lock_
DBLockRequest DB_LOCKREQ
DBLockTable DB_LOCKTAB
DBLog DB_LOG log_
DBMemPool DB_MPOOL memp_
DBMemPoolFile DB_MPOOLFILE memp_f
DBMemPoolFileStat reserved
DBMemPoolStat reserved
DBOpenType DBTYPE
DBOpenParams DB_INFO
DBSequenceNumber DB_LSN
DBTable DB
DBThunk DBT
DBTransaction DB_TXN txn_
DBTransactionManager DB_TXNMGR txn_
DBVersion none
There are a few exceptions to the above, mostly to allow for
natural constructors or to avoid conflicts with reserved words:
C++ name C name
DBLog::identify log_register
DBLog::unidentify log_unregister
DBTransaction::DBTransaction txn_begin
DBTransactionManager::DBTransactionManager txn_open
DBLockTable::DBLockTable lock_open
DBLog::DBLog log_open
DBMemPool::DBMemPool memp_open
DBMemPoolFile::DBMemPoolFile memp_fopen
DBApp::removeLockTableFile lock_unlink
DBApp::removeMemPoolFile memp_unlink
DBApp::removeLoggingFile log_unlink
DBApp::removeTransactionManagerFile txn_unlink
DBTable::remove (*del)