LMMS
Loading...
Searching...
No Matches
CAdPlugDatabase Class Reference

#include <database.h>

Classes

class  CKey
class  CRecord
class  DB_Bucket

Public Member Functions

 CAdPlugDatabase ()
 ~CAdPlugDatabase ()
bool load (std::string db_name)
bool load (binistream &f)
bool save (std::string db_name)
bool save (binostream &f)
bool insert (CRecord *record)
void wipe (CRecord *record)
void wipe ()
CRecordsearch (CKey const &key)
bool lookup (CKey const &key)
CRecordget_record ()
bool go_forward ()
bool go_backward ()
void goto_begin ()
void goto_end ()

Private Member Functions

unsigned long make_hash (CKey const &key)

Private Attributes

DB_Bucket ** db_linear
DB_Bucket ** db_hashed
unsigned long linear_index
unsigned long linear_logic_length
unsigned long linear_length

Static Private Attributes

static const unsigned short hash_radix = 0xfff1

Constructor & Destructor Documentation

◆ CAdPlugDatabase()

CAdPlugDatabase::CAdPlugDatabase ( )

◆ ~CAdPlugDatabase()

CAdPlugDatabase::~CAdPlugDatabase ( )

Member Function Documentation

◆ get_record()

CAdPlugDatabase::CRecord * CAdPlugDatabase::get_record ( )

◆ go_backward()

bool CAdPlugDatabase::go_backward ( )

◆ go_forward()

bool CAdPlugDatabase::go_forward ( )

◆ goto_begin()

void CAdPlugDatabase::goto_begin ( )

◆ goto_end()

void CAdPlugDatabase::goto_end ( )

◆ insert()

bool CAdPlugDatabase::insert ( CRecord * record)

◆ load() [1/2]

bool CAdPlugDatabase::load ( binistream & f)

◆ load() [2/2]

bool CAdPlugDatabase::load ( std::string db_name)

◆ lookup()

bool CAdPlugDatabase::lookup ( CKey const & key)

◆ make_hash()

unsigned long CAdPlugDatabase::make_hash ( CKey const & key)
inlineprivate

◆ save() [1/2]

bool CAdPlugDatabase::save ( binostream & f)

◆ save() [2/2]

bool CAdPlugDatabase::save ( std::string db_name)

◆ search()

CAdPlugDatabase::CRecord * CAdPlugDatabase::search ( CKey const & key)

◆ wipe() [1/2]

void CAdPlugDatabase::wipe ( )

◆ wipe() [2/2]

void CAdPlugDatabase::wipe ( CRecord * record)

Member Data Documentation

◆ db_hashed

DB_Bucket** CAdPlugDatabase::db_hashed
private

◆ db_linear

DB_Bucket** CAdPlugDatabase::db_linear
private

◆ hash_radix

const unsigned short CAdPlugDatabase::hash_radix = 0xfff1
staticprivate

◆ linear_index

unsigned long CAdPlugDatabase::linear_index
private

◆ linear_length

unsigned long CAdPlugDatabase::linear_length
private

◆ linear_logic_length

unsigned long CAdPlugDatabase::linear_logic_length
private

The documentation for this class was generated from the following files: