Public Member Functions | |
RexSBLoop (RexScript *rexs) | |
constructor | |
virtual bool | appendLine (const QString &s_line) |
adds a line; returns true if line was added, false if block ended | |
virtual bool | blockEnd (RexScript *rexs) |
informed that block ended More... | |
bool | hasErrors (void) |
tell if errors occured | |
virtual bool | endOfBlock (void)=0 |
end of the block was reached; return false to exit block | |
void | restartLoop (void) |
reload the loop from the start | |
Public Member Functions inherited from bbb::RexScriptBlock | |
RexScriptBlock (RexScript *rex) | |
constructor | |
virtual | ~RexScriptBlock (void) |
destructor; | |
virtual void | error (int line) |
helper for reporting errors from block | |
Public Member Functions inherited from List2De | |
List2De () | |
constructor; creates a simple, hanging element | |
List2De (List2Dh *p_father) | |
constructor; appends this item to the chain managed by p_father | |
List2De * | next (void) const |
return next item | |
List2De * | prev (void) const |
return previous item | |
int | index (const List2Dh *p_father) const |
gets the index of a particular item inside the father | |
void | insAfter (List2Dh *p_father, class List2De *pNew) |
insert an item after this item | |
void | insBefore (List2Dh *p_father, class List2De *pNew) |
insert an item before this item | |
void | extract (List2Dh *p_father) |
extract this item from the chain | |
void | dbgDump (void) const |
print the content of this object to debug output | |
Protected Attributes | |
RexScript::CallStackEntry | start_ |
the start of the block | |
int | stack_size_ |
number of entries in the stack | |
bool | b_error_ |
error found in block | |
bool | b_continue_ |
skipping for a continue comand | |
Protected Attributes inherited from bbb::RexScriptBlock | |
RexScript * | rex_ |
the parent script | |
int | file_idx_ |
index of the file that started the block | |
int | line_idx_ |
index of the line that started the block | |
Protected Attributes inherited from List2De | |
class List2De * | it_N |
pointer to next element in list | |
class List2De * | it_P |
pointer to previous element in list | |
Static Protected Attributes | |
static int | i_skip_ = 0 |
simply skip the body | |
static QRegExp | rex_end |
the parttern for the end of the loop | |
static QRegExp | rex_break |
the parttern for break keyword | |
static QRegExp | rex_continue |
the parttern for continue keyword | |
Additional Inherited Members | |
Protected Member Functions inherited from List2De | |
void | setNext (class List2De *p_new) |
change internal next behind its back | |
void | setPrev (class List2De *p_new) |
change internal previous behind its back | |
|
inlinevirtual |
informed that block ended
Reimplemented from bbb::RexScriptBlock.