ValueFactory Class Reference

#include <vm.h>

List of all members.


Detailed Description

static-only factory for Value objects

Definition at line 62 of file vm.h.


Static Public Member Functions

static PValue create ()
 create null Value
static PValue create (bool)
 create bool Value
static PValue create (int)
 create int Value
static PValue create (double)
 create double Value
static PValue create (const std::string &)
 create string Value

Private Member Functions

 ValueFactory ()

Constructor & Destructor Documentation

ValueFactory (  )  [private]


Member Function Documentation

PValue create (  )  [static]

create null Value

Definition at line 87 of file vm.cc.

References Value::V_NULL.

Referenced by FncFactory::createInputDouble(), FncFactory::createInputInt(), FncFactory::createInputString(), FncFactory::createMainDecl(), FncFactory::createPrint(), CmdFactory::createPush(), InputCmd::exec(), and BinaryCmd::exec().

Here is the caller graph for this function:

PValue create ( bool  b  )  [static]

create bool Value

Definition at line 93 of file vm.cc.

References Value::V_BOOL.

PValue create ( int  i  )  [static]

create int Value

Definition at line 100 of file vm.cc.

References Value::V_INT.

PValue create ( double  d  )  [static]

create double Value

Definition at line 107 of file vm.cc.

References Value::V_DOUBLE.

PValue create ( const std::string &  s  )  [static]

create string Value

Definition at line 114 of file vm.cc.

References Value::V_STRING.


The documentation for this class was generated from the following files:
Generated on Sat Jul 4 18:33:18 2009 for vyp08 (compiler and interpreter of VYP08 language) by  doxygen 1.5.4