The Gnome Chemistry Utils  0.14.0
Public Member Functions | List of all members
gcu::SimpleValue Class Reference

#include <gcu/value.h>

Inheritance diagram for gcu::SimpleValue:
gcu::Value

Public Member Functions

 SimpleValue ()
 SimpleValue (GcuValue value)
virtual ~SimpleValue ()
char const * GetAsString () const
double GetAsDouble () const
GcuValue const GetValue ()
SimpleValue operator+ (SimpleValue const &value) const
SimpleValue operator* (int n) const
- Public Member Functions inherited from gcu::Value
 Value ()
virtual ~Value ()

Detailed Description

Used to store adimensional data.

Definition at line 65 of file value.h.

Constructor & Destructor Documentation

gcu::SimpleValue::SimpleValue ( )

Default constructor

gcu::SimpleValue::SimpleValue ( GcuValue  value)
Parameters
valuea GcuValue to embed.

Constructs a SimpleValue value.

virtual gcu::SimpleValue::~SimpleValue ( )
virtual

Default destructor

Member Function Documentation

double gcu::SimpleValue::GetAsDouble ( ) const
virtual
Returns
the embedded value.

Reimplemented from gcu::Value.

char const* gcu::SimpleValue::GetAsString ( ) const
virtual
Returns
the literal representation of the embedded adimensional data

Reimplemented from gcu::Value.

GcuValue const gcu::SimpleValue::GetValue ( )
inline
Returns
the embedded GcuValue structure.

Definition at line 96 of file value.h.

SimpleValue gcu::SimpleValue::operator* ( int  n) const
Parameters
nthe number used to multiply.

Multiplies this by n.

Returns
the result of the multiplication.
SimpleValue gcu::SimpleValue::operator+ ( SimpleValue const &  value) const
Parameters
valuethe value to add.

Adds two values.

Returns
the result of the addition.

The documentation for this class was generated from the following file: