MEng.Int1 represents a signed (integral) value from -128 to 127. This class provides a full set of mathematical operations on Int1 values.
Add([In] MEng.Int1 ToAdd) Returns MEng.Int1;
operator+([In] MEng.Int1 Src1, [In] MEng.Int1 Src2) Returns MEng.Int1;
Adds the two objects and returns the result, leaving both objects unaffected. They do the same thing, and are only syntactically different.
Div([In] MEng.Int1 DivBy) Returns MEng.Int1;
operator/([In] MEng.Int1 Src1, [In] MEng.Int1 Src2) Returns MEng.Int1;
Divides the left hand object by the right hand object, and returns the result, leaving both objects unaffected. They do the same thing, and are only syntactically different.
Equal([In] MEng.Int1 ToComp) Returns MEng.Boolean;
operator=([In] MEng.Int1 Src1, [In] MEng.Int1 Src2) Returns MEng.Boolean;
Compares the two objects and returns True if they are equal and False if they are unequal. Neither object is affected. They do the same thing, are only only syntactically different.
GetNegated() Returns MEng.Int1;
Returns a negated version of this object's value.
GtThan([In] MEng.Int1 ToComp) Returns MEng.Boolean;
operator>([In] MEng.Int1 Src1, [In] MEng.Int1 Src2) Returns MEng.Boolean;
GtThanEq([In] MEng.Int1 ToComp) Returns MEng.Boolean;
operator>=([In] MEng.Int1 Src1, [In] MEng.Int1 Src2) Returns MEng.Boolean;
Compares the two objects and returns True if the left hand object is greater (or greater than or equal), else it returns False. Neither object is affected. The two sets do the same thing, and are just syntactically different.
LsThan([In] MEng.Int1 ToComp) Returns MEng.Boolean;
operator<([In] MEng.Int1 Src1, [In] MEng.Int1 Src2) Returns MEng.Boolean;
LsThanEq([In] MEng.Int1 ToComp) Returns MEng.Boolean;
operator<=([In] MEng.Int1 Src1, [In] MEng.Int1 Src2) Returns MEng.Boolean;
Compares the two objects and returns True if the left hand object is less than (or less than or equal) the right hand object, else it returns False. Neither object is affected. The two sets do the same thing, and are just syntactically different.
MaxVal([In] MEng.Int1 Test) Returns MEng.Int1;
MinVal([In] MEng.Int1 Test) Returns MEng.Int1;
Returns the larger or smaller of this value and the passed test value. So if this object's value is larger or smaller, it will be returned, else the passed value will be returned.
ModDiv([In] MEng.Int1 DivBy) Returns MEng.Int1;
operator%([In] MEng.Int1 Src1, [In] MEng.Int1 Src2) Returns MEng.Int1;
Performs a modulo division and returns the remainder of the operation. These both do the same thing, they are just syntactically different.
Mul([In] MEng.Int1 MulBy) Returns MEng.Int1;
operator*([In] MEng.Int1 Src1, [In] MEng.Int1 Src2) Returns MEng.Int1;
Multiplies the left hand object by the right hand object, and returns the result, leaving both objects unaffected. They do the same thing, and are only syntactically different.
Sub([In] MEng.Int1 MulBy) Returns MEng.Int1;
operator-([In] MEng.Int1 Src1, [In] MEng.Int1 Src2) Returns MEng.Int1;
Subtracts the right hand object from the left hand object, and returns the result, leaving both objects unaffected. They do the same thing, and are only syntactically different.
Dec() Returns MEng.Int1;
operator--() Returns MEng.Int1;
If the value of this object is greater than the minimal value, it is decremented by one, else nothing happens. These both do the same thing, and are just syntactically different. This is a postfix decrement, so the value returned is the value before the decrement.
DivEq([In] MEng.Int1 DivBy);
operator/=([In] MEng.Int1 DivBy);
Divides this object by the passed object, updating this object with the resulting value. They do the same thing, and are only syntactically different.
Inc() Returns MEng.Int1;
operator++() Returns MEng.Int1;
If the value of this object is less than the maximum value, it is incremented by one, else nothing happens. These both do the same thing, and are just syntactically different. This is a postfix increment, so the value returned is the value before the increment.
ModDivEq([In] MEng.Int1 DivBy) Returns MEng.Int1;
operator%=([In] MEng.Int1 Src1, [In] MEng.Int1 Src2) Returns MEng.Int1;
Performs a modulo division and sets this object to the the remainder of the operation. These both do the same thing, they are just syntactically different.
MinusEq([In] MEng.Int1 SrcVal);
operator-=([In] MEng.Int1 SrcVal);
Subtracts the passed object from this object, updating this object with the resulting value. They do the same thing, and are only syntactically different.
MulEq([In] MEng.Int1 SrcVal);
operator*=([In] MEng.Int1 SrcVal);
Multiplies this object by the passed object, updating this object with the resulting value. They do the same thing, and are only syntactically different.