YCPBooleanRep Class Reference

YCPValueRep representing a boolean value. More...

#include <YCPBoolean.h>

Inheritance diagram for YCPBooleanRep:

YCPValueRep YCPElementRep List of all members.

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

Detailed Description

YCPValueRep representing a boolean value.

YCP Syntax:

true | false


Constructor & Destructor Documentation

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".


Member Function Documentation

YCPOrder YCPBooleanRep::compare const YCPBoolean  )  const
 

Compares two YCPBooleans for equality, greaterness or smallerness.

Parameters:
v value to compare against
Returns:
YO_LESS, if this is false and v is true, YO_EQUAL, if this is equal to v, YO_GREATER, if this is true and v is false.

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

Output value as bytecode to stream

Implements YCPElementRep.

string YCPBooleanRep::toString  )  const [virtual]
 

Gives the ASCII representation of this value, i.e. "true" or "false".

Implements YCPElementRep.

bool YCPBooleanRep::value  )  const
 

Returns the value of this YCPBooleanRep in form of a bool value.

YCPValueType YCPBooleanRep::valuetype  )  const [virtual]
 

Returns YT_BOOLEAN. See YCPValueRep::valuetype.

Implements YCPValueRep.


Friends And Related Function Documentation

friend class YCPBoolean [friend]
 


Member Data Documentation

bool YCPBooleanRep::v [private]
 


The documentation for this class was generated from the following files:
Generated on Fri Jun 16 18:07:46 2006 for yast2-core by  doxygen 1.4.6