- constructor method:
this method is useful to have for the diagnose method.
- assign methods:
MScalar(TIntegral arg));
template<class TAIntegral>
boolean assign(TAIntegral arg);
boolean assign(const String& arg);
- get methods:
boolean get(String& arg) const;
- memory size methods:
long memSize() const;
- method present value:
define functions which are used to wrap member functions that have different
implementations for different data types, and return the correct value by
using template specialization.
TIntegral presentValue(double arg) const;
TIntegral presentValue(complexdouble arg) const;
- method almostEqual
boolean almostEqual(TIntegral arg) const;
boolean almostEqual(TIntegral arg, double percent, double bound = Integral::DEF_BOUND) const;
- operator methods:
operator TIntegral() const;
- arithmetic operator overload methods:
TIntegral operator+(TIntegral arg) const;
TIntegral operator-(TIntegral arg) const;
TIntegral operator*(TIntegral arg) const;
TIntegral operator/(TIntegral arg) const;
TIntegral operator%(TIntegral arg) const;
- operator overload methods:
TIntegral operator++();
TIntegral operator--();
TIntegral operator++(int);
TIntegral operator--(int);
MScalar& operator+=(TIntegral arg);
MScalar& operator-=(TIntegral arg);
MScalar& operator*=(TIntegral arg);
MScalar& operator/=(TIntegral arg);
MScalar& operator%=(TIntegral arg);
boolean operator == (TIntegral arg) const;
boolean operator != (TIntegral arg) const;
boolean operator < (TIntegral arg) const;
boolean operator <= (TIntegral arg) const;
boolean operator > (TIntegral arg) const;
boolean operator >= (TIntegral arg) const;
- equality and comparison methods:
boolean eq(TIntegral arg) const;
boolean eq(TIntegral arg1, TIntegral arg2) const;
boolean ne(TIntegral arg) const;
boolean lt(TIntegral arg) const;
boolean le(TIntegral arg) const;
boolean gt(TIntegral arg) const;
boolean ge(TIntegral arg) const;
- bitwise methods:
TIntegral band(TIntegral arg);
TIntegral band(TIntegral arg1, TIntegral arg2);
TIntegral bor(TIntegral arg);
TIntegral bor(TIntegral arg1, TIntegral arg2);
TIntegral bxor(TIntegral arg);
TIntegral bxor(TIntegral arg1, TIntegral arg2);
TIntegral brs(TIntegral incr);
TIntegral brs(TIntegral arg, TIntegral incr);
TIntegral bls(TIntegral incr);
TIntegral bls(TIntegral arg, TIntegral incr);
TIntegral bcmpl();
TIntegral bcmpl(TIntegral arg);
- arithmetic methods:
TIntegral add(TIntegral arg2);
TIntegral add(TIntegral arg1, TIntegral arg2);
TIntegral sub(TIntegral arg2);
TIntegral sub(TIntegral arg1, TIntegral arg2);
TIntegral mult(TIntegral arg2);
TIntegral mult(TIntegral arg1, TIntegral arg2);
TIntegral div(TIntegral arg2);
TIntegral div(TIntegral arg1, TIntegral arg2);
TIntegral mod(TIntegral arg2);
TIntegral mod(TIntegral arg1, TIntegral arg2);
- other mathematical methods (listed alphabetically):
TIntegral abs();
TIntegral abs(TIntegral arg);
TIntegral acos();
TIntegral acos(TIntegral arg);
TIntegral acosh();
TIntegral acosh(TIntegral arg);
TIntegral asin();
TIntegral asin(TIntegral arg);
TIntegral asinh();
TIntegral asinh(TIntegral arg);
TIntegral atan();
TIntegral atan(TIntegral arg);
TIntegral atanh();
TIntegral atanh(TIntegral arg);
TIntegral ceil();
TIntegral ceil(TIntegral arg);
TIntegral centerClip(TIntegral min, TIntegral max);
TIntegral centerClip(TIntegral min, TIntegral max, TIntegral val);
TIntegral cos();
TIntegral cos(TIntegral arg);
TIntegral cosh();
TIntegral cosh(TIntegral arg);
TIntegral exp();
TIntegral exp(TIntegral arg);
TIntegral exp2();
TIntegral exp2(TIntegral arg);
TIntegral exp10();
TIntegral exp10(TIntegral arg);
TIntegral factorial();
TIntegral factorial(TIntegral arg);
TIntegral floor();
TIntegral floor(TIntegral arg);
TIntegral fraction();
TIntegral fraction(TIntegral arg);
TIntegral grand(TIntegral mean, TIntegral stddev, Random& generator = Random::GLOBAL_GAUSSIAN);
ulong hash(ulong hsize);
TIntegral inverse();
TIntegral inverse(TIntegral arg);
TIntegral limit(TIntegral min, TIntegral max);
TIntegral limit(TIntegral min, TIntegral max, TIntegral val);
TIntegral limitMag(TIntegral thresh, TIntegral output);
TIntegral limitMag(TIntegral thresh, TIntegral output, TIntegral val);
TIntegral log();
TIntegral log(TIntegral arg);
TIntegral log2();
TIntegral log2(TIntegral arg);
TIntegral log10();
TIntegral log10(TIntegral arg);
TIntegral log1p();
TIntegral log1p(TIntegral arg);
TIntegral max(TIntegral arg);
TIntegral max(TIntegral arg_1, TIntegral arg_2);
TIntegral min(TIntegral arg);
TIntegral min(TIntegral arg_1, TIntegral arg_2);
TIntegral neg();
TIntegral neg(TIntegral arg);
TIntegral pow(TIntegral exponent);
TIntegral pow(TIntegral arg, TIntegral exponent);
TIntegral rand(Random& generator = Random::GLOBAL_UNIFORM);
TIntegral rand(TIntegral min, TIntegral max, Random& generator = Random::GLOBAL_UNIFORM);
TIntegral rceil();
TIntegral rceil(TIntegral arg);
TIntegral rfloor();
TIntegral rfloor(TIntegral arg);
TIntegral round();
TIntegral round(TIntegral arg);
TIntegral sign();
TIntegral sign(TIntegral arg);
TIntegral sin();
TIntegral sin(TIntegral arg);
TIntegral sinh();
TIntegral sinh(TIntegral arg);
TIntegral sqrt();
TIntegral sqrt(TIntegral arg);
TIntegral square();
TIntegral square(TIntegral arg);
TIntegral tan();
TIntegral tan(TIntegral arg);
TIntegral tanh();
TIntegral tanh(TIntegral arg);