YEFunctionPointer Class Reference

#include <YExpression.h>

Inheritance diagram for YEFunctionPointer:
YECall YCode Rep

List of all members.

Public Member Functions

 YEFunctionPointer (TableEntry *entry)
 YEFunctionPointer (bytecodeistream &str)
virtual ykind kind () const
virtual YCPValue evaluate (bool cse=false)

Private Member Functions

 REP_BODY (YEFunctionPointer)

Constructor & Destructor Documentation

YEFunctionPointer::YEFunctionPointer ( TableEntry entry  ) 

References TableEntry::sentry(), and y2debug.

YEFunctionPointer::YEFunctionPointer ( bytecodeistream str  ) 

Member Function Documentation

YCPValue YEFunctionPointer::evaluate ( bool  cse = false  )  [virtual]

Execute YCP code to get the resulting YCPValue. Every inherited class of YCode should reimplement this method.

Returns:
YCPValue after executing the code
Parameters:
cse should the evaluation be done for parse time evaluation (i.e. constant subexpression elimination)

Reimplemented from YCode.

References Y2Function::attachParameter(), Y2Namespace::createFunctionCall(), ee, Y2Function::evaluateCall(), ExecutionEnvironment::filename(), YCPElement::isNull(), ExecutionEnvironment::linenumber(), YECall::m_functioncall, YECall::m_next_param_id, YECall::m_parameters, YECall::m_sentry, YECall::qualifiedName(), Y2Function::reset(), ExecutionEnvironment::setFilename(), ExecutionEnvironment::setLinenumber(), YECall::toString(), y2debug, y2internal, and ycp2error.

virtual ykind YEFunctionPointer::kind (  )  const [inline, virtual]

Kind of this YCode. This method must be reimplemented in the inherited classes.

Returns:
the YCode kind

Implements YCode.

References YCode::yeFunctionPointer.

YEFunctionPointer::REP_BODY ( YEFunctionPointer   )  [private]

The documentation for this class was generated from the following files:

Generated on a sunny day for yast2-core by doxygen 1.6.3