#include <enum.h>
Public Member Functions | |
virtual | ~rpt_value_enumeration () |
int | query () const |
Static Public Member Functions | |
static rpt_value::pointer | create (int ival, const nstring &sval) |
static rpt_value::pointer | create (int ival, const char *sval) |
Protected Member Functions | |
rpt_value::pointer | integerize_or_null () const |
const char * | name () const |
rpt_value::pointer | stringize_or_null () const |
rpt_value::pointer | arithmetic_or_null () const |
rpt_value::pointer | booleanize_or_null () const |
rpt_value::pointer | realize_or_null () const |
Private Member Functions | |
rpt_value_enumeration (int ival, const nstring &sval) | |
rpt_value_enumeration () | |
rpt_value_enumeration (const rpt_value_enumeration &) | |
rpt_value_enumeration & | operator= (const rpt_value_enumeration &) |
Private Attributes | |
int | ival |
nstring | sval |
Definition at line 31 of file enum.h.
virtual rpt_value_enumeration::~rpt_value_enumeration | ( | ) | [virtual] |
The destructor.
rpt_value_enumeration::rpt_value_enumeration | ( | int | ival, | |
const nstring & | sval | |||
) | [private] |
The constructor. It is private on purpose, use the "create" class method nstead.
rpt_value_enumeration::rpt_value_enumeration | ( | ) | [private] |
The default constructor. Do not use.
rpt_value_enumeration::rpt_value_enumeration | ( | const rpt_value_enumeration & | ) | [private] |
The copy constructor. Do not use.
static rpt_value::pointer rpt_value_enumeration::create | ( | int | ival, | |
const nstring & | sval | |||
) | [static] |
The create class method is used to create new dynamically allocated instances of this class.
static rpt_value::pointer rpt_value_enumeration::create | ( | int | ival, | |
const char * | sval | |||
) | [static] |
The create class method is used to create new dynamically allocated instances of this class.
int rpt_value_enumeration::query | ( | ) | const |
The query method may be used to obtain the value of this class.
rpt_value::pointer rpt_value_enumeration::integerize_or_null | ( | ) | const [protected, virtual] |
The integerize_or_null method is used to convert a value to an integer, if possible, or return NULL if it is not possible. This NULL is used by the integerize class method to return the unchanged value if no conversion is possible.
Reimplemented from rpt_value.
const char* rpt_value_enumeration::name | ( | ) | const [protected, virtual] |
The name method is used to obtain the name of the type of the value.
Implements rpt_value.
rpt_value::pointer rpt_value_enumeration::stringize_or_null | ( | ) | const [protected, virtual] |
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.
rpt_value::pointer rpt_value_enumeration::arithmetic_or_null | ( | ) | const [protected, virtual] |
The arithmetic_or_null method is used to convert a value to an arithmetic type (real or integer), if possible, or return NULL if it is not possible. This NULL is used by the integerize class method to return the unchanged value if no conversion is possible.
Reimplemented from rpt_value.
rpt_value::pointer rpt_value_enumeration::booleanize_or_null | ( | ) | const [protected, virtual] |
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.
rpt_value::pointer rpt_value_enumeration::realize_or_null | ( | ) | const [protected, virtual] |
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.
rpt_value_enumeration& rpt_value_enumeration::operator= | ( | const rpt_value_enumeration & | ) | [private] |
The assignment operator. Do not use.
int rpt_value_enumeration::ival [private] |
nstring rpt_value_enumeration::sval [private] |