Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

xbNdx Class Reference

xbNdx class. More...

#include <ndx.h>

Inheritance diagram for xbNdx::

xbIndex List of all members.

Public Methods

 xbNdx ()
 xbNdx (xbDbf *)
 ~xbNdx ()
xbShort OpenIndex (const char *FileName)
xbShort CloseIndex ()
xbShort CreateIndex (const char *IxName, const char *Exp, xbShort Unique, xbShort OverLay)
xbLong GetTotalNodes ()
xbLong GetCurDbfRec ()
xbShort CreateKey (xbShort, xbShort)
xbShort GetCurrentKey (char *key)
xbShort AddKey (xbLong)
xbShort UniqueIndex ()
xbShort DeleteKey (xbLong)
xbShort KeyWasChanged ()
xbShort FindKey (const char *Key)
xbShort FindKey ()
xbShort FindKey (xbDouble)
xbShort GetNextKey ()
 Short description. More...

xbShort GetLastKey ()
 Short description. More...

xbShort GetFirstKey ()
 Short description. More...

xbShort GetPrevKey ()
 Short description. More...

xbShort ReIndex (void(*statusFunc)(xbLong itemNum, xbLong numItems)=0)
xbShort KeyExists (const char *Key)
xbShort KeyExists (xbDouble)
virtual void SetNodeSize (xbShort size)
virtual void GetExpression (char *buf, int len)

Protected Methods

xbLong GetLeftNodeNo (xbShort, xbNdxNodeLink *)
xbShort CompareKey (const char *Key1, const char *Key2, xbShort Klen)
 Short description. More...

xbLong GetDbfNo (xbShort RecNo, xbNdxNodeLink *n)
 Short description. More...

char* GetKeyData (xbShort, xbNdxNodeLink *)
xbUShort GetKeysPerNode ()
xbShort GetHeadNode ()
xbShort GetLeafNode (xbLong, xbShort)
xbNdxNodeLinkGetNodeMemory ()
void ReleaseNodeMemory (xbNdxNodeLink *)
xbShort BSearchNode (const char *key, xbShort klen, const xbNdxNodeLink *node, xbShort *comp)
xbLong GetLeafFromInteriorNode (const char *Tkey, xbShort Klen)
xbShort CalcKeyLen ()
xbShort PutKeyData (xbShort, xbNdxNodeLink *)
xbShort PutLeftNodeNo (xbShort, xbNdxNodeLink *, xbLong)
xbShort PutLeafNode (xbLong, xbNdxNodeLink *)
xbShort PutHeadNode (xbNdxHeadNode *, FILE *, xbShort)
xbShort PutDbfNo (xbShort, xbNdxNodeLink *, xbLong)
xbShort PutKeyInNode (xbNdxNodeLink *, xbShort, xbLong, xbLong, xbShort)
xbShort SplitLeafNode (xbNdxNodeLink *, xbNdxNodeLink *, xbShort, xbLong)
xbShort SplitINode (xbNdxNodeLink *, xbNdxNodeLink *, xbLong)
xbShort AddToIxList ()
xbShort RemoveFromIxList ()
xbShort RemoveKeyFromNode (xbShort, xbNdxNodeLink *)
xbShort FindKey (const char *Tkey, xbShort Klen, xbShort RetrieveSw)
xbShort UpdateParentKey (xbNdxNodeLink *)
xbShort GetFirstKey (xbShort)
xbShort GetNextKey (xbShort)
xbShort GetLastKey (xbLong, xbShort)
xbShort GetPrevKey (xbShort)
void UpdateDeleteList (xbNdxNodeLink *)
void ProcessDeleteList ()
xbNdxNodeLinkLeftSiblingHasSpace (xbNdxNodeLink *)
xbNdxNodeLinkRightSiblingHasSpace (xbNdxNodeLink *)
xbShort DeleteSibling (xbNdxNodeLink *)
xbShort MoveToLeftNode (xbNdxNodeLink *, xbNdxNodeLink *)
xbShort MoveToRightNode (xbNdxNodeLink *, xbNdxNodeLink *)
xbShort FindKey (const char *Tkey, xbLong DbfRec)
xbShort CloneNodeChain ()
xbShort UncloneNodeChain ()

Protected Attributes

