Main Page   Class Hierarchy   Alphabetical List   Compound List   Compound Members  

util::Boolean Class Reference

#include <Boolean.h>

Inheritance diagram for util::Boolean:

util::PrimitiveType util::Computable util::Object List of all members.

Detailed Description

Boolean is a wrapper class for the primitive type bool.

It can be used as a class replacement for boolean values.

Public Methods

 Boolean (bool b=false)
 Create a new boolean with the given truth value.

 operator bool () const throw (ComputationException&)
 Cast to a primitive value.

SmartPtr< Computablecomplement () const throw (ComputationException&)
 Return a Boolean object that represents the complement of this value.

bool boolValue () const
 Get the truth value.

std::string toString () const
 Convert to string.

Objectclone () const throw (NotCloneableException&)
 Clone a Boolean object.

Member Function Documentation

std::string util::Boolean::toString   const [inline, virtual]

Convert to string.

"true" or "false"

Reimplemented from util::Object.

The documentation for this class was generated from the following file:
Documentation generated on 11.09.2003 with Doxygen.
The documentation is copyrighted material.
Copyright © Topi Mäenpää 2003. All rights reserved.