Class: OpenCL::Mem::MigrationFlags
- Defined in:
- lib/opencl_ruby_ffi/opencl_ruby_ffi_base_gen.rb
Overview
Bitfield that maps the :cl_mem_migration_flags type
Constant Summary collapse
- HOST =
:stopdoc:
(1 << 0)
- CONTENT_UNDEFINED =
(1 << 1)
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
1283 1284 1285 1286 1287 1288 1289 |
# File 'lib/opencl_ruby_ffi/opencl_ruby_ffi_base_gen.rb', line 1283 def names fs = [] %w( HOST CONTENT_UNDEFINED ).each { |f| fs.push(f) if self.include?( self.class.const_get(f) ) } return fs end |