Class: OpenCL::MapFlags
- Defined in:
- lib/opencl_ruby_ffi/opencl_ruby_ffi_base_gen.rb
Overview
Bitfield that maps the :cl_map_flags type
Constant Summary collapse
- READ =
:stopdoc:
(1 << 0)
- WRITE =
(1 << 1)
- WRITE_INVALIDATE_REGION =
(1 << 2)
Instance Method Summary collapse
-
#names ⇒ Object
:startdoc: Returns an Array of String representing the different flags set.
Methods inherited from Bitfield
#&, #^, #flags, #flags=, #include?, #initialize, #to_i, #to_int, #to_s, #|
Constructor Details
This class inherits a constructor from OpenCL::Bitfield
Instance Method Details
#names ⇒ Object
:startdoc: Returns an Array of String representing the different flags set
1818 1819 1820 1821 1822 1823 1824 |
# File 'lib/opencl_ruby_ffi/opencl_ruby_ffi_base_gen.rb', line 1818 def names fs = [] %w( READ WRITE WRITE_INVALIDATE_REGION ).each { |f| fs.push(f) if self.include?( self.class.const_get(f) ) } return fs end |