#include <YCPBoolean.h>
Inheritance diagram for YCPBooleanRep:

Public Member Functions | |
| bool | value () const |
| YCPOrder | compare (const YCPBoolean &) const |
| string | toString () const |
| std::ostream & | toStream (std::ostream &str) const |
| YCPValueType | valuetype () const |
Protected Member Functions | |
| YCPBooleanRep (bool v) | |
| YCPBooleanRep (const char *r) | |
Private Attributes | |
| bool | v |
Friends | |
| class | YCPBoolean |
YCP Syntax:
true | false
| YCPBooleanRep::YCPBooleanRep | ( | bool | v | ) | [protected] |
Creates a new YCPBooleanRep of value v.
| YCPBooleanRep::YCPBooleanRep | ( | const char * | r | ) | [protected] |
Creates a new YCPBooleanRep with a value given by the string representation, i.e. either "true" or "false".
| bool YCPBooleanRep::value | ( | ) | const |
Returns the value of this YCPBooleanRep in form of a bool value.
| YCPOrder YCPBooleanRep::compare | ( | const YCPBoolean & | ) | const |
Compares two YCPBooleans for equality, greaterness or smallerness.
| v | value to compare against |
| string YCPBooleanRep::toString | ( | ) | const [virtual] |
Gives the ASCII representation of this value, i.e. "true" or "false".
Implements YCPElementRep.
| std::ostream & YCPBooleanRep::toStream | ( | std::ostream & | str | ) | const [virtual] |
Output value as bytecode to stream
Implements YCPElementRep.
| YCPValueType YCPBooleanRep::valuetype | ( | ) | const [virtual] |
Returns YT_BOOLEAN. See YCPValueRep::valuetype.
Implements YCPValueRep.
friend class YCPBoolean [friend] |
bool YCPBooleanRep::v [private] |
1.5.0