#include <YExpression.h>
Inheritance diagram for YEBuiltin:

Public Member Functions | |
| YEBuiltin (declaration_t *decl, YBlockPtr parameterblock=0, constTypePtr type=0) | |
| YEBuiltin (bytecodeistream &str) | |
| ~YEBuiltin () | |
| virtual ykind | kind () const |
| declaration_t * | decl () const |
| constTypePtr | finalize (Logger *problem_logger) |
| void | closeParameters () |
| constTypePtr | attachParameter (YCodePtr code, constTypePtr type=Type::Unspec) |
| constTypePtr | attachSymVariable (const char *name, constTypePtr type, unsigned int line, TableEntry *&tentry) |
| string | toString () const |
| YCPValue | evaluate (bool cse=false) |
| std::ostream & | toStream (std::ostream &str) const |
| constTypePtr | type () const |
| constTypePtr | completeType () const |
| YBlockPtr | parameterBlock () const |
Private Member Functions | |
| REP_BODY (YEBuiltin) | |
Private Attributes | |
| declaration_t * | m_decl |
| constFunctionTypePtr | m_type |
| YBlockPtr | m_parameterblock |
| ycodelist_t * | m_parameters |
| YEBuiltin::YEBuiltin | ( | declaration_t * | decl, | |
| YBlockPtr | parameterblock = 0, |
|||
| constTypePtr | type = 0 | |||
| ) |
| YEBuiltin::YEBuiltin | ( | bytecodeistream & | str | ) |
| YEBuiltin::~YEBuiltin | ( | ) |
| YEBuiltin::REP_BODY | ( | YEBuiltin | ) | [private] |
| declaration_t * YEBuiltin::decl | ( | ) | const |
| constTypePtr YEBuiltin::finalize | ( | Logger * | problem_logger | ) |
'close' function, perform final parameter check if ok, return 0 if wrong signature (wrong parameter count, template mismatch) return expected signature if undefined, return Type::Error (wrong type was already reported in attachParameter())
| void YEBuiltin::closeParameters | ( | ) |
| constTypePtr YEBuiltin::attachParameter | ( | YCodePtr | code, | |
| constTypePtr | type = Type::Unspec | |||
| ) |
Attach parameter to external function call
| code,: | parameter code | |
| type,: | parameter type |
| constTypePtr YEBuiltin::attachSymVariable | ( | const char * | name, | |
| constTypePtr | type, | |||
| unsigned int | line, | |||
| TableEntry *& | tentry | |||
| ) |
| string YEBuiltin::toString | ( | ) | const [virtual] |
| YCPValue YEBuiltin::evaluate | ( | bool | cse = false |
) | [virtual] |
| std::ostream & YEBuiltin::toStream | ( | std::ostream & | str | ) | const [virtual] |
| constTypePtr YEBuiltin::type | ( | ) | const [virtual] |
return type (interesting mostly for function calls)
Reimplemented from YCode.
| constTypePtr YEBuiltin::completeType | ( | ) | const |
| YBlockPtr YEBuiltin::parameterBlock | ( | ) | const |
declaration_t* YEBuiltin::m_decl [private] |
constFunctionTypePtr YEBuiltin::m_type [private] |
YBlockPtr YEBuiltin::m_parameterblock [private] |
ycodelist_t* YEBuiltin::m_parameters [private] |
1.5.0