xbNdxHeadNode HeadNode
xbNdxLeafNode LeafNode
xbLong xbNodeLinkCtr
xbLong ReusedxbNodeLinks
xbString IndexName
char Node [XB_MAX_NDX_NODE_SIZE]
xbNdxNodeLinkNodeChain
xbNdxNodeLinkFreeNodeChain
xbNdxNodeLinkCurNode
xbNdxNodeLinkDeleteChain
xbNdxNodeLinkCloneChain
xbLong CurDbfRec
char* KeyBuf
char* KeyBuf2

Detailed Description

xbNdx class.


Constructor & Destructor Documentation

xbNdx::xbNdx ( ) [inline]
 

xbNdx::xbNdx ( xbDbf * )
 

xbNdx::~xbNdx ( ) [inline]
 


Member Function Documentation

xbShort xbNdx::AddKey ( xbLong ) [virtual]
 

Reimplemented from xbIndex.

xbShort xbNdx::AddToIxList ( ) [protected]
 

xbShort xbNdx::BSearchNode ( const char * key,
xbShort klen,
const xbNdxNodeLink * node,
xbShort * comp ) [protected]
 

xbShort xbNdx::CalcKeyLen ( ) [protected]
 

xbShort xbNdx::CloneNodeChain ( ) [protected]
 

xbShort xbNdx::CloseIndex ( void ) [virtual]
 

Reimplemented from xbIndex.

xbShort xbNdx::CompareKey ( const char * Key1,
const char * Key2,
xbShort Klen ) [inline, protected]
 

Short description.

xbShort xbNdx::CreateIndex ( const char * IxName,
const char * Exp,
xbShort Unique,
xbShort OverLay ) [virtual]
 

Reimplemented from xbIndex.

xbShort xbNdx::CreateKey ( xbShort,
xbShort ) [virtual]
 

Reimplemented from xbIndex.

xbShort xbNdx::DeleteKey ( xbLong DbfRec ) [virtual]
 

Reimplemented from xbIndex.

xbShort xbNdx::DeleteSibling ( xbNdxNodeLink * ) [protected]
 

xbShort xbNdx::FindKey ( const char * Tkey,
xbLong DbfRec ) [protected]
 

xbShort xbNdx::FindKey ( const char * Tkey,
xbShort Klen,
xbShort RetrieveSw ) [protected]
 

xbShort xbNdx::FindKey ( xbDouble ) [virtual]
 

Reimplemented from xbIndex.

xbShort xbNdx::FindKey ( void ) [virtual]
 

Reimplemented from xbIndex.

xbShort xbNdx::FindKey ( const char * Key ) [virtual]
 

Reimplemented from xbIndex.

xbLong xbNdx::GetCurDbfRec ( void ) [inline, virtual]
 

Reimplemented from xbIndex.

xbShort xbNdx::GetCurrentKey ( char * key ) [virtual]
 

Reimplemented from xbIndex.

xbLong xbNdx::GetDbfNo ( xbShort RecNo,
xbNdxNodeLink * n ) [inline, protected]
 

Short description.

void xbNdx::GetExpression ( char * buf,
int len ) [virtual]
 

Reimplemented from xbIndex.

xbShort xbNdx::GetFirstKey ( xbShort ) [protected]
 

xbShort xbNdx::GetFirstKey ( void ) [inline, virtual]
 

Short description.

Reimplemented from xbIndex.

xbShort xbNdx::GetHeadNode ( ) [protected]
 

char * xbNdx::GetKeyData ( xbShort,
xbNdxNodeLink * ) [protected]
 

xbUShort xbNdx::GetKeysPerNode ( ) [protected]
 

xbShort xbNdx::GetLastKey ( xbLong,
xbShort ) [protected]
 

xbShort xbNdx::GetLastKey ( void ) [inline, virtual]
 

Short description.

Reimplemented from xbIndex.

xbLong xbNdx::GetLeafFromInteriorNode ( const char * Tkey,
xbShort Klen ) [protected]
 

xbShort xbNdx::GetLeafNode ( xbLong,
xbShort ) [protected]
 

xbLong xbNdx::GetLeftNodeNo ( xbShort,
xbNdxNodeLink * ) [protected]
 

xbShort xbNdx::GetNextKey ( xbShort ) [protected]
 

xbShort xbNdx::GetNextKey ( void ) [inline, virtual]
 

Short description.

Reimplemented from xbIndex.

xbNdxNodeLink * xbNdx::GetNodeMemory ( ) [protected]
 

xbShort xbNdx::GetPrevKey ( xbShort ) [protected]
 

xbShort xbNdx::GetPrevKey ( void ) [inline, virtual]
 

Short description.

Reimplemented from xbIndex.

