class BOAST::OpenMP::OpenMPControlStructure
Public Class Methods
inherited(child)
click to toggle source
# File lib/BOAST/Language/OpenMP.rb, line 136 def self.inherited(child) OpenMP.send(:functorize,child) end
new(options = {}, &block)
click to toggle source
Calls superclass method
BOAST::ControlStructure::new
# File lib/BOAST/Language/OpenMP.rb, line 145 def initialize(options = {}, &block) super() @openmp_clauses = options @block = block end
Public Instance Methods
close()
click to toggle source
# File lib/BOAST/Language/OpenMP.rb, line 172 def close output.puts end_string(openmp_end_clauses_to_s) unless disable_openmp return self end
get_strings()
click to toggle source
# File lib/BOAST/Language/OpenMP.rb, line 140 def get_strings return { C => get_c_strings, FORTRAN => get_fortran_strings } end
open()
click to toggle source
# File lib/BOAST/Language/OpenMP.rb, line 158 def open output.puts to_s unless disable_openmp return self end
pr(*args)
click to toggle source
# File lib/BOAST/Language/OpenMP.rb, line 163 def pr(*args) open if @block then @block.call(*args) close end return self end
to_s()
click to toggle source
# File lib/BOAST/Language/OpenMP.rb, line 154 def to_s return begin_string(openmp_open_clauses_to_s) end