friend class YCP##base##
Rep;
\
public: \
YCP##name(
const YCPNull &n) : YCP##base(n) {} \
protected: \
YCP##name (
const YCP##name##
Rep *x) : YCP##base(x) {} \
YCPOrder compare(
const YCP##name x)
const { \
return (static_cast<const YCP##name##Rep*>(element))->compare(x); \
} \
string
toString ()
const {
return element->toString (); } \
std::ostream & toStream (std::ostream &
str )
const { \
return element->toStream (str); \
} \
std::ostream & toXml (std::ostream & str, int indent ) const { \
return element->toXml( str, indent ); \
YCPValueType valuetype ()
const {
return (static_cast<const YCP##name##Rep*>(element))->valuetype (); }
#define str
Definition: scanner.cc:997
#define DEF_COW_OPS(name)
Definition: YCPElement.h:93
YCPValueType
Value Type Defines constants for the Value types. The Value type specifies the class the YCPValueRep ...
Definition: YCPValue.h:36
YCPOrder
Definition: YCPValue.h:57
string toString(int d)
Definition: toString.h:38
Base class for reference counted objects.
Definition: Rep.h:46
Definition: YCPElement.h:125