class Yadriggy::C::OclCodeGen::KernelPrinter
Attributes
printer[R]
Public Class Methods
new(printer)
click to toggle source
# File lib/yadriggy/c/opencl.rb, line 302 def initialize(printer) @printer = printer end
Public Instance Methods
<<(code)
click to toggle source
# File lib/yadriggy/c/opencl.rb, line 323 def << (code) code == :nl ? nl : @printer << code self end
down()
click to toggle source
# File lib/yadriggy/c/opencl.rb, line 306 def down() @printer << "\"\\" @printer.down @printer << '"' end
nl()
click to toggle source
# File lib/yadriggy/c/opencl.rb, line 318 def nl() @printer << "\"\\" << :nl << '"' self end
up()
click to toggle source
# File lib/yadriggy/c/opencl.rb, line 312 def up() @printer << "\"\\" @printer.up @printer << '"' end