Berkelium

Berkelium::Script::Variant Class Reference

#include <ScriptVariant.hpp>

List of all members.

Public Types

enum  Type {
  JSSTRING, JSDOUBLE, JSBOOLEAN, JSNULL,
  JSEMPTYOBJECT, JSEMPTYARRAY, JSBINDFUNC, JSBINDSYNCFUNC
}

Public Member Functions

 Variant (const char *str)
 Variant (const wchar_t *str)
 Variant (WideString str)
 Variant (double dblval)
 Variant (int intval)
 Variant (bool boolval)
 Variant ()
 Variant (const Variant &other)
Variantoperator= (const Variant &other)
bool toBoolean () const
int toInteger () const
double toDouble () const
WideString toString () const
WideString toFunctionName () const
Type type () const
 ~Variant ()

Static Public Member Functions

static Variant emptyArray ()
static Variant emptyObject ()
static Variant bindFunction (WideString name, bool synchronous)

Member Enumeration Documentation

Enumerator:
JSSTRING 
JSDOUBLE 
JSBOOLEAN 
JSNULL 
JSEMPTYOBJECT 
JSEMPTYARRAY 
JSBINDFUNC 
JSBINDSYNCFUNC 

Constructor & Destructor Documentation

Berkelium::Script::Variant::Variant ( const char *  str  ) 
Berkelium::Script::Variant::Variant ( const wchar_t *  str  ) 
Berkelium::Script::Variant::Variant ( WideString  str  ) 
Berkelium::Script::Variant::Variant ( double  dblval  )  [inline]
Berkelium::Script::Variant::Variant ( int  intval  )  [inline]
Berkelium::Script::Variant::Variant ( bool  boolval  )  [inline]
Berkelium::Script::Variant::Variant (  )  [inline]
Berkelium::Script::Variant::Variant ( const Variant other  ) 
Berkelium::Script::Variant::~Variant (  ) 

Member Function Documentation

static Variant Berkelium::Script::Variant::bindFunction ( WideString  name,
bool  synchronous 
) [inline, static]
static Variant Berkelium::Script::Variant::emptyArray (  )  [static]
static Variant Berkelium::Script::Variant::emptyObject (  )  [static]
Variant& Berkelium::Script::Variant::operator= ( const Variant other  ) 
bool Berkelium::Script::Variant::toBoolean (  )  const [inline]
double Berkelium::Script::Variant::toDouble (  )  const [inline]
WideString Berkelium::Script::Variant::toFunctionName (  )  const [inline]
int Berkelium::Script::Variant::toInteger (  )  const [inline]
WideString Berkelium::Script::Variant::toString (  )  const [inline]
Type Berkelium::Script::Variant::type (  )  const [inline]

Member Data Documentation


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

Documentation generated on 22 Nov 2013