Siena Fast Forwarding Documentation (v. 1.9.4)

siena::value Class Reference

interface of a generic value in the Siena data model. More...

#include <types.h>

Inheritance diagram for siena::value:
siena::attribute siena::constraint siena::message::iterator siena::filter::iterator

List of all members.

Public Member Functions

virtual ~value ()
 virtual destructor
virtual type_id type () const =0
 returns the actual type identifier of this value.
virtual int_t int_value () const =0
 returns this value as an integer.
virtual string_t string_value () const =0
 returns this value as a string.
virtual bool_t bool_value () const =0
 returns this value as a boolean.
virtual double_t double_value () const =0
 returns this value as a double.

Detailed Description

interface of a generic value in the Siena data model.

A value is a typed value.


Member Function Documentation

virtual bool_t siena::value::bool_value (  )  const [pure virtual]

returns this value as a boolean.

This method returns this value as a boolean if the actual type (returned by type()) is bool_id. The result is undefined if the actual type is not bool_id.

Examples:
message_iteration.cc.
virtual double_t siena::value::double_value (  )  const [pure virtual]

returns this value as a double.

This method returns this value as a boolean if the actual type (returned by type()) is double_id. The result is undefined if the actual type is not double_id.

Examples:
message_iteration.cc.
virtual int_t siena::value::int_value (  )  const [pure virtual]

returns this value as an integer.

This method returns this value as an integer if the actual type (returned by type()) is int_id. The result is undefined if the actual type is not int_id.

Examples:
message_iteration.cc.
virtual string_t siena::value::string_value (  )  const [pure virtual]

returns this value as a string.

This method returns this value as a string if the actual type (returned by type()) is type_id::string_t. The result is undefined if the actual type is not string_t.

Examples:
message_iteration.cc.
virtual type_id siena::value::type (  )  const [pure virtual]

returns the actual type identifier of this value.

See also:
see type_id.
Examples:
message_iteration.cc.

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