YEMap Class Reference

#include <YExpression.h>

Inheritance diagram for YEMap:

YCode Rep

List of all members.

Public Member Functions

 YEMap (YCodePtr key, YCodePtr value)
 YEMap (bytecodeistream &str)
 ~YEMap ()
virtual ykind kind () const
void attach (YCodePtr key, YCodePtr value)
string toString () const
YCPValue evaluate (bool cse=false)
std::ostream & toStream (std::ostream &str) const
std::ostream & toXml (std::ostream &str, int indent) const
constTypePtr type () const

Private Types

typedef struct YEMap::mapval mapval_t

Private Member Functions

 REP_BODY (YEMap)

Private Attributes

mapval_tm_first

Classes

struct  mapval


Member Typedef Documentation

typedef struct YEMap::mapval YEMap::mapval_t [private]


Constructor & Destructor Documentation

YEMap::YEMap ( YCodePtr  key,
YCodePtr  value 
)

References attach().

YEMap::YEMap ( bytecodeistream str  ) 

YEMap::~YEMap (  ) 

References m_first, and YEMap::mapval::next.


Member Function Documentation

YEMap::REP_BODY ( YEMap   )  [private]

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

Returns the YCode kind

Implements YCode.

References YCode::yeMap.

void YEMap::attach ( YCodePtr  key,
YCodePtr  value 
)

string YEMap::toString ( void   )  const [virtual]

Returns an ASCII representation of the YCode.

Reimplemented from YCode.

References YEMap::mapval::key, m_first, YEMap::mapval::next, YEMap::mapval::value, and y2debug.

Referenced by evaluate().

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

evaluate YCode to YCPValue if debugger == 0 called for parse time evaluation (i.e. constant subexpression elimination) else called for runtime evaluation

Reimplemented from YCode.

References YCPMap::add(), YCPElement::isNull(), YEMap::mapval::key, m_first, YEMap::mapval::next, toString(), YEMap::mapval::value, y2debug, and ycp2error.

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

std::ostream & YEMap::toXml ( std::ostream &  str,
int  indent 
) const [virtual]

constTypePtr YEMap::type (  )  const [virtual]

return type (interesting mostly for function calls)

Reimplemented from YCode.

References YEMap::mapval::key, m_first, YEMap::mapval::next, and YEMap::mapval::value.


Member Data Documentation


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

Generated on Fri Jun 6 23:42:13 2008 for yast2-core by  doxygen 1.5.5