| The Sword Project: sword::TreeKeyIdx Class Reference |
#include <treekeyidx.h>
Inheritance diagram for sword::TreeKeyIdx:


Public Member Functions | |
| TreeKeyIdx (const TreeKeyIdx &ikey) | |
| TreeKeyIdx (const char *idxPath, int fileMode=-1) | |
| virtual SWKey * | clone () const |
| Returns a new exact clone of this SWKey object. | |
| virtual const char * | getLocalName () |
| virtual const char * | setLocalName (const char *) |
| virtual const char * | getUserData (int *size=0) |
| virtual void | setUserData (const char *userData, int size=0) |
| virtual void | root () |
| Go to the root node. | |
| virtual bool | parent () |
| Go to the parent of the current node. | |
| virtual bool | firstChild () |
| Go to the first child of the current node. | |
| virtual bool | nextSibling () |
| Go to the next sibling of the current node. | |
| virtual bool | previousSibling () |
| Go to the previous sibling of the current node. | |
| virtual bool | hasChildren () |
| Does the current node have children? | |
| virtual void | append () |
| virtual void | appendChild () |
| virtual void | insertBefore () |
| virtual void | remove () |
| virtual void | save () |
| virtual void | copyFrom (const TreeKeyIdx &ikey) |
| virtual void | copyFrom (const SWKey &ikey) |
| Copies as much info (position, range, etc. | |
| void | setOffset (unsigned long offset) |
| unsigned long | getOffset () const |
| virtual SWKey & | operator= (const TreeKeyIdx &ikey) |
| SWKey & | operator= (const char *ikey) |
| SWKey & | operator= (const SWKey &ikey) |
| SWKey & | operator= (SW_POSITION pos) |
| operator const char * () const | |
| bool | operator== (const SWKey &ikey) |
| bool | operator!= (const SWKey &ikey) |
| virtual bool | operator> (const SWKey &ikey) |
| virtual bool | operator< (const SWKey &ikey) |
| virtual bool | operator>= (const SWKey &ikey) |
| virtual bool | operator<= (const SWKey &ikey) |
| SWKey & | operator-= (int steps) |
| SWKey & | operator+= (int steps) |
| SWKey & | operator++ (int) |
| SWKey & | operator-- (int) |
| virtual void | setText (const char *ikey) |
| Sets this SWKey with a character string. | |
| virtual void | setPosition (SW_POSITION p) |
| virtual const char * | getText () const |
| returns string representation of this key | |
| virtual int | _compare (const TreeKeyIdx &ikey) |
| virtual int | compare (const SWKey &ikey) |
| Compares this key object to another SWKey object. | |
| virtual void | decrement (int steps=1) |
| Decrements key a number of entry positions This is only valid if isTraversable is true. | |
| virtual void | increment (int steps=1) |
| Increments key a number of entry positions This is only valid if isTraversable is true. | |
| virtual bool | isTraversable () const |
| Whether or not this key can be ++ -- incremented. | |
Static Public Member Functions | |
| static signed char | create (const char *path) |
Private Member Functions | |
| void | getTreeNodeFromDatOffset (long ioffset, TreeNode *buf) const |
| char | getTreeNodeFromIdxOffset (long ioffset, TreeNode *node) const |
| void | saveTreeNode (TreeNode *node) |
| void | saveTreeNodeOffsets (TreeNode *node) |
| void | init () |
Private Attributes | |
| sword::TreeKeyIdx::TreeNode | currentNode |
| char * | path |
| FileDesc * | idxfd |
| FileDesc * | datfd |
Static Private Attributes | |
| static SWClass | classdef |
Classes | |
| class | TreeNode |
Definition at line 37 of file treekeyidx.h.
| virtual SWKey* sword::TreeKeyIdx::clone | ( | ) | const [virtual] |
Returns a new exact clone of this SWKey object.
This allocates a new SWKey which must be deleted by the caller
Reimplemented from sword::SWKey.
| virtual bool sword::TreeKeyIdx::parent | ( | ) | [virtual] |
| virtual bool sword::TreeKeyIdx::firstChild | ( | ) | [virtual] |
| virtual bool sword::TreeKeyIdx::nextSibling | ( | ) | [virtual] |
| virtual bool sword::TreeKeyIdx::previousSibling | ( | ) | [virtual] |
Go to the previous sibling of the current node.
Implements sword::TreeKey.
| virtual bool sword::TreeKeyIdx::hasChildren | ( | ) | [virtual] |
| virtual void sword::TreeKeyIdx::copyFrom | ( | const SWKey & | ikey | ) | [virtual] |
Copies as much info (position, range, etc.
) as possible from another SWKey object
| ikey | other SWKey object from which to copy |
Reimplemented from sword::SWKey.
| virtual void sword::TreeKeyIdx::setText | ( | const char * | ikey | ) | [virtual] |
Sets this SWKey with a character string.
| ikey | string used to set this key |
Implements sword::TreeKey.
| virtual int sword::TreeKeyIdx::compare | ( | const SWKey & | ikey | ) | [virtual] |
Compares this key object to another SWKey object.
| ikey | key to compare with this one |
Implements sword::TreeKey.
| virtual void sword::TreeKeyIdx::decrement | ( | int | steps = 1 |
) | [virtual] |
Decrements key a number of entry positions This is only valid if isTraversable is true.
| steps | Number of entries to jump backward |
Implements sword::TreeKey.
| virtual void sword::TreeKeyIdx::increment | ( | int | steps = 1 |
) | [virtual] |
Increments key a number of entry positions This is only valid if isTraversable is true.
| steps | Number of entries to jump forward |
Implements sword::TreeKey.
| The SWORD Project; P. O. Box 2528; Tempe, AZ 85280-2528 USA |