Sha256: b889fee5c97c5c61e924fb277de9b221b2a0daecb8e7446fd72e4d72e93eaf65

Contents?: true

Size: 1013 Bytes

Versions: 4

Compression:

Stored size: 1013 Bytes

Contents

# encoding: utf-8

module Veritas
  class Optimizer
    module Function

      # Abstract base class representing Numeric optimizations
      class Numeric < Optimizer
        include AbstractClass

        # Optimize when the operand is constant
        class ConstantOperand < self
          include Unary::ConstantOperand, Unary
        end # class ConstantOperand

        # Optimize when the operands are constants
        class ConstantOperands < self
          include Binary::ConstantOperands, Binary
        end # class ConstantOperands

        # Optimize when the operand is unoptimized
        class UnoptimizedOperand < self
          include Unary::UnoptimizedOperand, Unary
        end # class UnoptimizedOperand

        # Optimize when the operand is unoptimized
        class UnoptimizedOperands < self
          include Binary::UnoptimizedOperands, Binary
        end # class UnoptimizedOperands

      end # class Numeric
    end # module Function
  end # class Optimizer
end # module Veritas

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
veritas-optimizer-0.0.7 lib/veritas/optimizer/function/numeric.rb
veritas-optimizer-0.0.6 lib/veritas/optimizer/function/numeric.rb
veritas-optimizer-0.0.5 lib/veritas/optimizer/function/numeric.rb
veritas-optimizer-0.0.4 lib/veritas/optimizer/function/numeric.rb