#include <YCode.h>
Inheritance diagram for YFunction:

Public Member Functions | |
| YFunction (YBlockPtr parameterblock, const SymbolEntryPtr entry=0) | |
| YFunction (bytecodeistream &str) | |
| ~YFunction () | |
| unsigned int | parameterCount () const |
| YBlockPtr | declaration () const |
| SymbolEntryPtr | parameter (unsigned int position) const |
| YBlockPtr | definition () const |
| void | setDefinition (YBlockPtr body) |
| void | setDefinition (bytecodeistream &str) |
| string | toStringDeclaration () const |
| string | toString () const |
| std::ostream & | toStreamDefinition (std::ostream &str) const |
| std::ostream & | toStream (std::ostream &str) const |
| virtual YCPValue | evaluate (bool cse=false) |
| constTypePtr | type () const |
Private Member Functions | |
| REP_BODY (YFunction) | |
Private Attributes | |
| YBlockPtr | m_declaration |
| YBlockPtr | m_definition |
| bool | m_is_global |
|
||||||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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. |
|
|
|
|
|
|
|
|
|
1.4.6