Team-Fly
Previous Section Next Section

B.3 Basic Operations: Member Functions

const LINT&
operator ++ (void);

increment operator (prefix) ++a;

const LINT
operator ++ (int);

increment operator (postfix) a++;

const LINT& operator --
(void);

decrement operator (prefix) −−a;

const LINT
operator -- (int);

decrement operator (postfix) a−−;

const LINT&
operator += (const LINT& b);

addition and assignment a += b;

const LINT&
operator -= (const LINT& b);

subtraction and assignment a = b;

const LINT&
operator *= (const LINT& b);

multiplication and assignment a *= b;

const LINT&
operator /= (const LINT& b);

division and assignment a /= b;

const LINT&
operator %= (const LINT& b);

remainder and assignment a %= b;

const LINT&
add (const LINT& b);

addition c = a.add (b);

const LINT&
sub (const LINT& b);

subtraction c = a.sub (b);

const LINT&
mul (const LINT& b);

multiplication c = a.mul (b);

const LINT&
sqr (void);

squaring c = a.sqr (b);

const LINT&
divr (const LINT& d, LINT& r);

division with remainder quotient = dividend.div (divisor, remainder);


Team-Fly Previous Section Next Section