Aegis  4.25.D505
Public Member Functions | Static Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes
rpt_value_integer Class Reference

#include <integer.h>

Inheritance diagram for rpt_value_integer:
rpt_value

Public Member Functions

virtual ~rpt_value_integer ()
long query () const

Static Public Member Functions

static rpt_value::pointer create (long value)

Protected Member Functions

rpt_value::pointer stringize_or_null () const
rpt_value::pointer booleanize_or_null () const
rpt_value::pointer realize_or_null () const
const char * name () const

Private Member Functions

 rpt_value_integer (long value)
 rpt_value_integer ()
 rpt_value_integer (const rpt_value_integer &)
rpt_value_integeroperator= (const rpt_value_integer &)

Private Attributes

long value

Detailed Description

The rpt_value_integer class is used to represent a value which is an integer (at least 32 bits, signed).

Definition at line 29 of file integer.h.


Constructor & Destructor Documentation

The destructor.

rpt_value_integer::rpt_value_integer ( long  value) [private]

The constructor. It is private on purpose, use the "create" class method nstead.

The default constructor. Do not use.

The copy constructor. Do not use.


Member Function Documentation

The booleanize_or_null method is used to convert a value to a boolean, if possible, or return NULL if it is not possible. This NULL is used by the booleanize class method to return the unchanged value if no conversion is possible.

Reimplemented from rpt_value.

static rpt_value::pointer rpt_value_integer::create ( long  value) [static]

The create class method is used to create new dynamically allocated instances of this class.

const char* rpt_value_integer::name ( ) const [protected, virtual]

The name method is used to obtain the name of the type of the value.

Implements rpt_value.

rpt_value_integer& rpt_value_integer::operator= ( const rpt_value_integer ) [private]

The assignment operator. Do not use.

long rpt_value_integer::query ( ) const

The query method may be used to obtain the value of this class.

The realize_or_null method is used to convert a value to an real, if possible, or return NULL if it is not possible. This NULL is used by the realize class method to return the unchanged value if no conversion is possible.

Reimplemented from rpt_value.

The stringize_or_null method is used to convert a value to a string, if possible, or return NULL if it is not possible. This NULL is used by the stringize class method to return the unchanged value if no conversion is possible.

Reimplemented from rpt_value.


Field Documentation

long rpt_value_integer::value [private]

The value instance variable is used to remember the value of this object.

Definition at line 75 of file integer.h.


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