Class: OpenCL::Mem::MigrationFlags

Inherits:
Bitfield
  • Object
show all
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

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

#namesObject

: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