#include <YExpression.h>
Inheritance diagram for YEPropagate:
Public Member Functions | |
YEPropagate (YCodePtr value, constTypePtr from, constTypePtr to) | |
YEPropagate (bytecodeistream &str) | |
~YEPropagate () | |
string | toString () const |
bool | canPropagate (const YCPValue &value, constTypePtr to_type) const |
YCPValue | evaluate (bool cse=false) |
std::ostream & | toStream (std::ostream &str) const |
constTypePtr | type () const |
Private Member Functions | |
REP_BODY (YEPropagate) | |
Private Attributes | |
constTypePtr | m_from |
constTypePtr | m_to |
YCodePtr | m_value |
|
lookup (map m, any k, any default) -> any Looks up the value matching to given key Example: lookup ($[1:"a", 2:"bc"], 371, "take this") -> "take this"
Type mismatch, returns default: lookup ($[1:"a", 2:"bc"], 1, true) -> true |
|
|
|
|
|
|
|
evaluate YCode to YCPValue if debugger == 0 called for parse time evaluation (i.e. constant subexpression elimination) else called for runtime evaluation Reimplemented from YCode. |
|
|
|
writes YCode to a stream see Bytecode for read Implements YCode. |
|
Returns an ASCII representation of the YCode. Reimplemented from YCode. |
|
return type (interesting mostly for function calls) Reimplemented from YCode. |
|
|
|
|
|
|