Skip to content

T_CodeJam_Arithmetic_OperatorsFactory

Andrew Koryavchenko edited this page Jun 17, 2018 · 6 revisions

OperatorsFactory Class

Helper class to emit operators logic

Inheritance Hierarchy

System.Object
  CodeJam.Arithmetic.OperatorsFactory
Namespace: CodeJam.Arithmetic
Assembly: CodeJam (in CodeJam.dll) Version: 2.1.0.0

Syntax

C#

public static class OperatorsFactory

VB

Public NotInheritable Class OperatorsFactory

F#

[<AbstractClassAttribute>]
[<SealedAttribute>]
type OperatorsFactory =  class end

The OperatorsFactory type exposes the following members.

Methods

 

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

See Also

Reference

CodeJam.Arithmetic Namespace

Clone this wiki locally