#include <vdbeInt.h>
Collaboration diagram for Cursor:
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 | |
BtCursor * | pCursor |
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 |
Btree * | pBt |
int | nData |
char * | pData |
i64 | iKey |
u8 * | pIncrKey |
KeyInfo * | pKeyInfo |
int | nField |
i64 | seqCount |
int | cacheStatus |
int | payloadSize |
u32 * | aType |
u32 * | aOffset |
u8 * | aRow |
Common | common |
int | shape |
Private Attributes | |
QList< const Item * > | m_items |
QPoint | m_pos |
int | m_totalSteps |
Cursor::Cursor | ( | ) |
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:
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; }
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 }
int Cursor::iDb |
int Cursor::nData |
char* Cursor::pData |
int Cursor::nField |
int Cursor::shape |
QList<const Item *> Cursor::m_items [private] |
QPoint Cursor::m_pos [private] |
int Cursor::m_totalSteps [private] |