Thread portable class


Gate portable class


Timer class


Pool class


Terimber 2.0


About C++


Downloads Products & Services Support Clients Open Source About



Home / Open source / Terimber 2.0

terimber_memindex Class Reference

abstract interface to memory index More...

#include <memdbacc.h>

Inheritance diagram for terimber_memindex:

memindex

List of all members.

Public Member Functions

virtual terimber_memlookupadd_lookup (const terimber_db_value_vector *info)=0
 for navigation user has to create index lookup first the list of values, should be the same length & type as the index columns or less for example, let us assume we have an index with two columns (id, integer) & (name, string) if the user provides values for id & name then the lookup will search for rows with specified id & name however, if only id is specified, lookup will ignore the second column values. it's impossible to set search lookup on the second column without setting the first column to do such a thing the user needs to create an index with a different order of index columns, for instance name and id, and set search criteria for the name column. user is allowed to ignore search criteria competely, (info == null) then lookup will move row by row in order they came from database, including the row with status = deleted
virtual bool remove_lookup (terimber_memlookup *obj)=0
 destroys lookup after using

Protected Member Functions

virtual ~terimber_memindex ()
 destructor users can't call destructor, memtable will take case about cleanup


Detailed Description

abstract interface to memory index

Definition at line 537 of file memdbacc.h.


Constructor & Destructor Documentation

virtual terimber_memindex::~terimber_memindex (  )  [inline, protected, virtual]

destructor users can't call destructor, memtable will take case about cleanup

Definition at line 543 of file memdbacc.h.


Member Function Documentation

virtual terimber_memlookup* terimber_memindex::add_lookup ( const terimber_db_value_vector info  )  [pure virtual]

for navigation user has to create index lookup first the list of values, should be the same length & type as the index columns or less for example, let us assume we have an index with two columns (id, integer) & (name, string) if the user provides values for id & name then the lookup will search for rows with specified id & name however, if only id is specified, lookup will ignore the second column values. it's impossible to set search lookup on the second column without setting the first column to do such a thing the user needs to create an index with a different order of index columns, for instance name and id, and set search criteria for the name column. user is allowed to ignore search criteria competely, (info == null) then lookup will move row by row in order they came from database, including the row with status = deleted

Parameters:
info  value vector

Implemented in memindex.

virtual bool terimber_memindex::remove_lookup ( terimber_memlookup obj  )  [pure virtual]

destroys lookup after using

Parameters:
obj  pointer to the lookup object

Implemented in memindex.


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


© Copyright Terimber 2003-.