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

Public Member Functions | |
| YFunction (YBlockPtr parameterblock, const SymbolEntryPtr entry=0) | |
| YFunction (bytecodeistream &str) | |
| ~YFunction () | |
| virtual ykind | kind () const |
| 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 |
| YFunction::YFunction | ( | YBlockPtr | parameterblock, | |
| const SymbolEntryPtr | entry = 0 | |||
| ) |
| YFunction::YFunction | ( | bytecodeistream & | str | ) |
| YFunction::~YFunction | ( | ) |
| YFunction::REP_BODY | ( | YFunction | ) | [private] |
| unsigned int YFunction::parameterCount | ( | ) | const |
| YBlockPtr YFunction::declaration | ( | ) | const |
| SymbolEntryPtr YFunction::parameter | ( | unsigned int | position | ) | const |
| YBlockPtr YFunction::definition | ( | ) | const |
| void YFunction::setDefinition | ( | YBlockPtr | body | ) |
| void YFunction::setDefinition | ( | bytecodeistream & | str | ) |
| string YFunction::toStringDeclaration | ( | ) | const |
| string YFunction::toString | ( | ) | const [virtual] |
| std::ostream & YFunction::toStreamDefinition | ( | std::ostream & | str | ) | const |
| std::ostream & YFunction::toStream | ( | std::ostream & | str | ) | const [virtual] |
| YCPValue YFunction::evaluate | ( | bool | cse = false |
) | [virtual] |
| constTypePtr YFunction::type | ( | ) | const [virtual] |
return type (interesting mostly for function calls)
Reimplemented from YCode.
YBlockPtr YFunction::m_declaration [private] |
YBlockPtr YFunction::m_definition [private] |
bool YFunction::m_is_global [private] |
1.5.0