#include <xbntx.h>
Public Member Functions | |
| xbNtx () | |
| Constructor. | |
| xbNtx (xbDbf *) | |
| Constructor. | |
| virtual | ~xbNtx () |
| Destructor. | |
| void | DumpHdrNode (xbShort Option) |
| Short description. | |
| void | DumpNodeRec (xbLong) |
| Short description. | |
| xbShort | CreateIndex (const char *, const char *, xbShort, xbShort) |
| Short description. | |
| xbLong | GetTotalNodes () |
| Short description. | |
| xbULong | GetCurDbfRec () |
| void | DumpNodeChain () |
| Short description. | |
| xbShort | CreateKey (xbShort, xbShort) |
| Short description. | |
| xbShort | GetCurrentKey (char *key) |
| Short description. | |
| xbShort | AddKey (xbLong) |
| Short description. | |
| xbShort | UniqueIndex () |
| xbShort | DeleteKey (xbLong DbfRec) |
| Short description. | |
| xbShort | KeyWasChanged () |
| Short description. | |
| xbShort | FindKey (const char *) |
| Short description. | |
| xbShort | FindKey () |
| Short description. | |
| xbShort | FindKey (xbDouble) |
| Short description. | |
| xbShort | GetNextKey () |
| xbShort | GetLastKey () |
| xbShort | GetFirstKey () |
| xbShort | GetPrevKey () |
| xbShort | ReIndex (void(*statusFunc)(xbLong itemNum, xbLong numItems)=0) |
| Short description. | |
| xbShort | KeyExists (char *Key) |
| xbShort | KeyExists (xbDouble) |
| Short description. | |
| virtual void | GetExpression (char *buf, int len) |
| Short description. | |
| xbShort | CheckIndexIntegrity (xbShort Option) |
| Short description. | |
| virtual const char * | GetExtWithDot (bool lower) |
Protected Member Functions | |
| xbLong | GetLeftNodeNo (xbShort, xbNodeLink *) |
| Short description. | |
| xbShort | CompareKey (const char *, const char *, xbShort) |
| Short description. | |
| xbShort | CompareKey (const char *, const char *) |
| Short description. | |
| xbLong | GetDbfNo (xbShort, xbNodeLink *) |
| Short description. | |
| char * | GetKeyData (xbShort, xbNodeLink *) |
| Short description. | |
| xbUShort | GetItemOffset (xbShort, xbNodeLink *, xbShort) |
| Short description. | |
| xbUShort | InsertKeyOffset (xbShort, xbNodeLink *) |
| Short description. | |
| xbUShort | GetKeysPerNode () |
| Short description. | |
| virtual xbShort | GetHeadNode () |
| Short description. | |
| xbShort | GetLeafNode (xbLong, xbShort) |
| Short description. | |
| xbNodeLink * | GetNodeMemory () |
| Short description. | |
| xbLong | GetNextNodeNo () |
| Short description. | |
| void | ReleaseNodeMemory (xbNodeLink *n, xbBool doFree=false) |
| Short description. | |
| xbULong | GetLeafFromInteriorNode (const char *, xbShort) |
| Short description. | |
| xbShort | CalcKeyLen () |
| Short description. | |
| xbShort | PutKeyData (xbShort, xbNodeLink *) |
| Short description. | |
| xbShort | PutLeftNodeNo (xbShort, xbNodeLink *, xbLong) |
| Short description. | |
| xbShort | PutLeafNode (xbLong, xbNodeLink *) |
| Short description. | |
| xbShort | PutHeadNode (NtxHeadNode *, FILE *, xbShort) |
| Short description. | |
| xbShort | TouchIndex () |
| xbShort | PutDbfNo (xbShort, xbNodeLink *, xbLong) |
| Short description. | |
| xbShort | PutKeyInNode (xbNodeLink *, xbShort, xbLong, xbLong, xbShort) |
| Short description. | |
| xbShort | SplitLeafNode (xbNodeLink *, xbNodeLink *, xbShort, xbLong) |
| Short description. | |
| xbShort | SplitINode (xbNodeLink *, xbNodeLink *, xbLong) |
| Short description. | |
| xbShort | AddToIxList () |
| xbShort | RemoveFromIxList () |
| xbShort | RemoveKeyFromNode (xbShort, xbNodeLink *) |
| Short description. | |
| xbShort | DeleteKeyFromNode (xbShort, xbNodeLink *) |
| Short description. | |
| xbShort | JoinSiblings (xbNodeLink *, xbShort, xbNodeLink *, xbNodeLink *) |
| Short description. | |
| xbUShort | DeleteKeyOffset (xbShort, xbNodeLink *) |
| Short description. | |
| xbShort | FindKey (const char *, xbShort, xbShort) |
| Short description. | |
| xbShort | UpdateParentKey (xbNodeLink *) |
| Short description. | |
| xbShort | GetFirstKey (xbShort) |
| Short description. | |
| xbShort | GetNextKey (xbShort) |
| Short description. | |
| xbShort | GetLastKey (xbLong, xbShort) |
| Short description. | |
| xbShort | GetPrevKey (xbShort) |
| Short description. | |
| void | UpdateDeleteList (xbNodeLink *) |
| Short description. | |
| void | ProcessDeleteList () |
| Short description. | |
| xbShort | FindKey (const char *, xbLong) |
| Short description. | |
| virtual xbUShort | GetKeyLen () |
| virtual const char * | GetKeyExpression () |
| virtual void | FreeNodesMemory () |
Protected Attributes | |
| NtxHeadNode | HeadNode |
| NtxLeafNode | LeafNode |
| xbLong | NodeLinkCtr |
| xbLong | ReusedNodeLinks |
| char | Node [XB_NTX_NODE_SIZE] |
| xbNodeLink * | NodeChain |
| xbNodeLink * | FreeNodeChain |
| xbNodeLink * | CurNode |
| xbNodeLink * | DeleteChain |
| NtxItem | PushItem |
xbNtx class
| xbNtx::xbNtx | ( | ) |
Constructor.
| xbNtx::xbNtx | ( | xbDbf * | pdbf | ) |
Constructor.
| pdbf |
| xbNtx::~xbNtx | ( | ) | [virtual] |
Destructor.
| xbShort xbNtx::AddToIxList | ( | ) | [protected] |
| xbShort xbNtx::CalcKeyLen | ( | void | ) | [protected] |
Short description.
| xbShort xbNtx::CompareKey | ( | const char * | Key1, | |
| const char * | Key2 | |||
| ) | [protected] |
Short description.
| Key1 | ||
| Key2 |
Short description.
| Key1 | ||
| Key2 | ||
| Klen |
| xbShort xbNtx::DeleteKeyFromNode | ( | xbShort | pos, | |
| xbNodeLink * | n | |||
| ) | [protected] |
Short description.
| pos | ||
| n |
| xbUShort xbNtx::DeleteKeyOffset | ( | xbShort | pos, | |
| xbNodeLink * | n | |||
| ) | [protected] |
Short description.
| pos | ||
| n |
| void xbNtx::DumpNodeChain | ( | void | ) | [virtual] |
Short description.
Implements xbIndex.
| xbShort xbNtx::FindKey | ( | const char * | Key | ) | [virtual] |
Short description.
| Tkey | ||
| DbfRec |
Short description.
| Tkey | ||
| Klen | ||
| RetrieveSw |
| void xbNtx::FreeNodesMemory | ( | ) | [protected, virtual] |
Implements xbIndex.
| xbShort xbNtx::GetCurrentKey | ( | char * | key | ) | [virtual] |
| xbLong xbNtx::GetDbfNo | ( | xbShort | RecNo, | |
| xbNodeLink * | n | |||
| ) | [protected] |
Short description.
| RecNo | ||
| n |
| void xbNtx::GetExpression | ( | char * | buf, | |
| int | len | |||
| ) | [virtual] |
| const char * xbNtx::GetExtWithDot | ( | bool | lower | ) | [virtual] |
Implements xbFile.
Short description.
| RetrieveSw |
| xbUShort xbNtx::GetItemOffset | ( | xbShort | RecNo, | |
| xbNodeLink * | n, | |||
| xbShort | ||||
| ) | [protected] |
Short description.
| RecNo | ||
| n | ||
| char * xbNtx::GetKeyData | ( | xbShort | RecNo, | |
| xbNodeLink * | n | |||
| ) | [protected] |
Short description.
| RecNo | ||
| n |
| const char * xbNtx::GetKeyExpression | ( | ) | [protected, virtual] |
Implements xbIndex.
| xbUShort xbNtx::GetKeysPerNode | ( | void | ) | [protected] |
Short description.
Short description.
| NodeNo | ||
| RetrieveSw |
Short description.
| Tkey | ||
Short description.
| NodeNo | ||
| SetNodeChain |
| xbLong xbNtx::GetLeftNodeNo | ( | xbShort | RecNo, | |
| xbNodeLink * | n | |||
| ) | [protected] |
Short description.
| RecNo | ||
| n |
Short description.
| RetrieveSw |
| xbLong xbNtx::GetNextNodeNo | ( | ) | [protected] |
Short description.
| xbNodeLink * xbNtx::GetNodeMemory | ( | void | ) | [protected] |
Short description.
Short description.
| RetrieveSw |
| xbUShort xbNtx::InsertKeyOffset | ( | xbShort | pos, | |
| xbNodeLink * | n | |||
| ) | [protected] |
Short description.
| pos | ||
| n |
| xbShort xbNtx::JoinSiblings | ( | xbNodeLink * | parent, | |
| xbShort | parentPos, | |||
| xbNodeLink * | n1, | |||
| xbNodeLink * | n2 | |||
| ) | [protected] |
Short description.
| parent | ||
| parentPos | ||
| n1 | ||
| n2 |
| xbShort xbNtx::KeyExists | ( | char * | Key | ) | [inline] |
| void xbNtx::ProcessDeleteList | ( | void | ) | [protected] |
Short description.
| xbShort xbNtx::PutDbfNo | ( | xbShort | RecNo, | |
| xbNodeLink * | n, | |||
| xbLong | DbfNo | |||
| ) | [protected] |
Short description.
| RecNo | ||
| n | ||
| DbfNo |
| xbShort xbNtx::PutHeadNode | ( | NtxHeadNode * | Head, | |
| FILE * | f, | |||
| xbShort | UpdateOnly | |||
| ) | [protected] |
Short description.
| Head | ||
| f | ||
| UpdateOnly |
| xbShort xbNtx::PutKeyData | ( | xbShort | RecNo, | |
| xbNodeLink * | n | |||
| ) | [protected] |
Short description.
| RecNo | ||
| n |
| xbShort xbNtx::PutKeyInNode | ( | xbNodeLink * | n, | |
| xbShort | pos, | |||
| xbLong | d, | |||
| xbLong | l, | |||
| xbShort | w | |||
| ) | [protected] |
Short description.
| n | ||
| pos | ||
| d | ||
| l | ||
| w |
| xbShort xbNtx::PutLeafNode | ( | xbLong | l, | |
| xbNodeLink * | n | |||
| ) | [protected] |
Short description.
| l | ||
| n |
| xbShort xbNtx::PutLeftNodeNo | ( | xbShort | RecNo, | |
| xbNodeLink * | n, | |||
| xbLong | NodeNo | |||
| ) | [protected] |
Short description.
| RecNo | ||
| n | ||
| NodeNo |
| void xbNtx::ReleaseNodeMemory | ( | xbNodeLink * | n, | |
| xbBool | doFree = false | |||
| ) | [protected] |
Short description.
| n |
| xbShort xbNtx::RemoveFromIxList | ( | ) | [protected] |
| xbShort xbNtx::RemoveKeyFromNode | ( | xbShort | pos, | |
| xbNodeLink * | n | |||
| ) | [protected] |
Short description.
| pos | ||
| n |
| xbShort xbNtx::SplitINode | ( | xbNodeLink * | n1, | |
| xbNodeLink * | n2, | |||
| xbLong | ||||
| ) | [protected] |
Short description.
| n1 | ||
| n2 | ||
| xbShort xbNtx::SplitLeafNode | ( | xbNodeLink * | n1, | |
| xbNodeLink * | n2, | |||
| xbShort | pos, | |||
| xbLong | d | |||
| ) | [protected] |
Short description.
| n1 | ||
| n2 | ||
| pos | ||
| d |
| void xbNtx::UpdateDeleteList | ( | xbNodeLink * | n | ) | [protected] |
Short description.
| n |
| xbShort xbNtx::UpdateParentKey | ( | xbNodeLink * | n | ) | [protected] |
Short description.
| n |
xbNodeLink* xbNtx::CurNode [protected] |
xbNodeLink* xbNtx::DeleteChain [protected] |
xbNodeLink* xbNtx::FreeNodeChain [protected] |
NtxHeadNode xbNtx::HeadNode [protected] |
NtxLeafNode xbNtx::LeafNode [protected] |
char xbNtx::Node[XB_NTX_NODE_SIZE] [protected] |
xbNodeLink* xbNtx::NodeChain [protected] |
xbLong xbNtx::NodeLinkCtr [protected] |
NtxItem xbNtx::PushItem [protected] |
xbLong xbNtx::ReusedNodeLinks [protected] |
1.6.1