Public Member Functions | Static Public Member Functions | Public Attributes

IntegerPtr Class Reference

Search for all occurrences

#include <numbers.h>

List of all members.

Public Member Functions

  ENABLE_STACK_ALLOCATE (IntegerPtr)
  IntegerPtr ()
ScripterExport  IntegerPtr (INT_PTR init_val)
  classof_methods (IntegerPtr, Number)
void  collect ()
ScripterExport void  sprin1 (CharStream *s)
  def_generic (plus,"+")
  def_generic (minus,"-")
  def_generic (times,"*")
  def_generic (div,"/")
  def_generic (pwr,"^")
  def_generic (uminus,"u-")
  use_generic (eq,"=")
  use_generic (ne,"!=")
  def_generic_debug_ok (gt,">")
  def_generic_debug_ok (lt,"<")
  def_generic_debug_ok (ge,">=")
  def_generic_debug_ok (le,"<=")
  def_visible_generic_debug_ok (random,"random")
  def_visible_generic_debug_ok (abs,"abs")
  def_visible_generic_debug_ok (exp,"exp")
  def_visible_generic_debug_ok (acos,"acos")
  def_visible_generic_debug_ok (asin,"asin")
  def_visible_generic_debug_ok (atan,"atan")
  def_visible_generic_debug_ok (ceil,"ceil")
  def_visible_generic_debug_ok (cos,"cos")
  def_visible_generic_debug_ok (cosh,"cosh")
  def_visible_generic_debug_ok (floor,"floor")
  def_visible_generic_debug_ok (log,"log")
  def_visible_generic_debug_ok (log10,"log10")
  def_visible_generic_debug_ok (sin,"sin")
  def_visible_generic_debug_ok (sinh,"sinh")
  def_visible_generic_debug_ok (sqrt,"sqrt")
  def_visible_generic_debug_ok (tan,"tan")
  def_visible_generic_debug_ok (tanh,"tanh")
  def_visible_generic_debug_ok (atan2,"atan2")
  def_visible_generic_debug_ok (fmod,"mod")
  def_visible_generic_debug_ok (pow,"pow")
  def_visible_primitive (include,"include")
  def_visible_primitive_debug_ok (seed,"seed")
float  to_float ()
double  to_double ()
int  to_int ()
INT_PTR  to_intptr ()
INT64  to_int64 ()
TimeValue  to_timevalue ()
void  to_fpvalue (FPValue &v)
Value widen_to (Value *arg, Value **arg_list)
BOOL  comparable (Value *arg)
IOResult  Save (ISave *isave)

Static Public Member Functions

static ScripterExport Value intern (INT_PTR init_val)
static ScripterExport Value heap_intern (INT_PTR init_val)
static Value Load (ILoad *iload, USHORT chunkID, ValueLoader *vload)

Public Attributes

INT_PTR  value

Constructor & Destructor Documentation

IntegerPtr ( ) [inline]
{ };
ScripterExport IntegerPtr ( INT_PTR  init_val )

Member Function Documentation

ENABLE_STACK_ALLOCATE ( IntegerPtr  )
static ScripterExport Value* intern ( INT_PTR  init_val ) [inline, static]
{ return new IntegerPtr(init_val); }
static ScripterExport Value* heap_intern ( INT_PTR  init_val ) [static]
classof_methods ( IntegerPtr  ,
Number   
)
void collect ( ) [inline]
{ delete this; }
ScripterExport void sprin1 ( CharStream *  s )
def_generic ( plus  ,
"+"   
)
def_generic ( minus  ,
"-"   
)
def_generic ( times  ,
"*"   
)
def_generic ( div  ,
"/"   
)
def_generic ( pwr  ,
"^"   
)
def_generic ( uminus  ,
"u-"   
)
use_generic ( eq  )
use_generic ( ne  )
def_generic_debug_ok ( gt  ,
,
 
)
def_generic_debug_ok ( lt  )
def_generic_debug_ok ( ge  ,
">="   
)
def_generic_debug_ok ( le  ,
"<="   
)
def_visible_generic_debug_ok ( random  ,
"random"   
)
def_visible_generic_debug_ok ( abs  ,
"abs"   
)
def_visible_generic_debug_ok ( exp  ,
"exp"   
)
def_visible_generic_debug_ok ( acos  ,
"acos"   
)
def_visible_generic_debug_ok ( asin  ,
"asin"   
)
def_visible_generic_debug_ok ( atan  ,
"atan"   
)
def_visible_generic_debug_ok ( ceil  ,
"ceil"   
)
def_visible_generic_debug_ok ( cos  ,
"cos"   
)
def_visible_generic_debug_ok ( cosh  ,
"cosh"   
)
def_visible_generic_debug_ok ( floor  ,
"floor"   
)
def_visible_generic_debug_ok ( log  ,
"log"   
)
def_visible_generic_debug_ok ( log10  ,
"log10"   
)
def_visible_generic_debug_ok ( sin  ,
"sin"   
)
def_visible_generic_debug_ok ( sinh  ,
"sinh"   
)
def_visible_generic_debug_ok ( sqrt  ,
"sqrt"   
)
def_visible_generic_debug_ok ( tan  ,
"tan"   
)
def_visible_generic_debug_ok ( tanh  ,
"tanh"   
)
def_visible_generic_debug_ok ( atan2  ,
"atan2"   
)
def_visible_generic_debug_ok ( fmod  ,
"mod"   
)
def_visible_generic_debug_ok ( pow  ,
"pow"   
)
def_visible_primitive ( include  ,
"include"   
)
def_visible_primitive_debug_ok ( seed  ,
"seed"   
)
float to_float ( ) [inline]
{ return static_cast<float>(value); }
double to_double ( ) [inline]
{ return static_cast<double>(value); }
int to_int ( ) [inline]
{ return static_cast<int>(value); }
INT_PTR to_intptr ( ) [inline]
INT64 to_int64 ( ) [inline]
{ return static_cast<INT64>(value); }
TimeValue to_timevalue ( ) [inline]
{ return (TimeValue)(value * GetTicksPerFrame()); }
void to_fpvalue ( FPValue v ) [inline]
{ v.intptr = to_intptr(); v.type = (ParamType2)TYPE_INTPTR; }
Value* widen_to ( Value arg,
Value **  arg_list 
)
BOOL comparable ( Value arg ) [inline]
{ return (is_number(arg) || is_time(arg)); }
IOResult Save ( ISave isave )
static Value* Load ( ILoad iload,
USHORT  chunkID,
ValueLoader vload 
) [static]

Member Data Documentation

INT_PTR value

IntegerPtr IntegerPtr IntegerPtr IntegerPtr IntegerPtr IntegerPtr IntegerPtr IntegerPtr IntegerPtr IntegerPtr
IntegerPtr IntegerPtr IntegerPtr IntegerPtr IntegerPtr IntegerPtr IntegerPtr IntegerPtr IntegerPtr IntegerPtr