KrisLibrary  1.0.0
Public Types | Public Member Functions | Public Attributes | List of all members
PrimitiveValue Class Reference

A basic primitive value type, including integers, floats, and strings. More...

#include <PrimitiveValue.h>

Public Types

enum  { None, Integer, Double, String }
 

Public Member Functions

 PrimitiveValue (int i)
 
 PrimitiveValue (double v)
 
 PrimitiveValue (const string &str)
 
bool HasType (int _type) const
 
bool CanCast (int _type) const
 
bool IsNumeric () const
 
 operator const int & () const
 
 operator int & ()
 
 operator const double & () const
 
 operator double & ()
 
 operator const string & () const
 
 operator string & ()
 
int AsInteger () const
 
double AsDouble () const
 
string AsString () const
 
bool operator== (int v) const
 
bool operator== (double v) const
 
bool operator== (const string &v) const
 
bool operator== (const PrimitiveValue &v) const
 
bool operator< (int v) const
 
bool operator< (double v) const
 
bool operator< (const string &v) const
 
bool operator< (const PrimitiveValue &v) const
 
bool operator<= (int v) const
 
bool operator<= (double v) const
 
bool operator<= (const string &v) const
 
bool operator<= (const PrimitiveValue &v) const
 

Public Attributes

int type
 
string sValue
 
double dValue
 
int iValue
 

Detailed Description

A basic primitive value type, including integers, floats, and strings.


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