YCPCodeRep Class Reference

Wrapper for YCode as YCPValue. More...

#include <YCPCode.h>

Inheritance diagram for YCPCodeRep:

YCPValueRep YCPElementRep List of all members.

Public Member Functions

YCodePtr code () const
YCPOrder compare (const YCPCode &v) const
string toString () const
std::ostream & toStream (std::ostream &str) const
YCPValueType valuetype () const
YCPValue evaluate (bool cse=false) const

Protected Member Functions

 YCPCodeRep ()
 YCPCodeRep (YCodePtr c)
 ~YCPCodeRep ()

Private Attributes

YCodePtr m_code

Friends

class YCPCode

Detailed Description

Wrapper for YCode as YCPValue.


Constructor & Destructor Documentation

YCPCodeRep::YCPCodeRep (  )  [protected]

Constructor

YCPCodeRep::YCPCodeRep ( YCodePtr  c  )  [protected]

YCPCodeRep::~YCPCodeRep (  )  [protected]

Cleans up.


Member Function Documentation

YCodePtr YCPCodeRep::code (  )  const

YCPOrder YCPCodeRep::compare ( const YCPCode v  )  const

Compares two YCodes for equality, greaterness or smallerness.

string YCPCodeRep::toString (  )  const [virtual]

Returns an ASCII representation of the YCode.

Implements YCPElementRep.

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

Output value as bytecode to stream

Implements YCPElementRep.

YCPValueType YCPCodeRep::valuetype (  )  const [virtual]

Returns YT_CODE. See YCPValueRep::type.

Implements YCPValueRep.

YCPValue YCPCodeRep::evaluate ( bool  cse = false  )  const

Evaluates the code.


Friends And Related Function Documentation

friend class YCPCode [friend]


Member Data Documentation

YCodePtr YCPCodeRep::m_code [private]


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