#include <YStatement.h>
Inheritance diagram for YSWhile:

Public Member Functions | |
| YSWhile (YCodePtr expr, YCodePtr loop, int line=0) | |
| YSWhile (bytecodeistream &str) | |
| ~YSWhile () | |
| virtual ykind | kind () const |
| string | toString () const |
| std::ostream & | toStream (std::ostream &str) const |
| YCPValue | evaluate (bool cse=false) |
| constTypePtr | type () const |
Private Member Functions | |
| REP_BODY (YSWhile) | |
Private Attributes | |
| YCodePtr | m_condition |
| YCodePtr | m_loop |
| YSWhile::YSWhile | ( | YCodePtr | expr, | |
| YCodePtr | loop, | |||
| int | line = 0 | |||
| ) |
| YSWhile::YSWhile | ( | bytecodeistream & | str | ) |
| YSWhile::~YSWhile | ( | ) |
| YSWhile::REP_BODY | ( | YSWhile | ) | [private] |
| string YSWhile::toString | ( | ) | const [virtual] |
Returns an ASCII representation of the YCode.
Reimplemented from YStatement.
| std::ostream & YSWhile::toStream | ( | std::ostream & | str | ) | const [virtual] |
writes YCode to a stream see Bytecode for read
Reimplemented from YStatement.
| YCPValue YSWhile::evaluate | ( | bool | cse = false |
) | [virtual] |
evaluate YCode to YCPValue if debugger == 0 called for parse time evaluation (i.e. constant subexpression elimination) else called for runtime evaluation
Reimplemented from YStatement.
| constTypePtr YSWhile::type | ( | ) | const [inline, virtual] |
return type (interesting mostly for function calls)
Reimplemented from YStatement.
YCodePtr YSWhile::m_condition [private] |
YCodePtr YSWhile::m_loop [private] |
1.5.0