yast2-core
|
YCPValueRep representing a boolean value. More...
#include <YCPBoolean.h>
Public Member Functions | |
bool | value () const |
YCPOrder | compare (const YCPBoolean &) const |
string | toString () const |
std::ostream & | toStream (std::ostream &str) const |
std::ostream & | toXml (std::ostream &str, int indent) const |
YCPValueType | valuetype () const |
![]() | |
const char * | valuetype_str () const |
bool | isVoid () const |
bool | isBoolean () const |
bool | isInteger () const |
bool | isFloat () const |
bool | isString () const |
bool | isByteblock () const |
bool | isPath () const |
bool | isSymbol () const |
bool | isList () const |
bool | isTerm () const |
bool | isMap () const |
bool | isCode () const |
bool | isBreak () const |
bool | isReturn () const |
bool | isEntry () const |
bool | isReference () const |
bool | isExternal () const |
YCPVoid | asVoid () const |
YCPBoolean | asBoolean () const |
YCPInteger | asInteger () const |
YCPFloat | asFloat () const |
YCPString | asString () const |
YCPByteblock | asByteblock () const |
YCPPath | asPath () const |
YCPSymbol | asSymbol () const |
YCPList | asList () const |
YCPTerm | asTerm () const |
YCPMap | asMap () const |
YCPCode | asCode () const |
YCPEntry | asEntry () const |
YCPReference | asReference () const |
YCPExternal | asExternal () const |
bool | equal (const YCPValue &) const |
YCPOrder | compare (const YCPValue &v, bool rl=false) const |
![]() | |
YCPValue | asValue () const |
virtual const YCPElementRep * | shallowCopy () const |
Protected Member Functions | |
YCPBooleanRep (bool v) | |
YCPBooleanRep (const char *r) | |
![]() | |
YCPElementRep () | |
virtual | ~YCPElementRep () |
Private Attributes | |
bool | v |
Friends | |
class | YCPBoolean |
|
protected |
Creates a new YCPBooleanRep of value v.
|
protected |
Creates a new YCPBooleanRep with a value given by the string representation, i.e. either "true" or "false".
YCPOrder YCPBooleanRep::compare | ( | const YCPBoolean & | b | ) | const |
Compares two YCPBooleans for equality, greaterness or smallerness.
v | value to compare against |
References YCPBoolean::falseboolean, YCPBoolean::trueboolean, v, YO_EQUAL, YO_GREATER, and YO_LESS.
|
virtual |
Output value as bytecode to stream
Implements YCPElementRep.
References v, and Bytecode::writeBool().
|
virtual |
Gives the ASCII representation of this value, i.e. "true" or "false".
Implements YCPElementRep.
References v.
|
virtual |
Implements YCPValueRep.
References v.
bool YCPBooleanRep::value | ( | ) | const |
Returns the value of this YCPBooleanRep in form of a bool value.
References v.
|
virtual |
|
friend |
Referenced by YCPBoolean::YCPBoolean().
|
private |
Referenced by compare(), toStream(), toString(), toXml(), and value().