University of Sheffield   

    The Simons
    Component Library

Introduction   Class Hierarchy   Class Listing   Index of Classes   Index of Methods   Header Files  

Value Class Reference

#include <Value.h>

Inheritance diagram for Value:

Object BooleanBox CharacterBox DecimalBox IntegerBox NaturalBox List of all members.

Detailed Description

Value: the superclass of all boxed-up basic values.

The Value class is the root of the value hierarchy, which includes BooleanBox, CharacterBox, NaturalBox, IntegerBox and DecimalBox. Each of these wraps up one of the basic value types: Boolean, Character, Natural, Integer and Decimal, when these need to be treated like an Object. The Value class allows these to be recognised as a special group for input and output.


Public Member Functions

 Value ()
 Construct a default value.

virtual ~Value ()
 Release a Value. Forget my basic value.


Protected Member Functions

 Value (const Value &)
 Copy a Value.


Constructor & Destructor Documentation

Value::Value const Value &  other  )  [inline, protected]
 

Copy a Value.

Copy my basic value.

Parameters:
other - the other Value to copy.
Returns:
a Value, a true copy.

Value::Value  )  [inline]
 

Construct a default value.

Initialise my basic value to the default value for my type, such as zero or false.

Returns:
an empty value.

Value::~Value  )  [inline, virtual]
 

Release a Value. Forget my basic value.


The documentation for this class was generated from the following file:
Generated on Fri May 5 17:17:20 2006 for The Simons Component Library by doxygen1.3