Cursor Class Reference

#include <vdbeInt.h>

Collaboration diagram for Cursor:

Collaboration graph
[legend]
List of all members.

Detailed Description

Definition at line 61 of file vdbeInt.h.

Public Member Functions

void init (int shape)
 Cursor ()
 ~Cursor ()
void setPosition (const QPoint &pt, bool countStep=true)
QPoint position () const
int totalSteps () const
QList< const Item * > items () const
void addItem (const Item *item)

Public Attributes

BtCursorpCursor
int iDb
i64 lastRowid
i64 nextRowid
Bool zeroed
Bool rowidIsValid
Bool atFirst
Bool useRandomRowid
Bool nullRow
Bool nextRowidValid
Bool pseudoTable
Bool deferredMoveto
Bool isTable
Bool isIndex
u8 bogusIncrKey
i64 movetoTarget
BtreepBt
int nData
char * pData
i64 iKey
u8pIncrKey
KeyInfopKeyInfo
int nField
i64 seqCount
int cacheStatus
int payloadSize
u32aType
u32aOffset
u8aRow
Common common
int shape

Private Attributes

QList< const Item * > m_items
QPoint m_pos
int m_totalSteps


Constructor & Destructor Documentation

Cursor::Cursor (  ) 

Definition at line 27 of file cursor.cpp.

00028     : m_totalSteps(0)
00029 {
00030 }

Cursor::~Cursor (  ) 

Definition at line 32 of file cursor.cpp.

References QList< T >::clear(), m_items, and qDeleteAll().

00033 {
00034     qDeleteAll(m_items);
00035     m_items.clear();
00036 }

Here is the call graph for this function:


Member Function Documentation

void Cursor::init ( int  shape  )  [inline]

Definition at line 167 of file domtool.h.

References Common::kind, and Common::Kind_Cursor.

Referenced by Variant::createCursor().

00168     {
00169         common.kind = Common::Kind_Cursor;
00170         this->shape = shape;
00171     }

void Cursor::setPosition ( const QPoint pt,
bool  countStep = true 
)

Definition at line 38 of file cursor.cpp.

References m_pos, and m_totalSteps.

Referenced by Oubliette::Oubliette(), and Oubliette::tryMove().

00039 {
00040     m_pos = pt;
00041     if (addStep)
00042         ++m_totalSteps;
00043 }

QPoint Cursor::position (  )  const [inline]

Definition at line 39 of file cursor.h.

References m_pos.

Referenced by Oubliette::keyPressEvent(), Oubliette::Oubliette(), Oubliette::paintEvent(), Oubliette::tryMove(), Oubliette::updateExplored(), and Oubliette::visualCursorPos().

00039 { return m_pos; }

int Cursor::totalSteps (  )  const [inline]

Definition at line 40 of file cursor.h.

References m_totalSteps.

Referenced by Oubliette::showVictory().

00040 { return m_totalSteps; }

QList<const Item *> Cursor::items (  )  const [inline]

Definition at line 42 of file cursor.h.

References m_items.

Referenced by Oubliette::showInventory(), Oubliette::showInventoryItem(), and Oubliette::tryMove().

00042 { return m_items; }

void Cursor::addItem ( const Item item  ) 

Definition at line 45 of file cursor.cpp.

References m_items.

Referenced by Oubliette::tryMove().

00046 {
00047     m_items << item;
00048 }


Member Data Documentation

BtCursor* Cursor::pCursor

Definition at line 62 of file vdbeInt.h.

int Cursor::iDb

Definition at line 63 of file vdbeInt.h.

i64 Cursor::lastRowid

Definition at line 64 of file vdbeInt.h.

i64 Cursor::nextRowid

Definition at line 65 of file vdbeInt.h.

Bool Cursor::zeroed

Definition at line 66 of file vdbeInt.h.

Bool Cursor::rowidIsValid

Definition at line 67 of file vdbeInt.h.

Bool Cursor::atFirst

Definition at line 68 of file vdbeInt.h.

Bool Cursor::useRandomRowid

Definition at line 69 of file vdbeInt.h.

Bool Cursor::nullRow

Definition at line 70 of file vdbeInt.h.

Bool Cursor::nextRowidValid

Definition at line 71 of file vdbeInt.h.

Bool Cursor::pseudoTable

Definition at line 72 of file vdbeInt.h.

Bool Cursor::deferredMoveto

Definition at line 73 of file vdbeInt.h.

Bool Cursor::isTable

Definition at line 74 of file vdbeInt.h.

Bool Cursor::isIndex

Definition at line 75 of file vdbeInt.h.

u8 Cursor::bogusIncrKey

Definition at line 76 of file vdbeInt.h.

i64 Cursor::movetoTarget

Definition at line 77 of file vdbeInt.h.

Btree* Cursor::pBt

Definition at line 78 of file vdbeInt.h.

int Cursor::nData

Definition at line 79 of file vdbeInt.h.

char* Cursor::pData

Definition at line 80 of file vdbeInt.h.

i64 Cursor::iKey

Definition at line 81 of file vdbeInt.h.

u8* Cursor::pIncrKey

Definition at line 82 of file vdbeInt.h.

KeyInfo* Cursor::pKeyInfo

Definition at line 83 of file vdbeInt.h.

int Cursor::nField

Definition at line 84 of file vdbeInt.h.

i64 Cursor::seqCount

Definition at line 85 of file vdbeInt.h.

int Cursor::cacheStatus

Definition at line 92 of file vdbeInt.h.

int Cursor::payloadSize

Definition at line 93 of file vdbeInt.h.

u32* Cursor::aType

Definition at line 94 of file vdbeInt.h.

u32* Cursor::aOffset

Definition at line 95 of file vdbeInt.h.

u8* Cursor::aRow

Definition at line 96 of file vdbeInt.h.

Common Cursor::common

Definition at line 164 of file domtool.h.

int Cursor::shape

Definition at line 165 of file domtool.h.

QList<const Item *> Cursor::m_items [private]

Definition at line 46 of file cursor.h.

Referenced by addItem(), items(), and ~Cursor().

QPoint Cursor::m_pos [private]

Definition at line 47 of file cursor.h.

Referenced by position(), and setPosition().

int Cursor::m_totalSteps [private]

Definition at line 48 of file cursor.h.

Referenced by setPosition(), and totalSteps().


The documentation for this class was generated from the following files:
Generated on Thu Mar 15 14:51:06 2007 for Qt 4.2 User's Guide by  doxygen 1.5.1