KIntDbm Class Reference
[kdbm Index] [kdbm Hierarchy]
KIntDbm<T>
provides a database based on long
keys and T*
data More...
#include <kdbm.h>
Inherits: KGDbm
Public Members
- KIntDbm ()
- bool exists (const long _key)
- int insert (const long _key, T* _val, const int _size = sizeof(T)
- int insert (const long _key, T& _val, const int _size = sizeof(T)
- int replace (const long _key, T* _val, const int _size = sizeof(T)
- int replace (const long _key, T& _val, const int _size = sizeof(T)
- T* operator[] (long _key)
- T* take (long _key, int& _size)
- bool remove (long _key)
KIntDbm<T>
provides a database based on long
keys and T*
data.
KIntDbm class is very similar to KDbm. The only difference is that KIntDbm
implements a database with keys of type long
. Please refer to
the KDbm class documentation.
Default constructor.
bool exists(const long _key)
See KDbm
int insert(const long _key, T* _val, const int _size = sizeof(T)
See Inserting and Replacing Records.
int insert(const long _key, T& _val, const int _size = sizeof(T)
See Inserting and Replacing Records.
int replace(const long _key, T* _val, const int _size = sizeof(T)
See Inserting and Replacing Records.
int replace(const long _key, T& _val, const int _size = sizeof(T)
See KDbm
See KDbm
T* take(long _key, int& _size)
See KDbm
bool remove(long _key)
Remove the item associated with 'key' from the database.
- Returns:
-
true if the item was removed successfully, false otherwise (for
example, if the item does not exist).
- See Also:
- exists
Documentation generated by iglio@localhost on Thu Oct 15 19:05:38 GMT 1998
|
Kdoc
|