BoolValue Class Reference

This class represents a boolean value. More...

#include <value.h>

Inheritance diagram for BoolValue:

Value List of all members.

Public Member Functions

 BoolValue ()
 Default constructor.
 BoolValue (bool b)
 Construct a BoolValue with the given value.
virtual ~BoolValue ()
 Destructor is declared virtual, as it always should be.
ValueType GetType () const
 Return this instance's type.
virtual bool AsBool () const
 Gets the value as a bool.

Detailed Description

This class represents a boolean value.

Author:
Matthew Welch


Constructor & Destructor Documentation

BoolValue::BoolValue (  )  [inline]

Default constructor.

BoolValue::BoolValue ( bool  b  )  [inline]

Construct a BoolValue with the given value.

Parameters:
b Truth value to assign to this BoolValue.

virtual BoolValue::~BoolValue (  )  [inline, virtual]

Destructor is declared virtual, as it always should be.


Member Function Documentation

ValueType BoolValue::GetType (  )  const [inline, virtual]

Return this instance's type.

Returns:
ValueType enum of this intance's type.

Implements Value.

virtual bool BoolValue::AsBool (  )  const [inline, virtual]

Gets the value as a bool.

Reimplemented from Value.


The documentation for this class was generated from the following file:
Generated on Wed Apr 18 15:50:11 2007 for JSON Parser by  doxygen 1.5.2