Public Member Functions | Static Public Member Functions | Public Attributes

Integer Class Reference

This reference page is linked to from the following overview topics: MAXScript Values.


Search for all occurrences

#include <numbers.h>

List of all members.

Public Member Functions

  ENABLE_STACK_ALLOCATE (Integer)
  Integer ()
ScripterExport  Integer (int init_val)
  classof_methods (Integer, 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 init_val)
static ScripterExport Value heap_intern (int init_val)
static Value Load (ILoad *iload, USHORT chunkID, ValueLoader *vload)

Public Attributes

int  value

Constructor & Destructor Documentation

Integer ( ) [inline]
{ };
ScripterExport Integer ( int  init_val )

Member Function Documentation

ENABLE_STACK_ALLOCATE ( Integer  )
static ScripterExport Value* intern ( int  init_val ) [inline, static]
{ return new Integer (init_val); }  // hey!! no longer interns, stack alloc'd instead
static ScripterExport Value* heap_intern ( int  init_val ) [static]
classof_methods ( Integer  ,
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]
INT_PTR to_intptr ( ) [inline]
{ return static_cast<INT_PTR>(value); }
INT64 to_int64 ( ) [inline]
{ return static_cast<INT64>(value); }
TimeValue to_timevalue ( ) [inline]
{ return (TimeValue)(value * GetTicksPerFrame()); }  // numbers used as times are in frames
void to_fpvalue ( FPValue v ) [inline]
{ v.i = to_int(); v.type = (ParamType2)TYPE_INT; }
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 value

Integer Integer Integer Integer Integer Integer Integer Integer Integer Integer
Integer Integer Integer Integer Integer Integer Integer Integer Integer Integer