ScummVM API documentation
Director::Datum Struct Reference

Public Member Functions

 Datum (const Datum &d)
 
Datumoperator= (const Datum &d)
 
 Datum (int val)
 
 Datum (double val)
 
 Datum (const Common::String &val)
 
 Datum (AbstractObject *val)
 
 Datum (const CastMemberID &val)
 
 Datum (const Common::Point &point)
 
 Datum (const Common::Rect &rect)
 
void reset ()
 
Datum eval () const
 
double asFloat () const
 
int asInt () const
 
Common::String asString (bool printonly=false) const
 
CastMemberID asMemberID (CastType castType=kCastTypeAny, int castLib=0) const
 
Common::Point asPoint () const
 
Datum clone () const
 
bool isRef () const
 
bool isVarRef () const
 
bool isCastRef () const
 
bool isArray () const
 
bool isNumeric () const
 
const char * type2str (bool ilk=false) const
 
int equalTo (Datum &d, bool ignoreCase=false) const
 
uint32 compareTo (Datum &d) const
 
bool operator== (Datum &d) const
 
bool operator> (Datum &d) const
 
bool operator< (Datum &d) const
 
bool operator>= (Datum &d) const
 
bool operator<= (Datum &d) const
 

Public Attributes

DatumType type
 
union {
   int   i
 
   double   f
 
   Common::String *   s
 
   FArray *   farr
 
   PArray *   parr
 
   AbstractObject *   obj
 
   ChunkReference *   cref
 
   CastMemberID *   cast
 
   MenuReference *   menu
 
   PictureReference *   picture
 
u
 
int * refCount
 
bool ignoreGlobal
 

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