xbLong xbNdx::GetTotalNodes ( void ) [virtual]
 

Reimplemented from xbIndex.

xbShort xbNdx::KeyExists ( xbDouble ) [virtual]
 

Reimplemented from xbIndex.

xbShort xbNdx::KeyExists ( const char * Key ) [inline]
 

xbShort xbNdx::KeyWasChanged ( void ) [virtual]
 

Reimplemented from xbIndex.

xbNdxNodeLink * xbNdx::LeftSiblingHasSpace ( xbNdxNodeLink * ) [protected]
 

xbShort xbNdx::MoveToLeftNode ( xbNdxNodeLink *,
xbNdxNodeLink * ) [protected]
 

xbShort xbNdx::MoveToRightNode ( xbNdxNodeLink *,
xbNdxNodeLink * ) [protected]
 

xbShort xbNdx::OpenIndex ( const char * FileName ) [virtual]
 

Reimplemented from xbIndex.

void xbNdx::ProcessDeleteList ( ) [protected]
 

xbShort xbNdx::PutDbfNo ( xbShort,
xbNdxNodeLink *,
xbLong ) [protected]
 

xbShort xbNdx::PutHeadNode ( xbNdxHeadNode *,
FILE *,
xbShort ) [protected]
 

xbShort xbNdx::PutKeyData ( xbShort,
xbNdxNodeLink * ) [protected]
 

xbShort xbNdx::PutKeyInNode ( xbNdxNodeLink *,
xbShort,
xbLong,
xbLong,
xbShort ) [protected]
 

xbShort xbNdx::PutLeafNode ( xbLong,
xbNdxNodeLink * ) [protected]
 

xbShort xbNdx::PutLeftNodeNo ( xbShort,
xbNdxNodeLink *,
xbLong ) [protected]
 

xbShort xbNdx::ReIndex ( void(* statusFunc)(xbLong itemNum, xbLong numItems) = 0 ) [virtual]
 

Reimplemented from xbIndex.

void xbNdx::ReleaseNodeMemory ( xbNdxNodeLink * ) [protected]
 

xbShort xbNdx::RemoveFromIxList ( ) [protected]
 

xbShort xbNdx::RemoveKeyFromNode ( xbShort,
xbNdxNodeLink * ) [protected]
 

xbNdxNodeLink * xbNdx::RightSiblingHasSpace ( xbNdxNodeLink * ) [protected]
 

void xbNdx::SetNodeSize ( xbShort size ) [virtual]
 

Reimplemented from xbIndex.

xbShort xbNdx::SplitINode ( xbNdxNodeLink *,
xbNdxNodeLink *,
xbLong ) [protected]
 

xbShort xbNdx::SplitLeafNode ( xbNdxNodeLink *,
xbNdxNodeLink *,
xbShort,
xbLong ) [protected]
 

xbShort xbNdx::UncloneNodeChain ( ) [protected]
 

xbShort xbNdx::UniqueIndex ( void ) [inline, virtual]
 

Reimplemented from xbIndex.

void xbNdx::UpdateDeleteList ( xbNdxNodeLink * ) [protected]
 

xbShort xbNdx::UpdateParentKey ( xbNdxNodeLink * ) [protected]
 


Member Data Documentation

xbNdxNodeLink * xbNdx::CloneChain [protected]
 

xbLong xbNdx::CurDbfRec [protected]
 

Reimplemented from xbIndex.

xbNdxNodeLink * xbNdx::CurNode [protected]
 

xbNdxNodeLink * xbNdx::DeleteChain [protected]
 

xbNdxNodeLink * xbNdx::FreeNodeChain [protected]
 

xbNdxHeadNode xbNdx::HeadNode [protected]
 

xbString xbNdx::IndexName [protected]
 

Reimplemented from xbIndex.

char * xbNdx::KeyBuf [protected]
 

Reimplemented from xbIndex.

char * xbNdx::KeyBuf2 [protected]
 

Reimplemented from xbIndex.

xbNdxLeafNode xbNdx::LeafNode [protected]
 

char xbNdx::Node [protected]
 

xbNdxNodeLink * xbNdx::NodeChain [protected]
 

xbLong xbNdx::ReusedxbNodeLinks [protected]
 

xbLong xbNdx::xbNodeLinkCtr [protected]
 


The documentation for this class was generated from the following file:
Generated at Sun Feb 1 20:51:34 2004 for Xbase Class Library by doxygen1.2.8.1 written by Dimitri van Heesch, © 1997-2001