Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

QDawg::Node Class Reference

The QDawg::Node class represents one node of a QDawg. More...

#include </home/clem/local/src/opie/library/qdawg.h>

List of all members.

Public Member Functions

QChar letter () const
bool isWord () const
bool isLast () const
const Nodenext () const
const Nodejump () const

Private Member Functions

 Node ()

Private Attributes

uint let:(30-nodebits)
uint isword:1
uint islast:1
int offset:nodebits

Friends

class QDawgPrivate


Detailed Description

The QDawg::Node class represents one node of a QDawg.

Definition at line 46 of file qdawg.h.


Constructor & Destructor Documentation

QDawg::Node::Node  )  [inline, private]
 

Definition at line 52 of file qdawg.h.


Member Function Documentation

bool QDawg::Node::isLast  )  const [inline]
 

Returns TRUE if this Node is the last in the child list; otherwise returns FALSE.

Definition at line 56 of file qdawg.h.

References islast.

bool QDawg::Node::isWord  )  const [inline]
 

Returns TRUE if this Node is the end of a word; otherwise returns FALSE.

Definition at line 55 of file qdawg.h.

References isword.

Referenced by ComputerPlayer::findBest().

const Node * QDawg::Node::jump  )  const [inline]
 

Returns the node connected to this Node.

Definition at line 58 of file qdawg.h.

References offset.

Referenced by ComputerPlayer::findBest().

QChar QDawg::Node::letter  )  const [inline]
 

Returns this Node's letter.

Definition at line 54 of file qdawg.h.

References let.

Referenced by ComputerPlayer::findBest().

const Node * QDawg::Node::next  )  const [inline]
 

Returns the next child Node in the child list or 0 if the current Node isLast().

Definition at line 57 of file qdawg.h.

References islast.

Referenced by ComputerPlayer::findBest().


Friends And Related Function Documentation

friend class QDawgPrivate [friend]
 

Definition at line 47 of file qdawg.h.


Member Data Documentation

uint QDawg::Node::islast [private]
 

Definition at line 50 of file qdawg.h.

Referenced by QDawgPrivate::appendToArray(), QDawgPrivate::dump(), isLast(), and next().

uint QDawg::Node::isword [private]
 

Definition at line 49 of file qdawg.h.

Referenced by QDawgPrivate::appendAllWords(), QDawgPrivate::appendToArray(), QDawgPrivate::contains(), QDawgPrivate::countWords(), QDawgPrivate::dump(), QDawgPrivate::dumpWords(), and isWord().

uint QDawg::Node::let [private]
 

Definition at line 48 of file qdawg.h.

Referenced by QDawgPrivate::appendAllWords(), QDawgPrivate::appendToArray(), QDawgPrivate::contains(), QDawgPrivate::dump(), QDawgPrivate::dumpWords(), and letter().

int QDawg::Node::offset [private]
 

Definition at line 51 of file qdawg.h.

Referenced by QDawgPrivate::appendAllWords(), QDawgPrivate::appendToArray(), QDawgPrivate::contains(), QDawgPrivate::countWords(), QDawgPrivate::dump(), QDawgPrivate::dumpWords(), and jump().


The documentation for this class was generated from the following files:
Generated on Sat Nov 5 17:46:32 2005 for OPIE by  doxygen 1.4.2