Index Class Reference

#include <Index.h>

Inheritance diagram for Index:

Inheritance graph
[legend]
Collaboration diagram for Index:

Collaboration graph
[legend]

Public Member Functions

virtual DbRetVal insert (TableImpl *tbl, Transaction *tr, void *indexPtr, IndexInfo *info, void *tuple, bool undoFlag)=0
virtual DbRetVal remove (TableImpl *tbl, Transaction *tr, void *indexPtr, IndexInfo *info, void *tuple, bool undoFlag)=0
virtual DbRetVal update (TableImpl *tbl, Transaction *tr, void *indexPtr, IndexInfo *info, void *tuple, bool undoFlag)=0

Static Public Member Functions

static IndexgetIndex (IndexType type)
static void init ()
static void destroy ()

Detailed Description

Definition at line 68 of file Index.h.


Member Function Documentation

static void Index::destroy (  )  [inline, static]

Definition at line 78 of file Index.h.

Referenced by Connection::~Connection().

00078                           { 
00079          usageCount--;
00080          if(!usageCount) {
00081             if(!hIdx) { delete hIdx; hIdx=NULL; }
00082          }
00083     }

Here is the caller graph for this function:

Index * Index::getIndex ( IndexType  type  )  [static]

Definition at line 24 of file Index.cxx.

References hashIndex.

00025 {
00026     if (type == hashIndex) 
00027     {
00028         if (NULL == hIdx) hIdx = new HashIndex();
00029         return hIdx;
00030     }
00031     return NULL;
00032 }

static void Index::init (  )  [inline, static]

Definition at line 77 of file Index.h.

Referenced by Connection::open().

00077 { usageCount++; }

Here is the caller graph for this function:

virtual DbRetVal Index::insert ( TableImpl tbl,
Transaction tr,
void *  indexPtr,
IndexInfo info,
void *  tuple,
bool  undoFlag 
) [pure virtual]

Implemented in HashIndex.

virtual DbRetVal Index::remove ( TableImpl tbl,
Transaction tr,
void *  indexPtr,
IndexInfo info,
void *  tuple,
bool  undoFlag 
) [pure virtual]

Implemented in HashIndex.

virtual DbRetVal Index::update ( TableImpl tbl,
Transaction tr,
void *  indexPtr,
IndexInfo info,
void *  tuple,
bool  undoFlag 
) [pure virtual]

Implemented in HashIndex.


The documentation for this class was generated from the following files:
Generated on Mon Jun 9 22:48:06 2008 for csql by  doxygen 1.4.7