Main Page | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members | Examples

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

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.

YCPValue YCPCodeRep::evaluate bool  cse = false  )  const
 

Evaluates the code.

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

Output value as bytecode to stream

Implements YCPElementRep.

string YCPCodeRep::toString  )  const [virtual]
 

Returns an ASCII representation of the YCode.

Implements YCPElementRep.

YCPValueType YCPCodeRep::valuetype  )  const [virtual]
 

Returns YT_CODE. See YCPValueRep::type.

Implements YCPValueRep.


Member Data Documentation

YCodePtr YCPCodeRep::m_code [private]
 


The documentation for this class was generated from the following files:
Generated on Fri Nov 9 18:15:25 2007 for yast2-core by doxygen 1.3.6