quick start:g++ [flags ...] file ... -l /isip/tools/lib/$ISIP_BINARY/lib_math_scalar.a #include <Ushort.h> Ushort(ushort arg = DEF_VALUE); Ushort(const Ushort& arg);
description:Ushort val0; val0 = 5; Ushort val1(3); Ushort val2; val2 = val0.exp10(2) + val1.factorial(); Ushort val3; val3.rand(1, 100);
static const String CLASS_NAME = L"Ushort";
static const long ERR = 20400;
static MemoryManager mgr_d;
static const String& name();
static boolean diagnose(Integral::DEBUG debug_level);
setDebug is inherited from the MScalar template class
boolean debug(const unichar* message) const;
~Ushort();
Ushort(ushort arg = DEF_VALUE);
Ushort(const Ushort& arg);
assign methods are inherited from the MScalar template class
boolean read(Sof& sof, long tag, const String& name = CLASS_NAME);
boolean write(Sof& sof, long tag, const String& name = CLASS_NAME) const;
sofSize is inherited from the MScalar template class
readData and writeData are inherited from the MScalar template class
equality methods are inherited from the MScalar template class
static void* operator new(size_t size);
static void* operator new[](size_t size);
static void operator delete(void* ptr);
static void operator delete[](void* ptr);
static boolean setGrowSize(long grow_size);
clear is inherited from the MScalar template class
Ushort& operator= (ushort arg);
ushort acos(ushort);
ushort acosh(ushort);
ushort asin(ushort);
ushort asinh(ushort);
ushort atan(ushort);
ushort atanh(ushort);
ushort cos(ushort);
ushort cosh(ushort);
ushort sin(ushort);
ushort sinh(ushort);
ushort tan(ushort);
ushort tanh(ushort);
ushort abs(ushort);
ushort neg(ushort);
ushort sign(ushort);
ushort ceil(ushort);
ushort rceil(ushort);
ushort rfloor(ushort);
ushort round(ushort);
ushort floor(ushort);
ushort fraction(ushort);
Ushort val0(5); String tmp_filename(L"foo"); Sof tmp_file; tmp_file.open(tmp_filename, File::WRITE_ONLY, File::TEXT); val0.write(tmp_file, (long)0); tmp_file.close();
Ushort value; Ushort value1; Ushort value2; ushort coef1 = 7; ushort coef2 = 3; ushort min = 0; ushort max = 255; value1 = 4; value2 = 5; value = value1.exp(2)*coef1 + value2.exp(3)*coef2; value.limit(min, max);