YECall Class Reference

#include <YExpression.h>

Inheritance diagram for YECall:

YCode YEFunction YEFunctionPointer List of all members.

Public Member Functions

 YECall (TableEntry *entry)
 YECall (bytecodeistream &str)
 ~YECall ()
const SymbolEntryPtr entry () const
constTypePtr attachParameter (YCodePtr code, constTypePtr type)
virtual constTypePtr finalize ()
string toString () const
std::ostream & toStream (std::ostream &str) const
constTypePtr type () const
string qualifiedName () const

Static Public Member Functions

static YECallPtr readCall (bytecodeistream &str)

Protected Attributes

TableEntrym_entry
SymbolEntryPtr m_sentry
YCodePtr * m_parameters
constTypePtr * m_parameter_types
Y2Functionm_functioncall
uint m_next_param_id

Private Member Functions

 REP_BODY (YECall)

Constructor & Destructor Documentation

YECall::YECall ( TableEntry entry  ) 

YECall::YECall ( bytecodeistream str  ) 

YECall::~YECall (  ) 


Member Function Documentation

YECall::REP_BODY ( YECall   )  [private]

const SymbolEntryPtr YECall::entry (  )  const

constTypePtr YECall::attachParameter ( YCodePtr  code,
constTypePtr  type 
)

Attach parameter to external function call

Parameters:
code,: parameter code
type,: parameter type
Returns:
NULL if success, != NULL (expected type) if wrong parameter type Type::Unspec if bad code (NULL or isError) Type::Error if excessive parameter

constTypePtr YECall::finalize (  )  [virtual]

'close' function, perform final parameter check if ok, return 0 if missing parameter, return its type if undefined, return Type::Error (wrong type was already reported in attachParameter()

Reimplemented in YEFunction.

string YECall::toString (  )  const [virtual]

Returns an ASCII representation of the YCode.

Reimplemented from YCode.

std::ostream & YECall::toStream ( std::ostream &  str  )  const [virtual]

writes YCode to a stream see Bytecode for read

Implements YCode.

constTypePtr YECall::type (  )  const [virtual]

return type (interesting mostly for function calls)

Reimplemented from YCode.

string YECall::qualifiedName (  )  const

YECallPtr YECall::readCall ( bytecodeistream str  )  [static]

A static method to read YEFunction for function pointers and convert it to YEFunctionPointer implementation. This is needed for backward compatibility with SLES9/9.1

Parameters:
str the input bytecode stream
Returns:
read YCode or 0 on errors


Member Data Documentation

TableEntry* YECall::m_entry [protected]

SymbolEntryPtr YECall::m_sentry [protected]

YCodePtr* YECall::m_parameters [protected]

constTypePtr* YECall::m_parameter_types [protected]

Y2Function* YECall::m_functioncall [protected]

uint YECall::m_next_param_id [protected]


The documentation for this class was generated from the following files:
Generated on Tue Nov 6 01:20:23 2007 for yast2-core by  doxygen 1.5.0