Skip to content

Methods_T_CodeJam_Arithmetic_OperatorsFactory

Andrew Koryavchenko edited this page Jul 4, 2017 · 4 revisions

OperatorsFactory Methods

The OperatorsFactory type exposes the following members.

Methods

 

Name Description
Public method Static member BinaryOperator(T) Binary operator factory method.
Public method Static member ClearFlagOperator(T) Emits code for (value & ~flag) operator.
Public method Static member Comparison(T) Comparison factory method..
Public method Static member ComparisonOperator(T) Compare operator factory method..
Public method Static member GetNaN(T) Returns the NaN value.
Public method Static member GetNegativeInfinity(T) Returns the negative infinity value.
Public method Static member GetPositiveInfinity(T) Returns the positive infinity value.
Public method Static member HasNaN(T) Determines whether the type has NaN value.
Public method Static member HasNegativeInfinity(T) Determines whether the type has negative infinity value.
Public method Static member HasPositiveInfinity(T) Determines whether the type has positive infinity value.
Public method Static member IsAnyFlagSetOperator(T) Emits code for (flag == 0) || ((value & flag) != 0) check.
Public method Static member IsFlagSetOperator(T) Emits code for (value & flag) == flag check.
Public method Static member SetFlagOperator(T) Emits code for (value | flag) operator.
Public method Static member UnaryOperator(T) Unary operator factory method.
  Back to Top

See Also

Reference

OperatorsFactory Class
CodeJam.Arithmetic Namespace

Clone this wiki locally