Functions

Operator Templates

Template functions for addition, subtraction, division, multiplication of class objects. More...

Functions

template<class Type >
Type Plus (Type i, Type j)
 Rule for Type + Type.
template<class Type >
Type Minus (Type i, Type j)
 Rule for Type - Type.
template<class Type >
Type Divide (Type i, Type j)
 Rule for Type / Type.
template<class Type >
Type Multiply (Type i, Type j)
 Rule for Type * Type.

Detailed Description

Template functions for addition, subtraction, division, multiplication of class objects.


Function Documentation

template<class Type >
Type Divide ( Type  i,
Type  j 
)

Rule for Type / Type.

Definition at line 162 of file MathFuns.h.

References Return.

{ Return i / j; }
template<class Type >
Type Minus ( Type  i,
Type  j 
)

Rule for Type - Type.

Definition at line 159 of file MathFuns.h.

References Return.

{ Return i - j; }
template<class Type >
Type Multiply ( Type  i,
Type  j 
)

Rule for Type * Type.

Definition at line 165 of file MathFuns.h.

References Return.

{ Return i * j; }
template<class Type >
Type Plus ( Type  i,
Type  j 
)

Rule for Type + Type.

Definition at line 156 of file MathFuns.h.

References Return.

{ Return i + j; }