Class: OpenCL::ULong
- Inherits:
-
FFI::Struct
- Object
- FFI::Struct
- OpenCL::ULong
- Defined in:
- lib/opencl_ruby_ffi/Arithmetic_gen.rb
Overview
Maps the cl_ulong type of OpenCL
Instance Method Summary collapse
-
#initialize(s0 = 0) ⇒ ULong
constructor
Creates a new ULong with members set to 0 or to the user specified values.
-
#s0 ⇒ Object
Reads the s0 member.
-
#s0=(value) ⇒ Object
Sets the s0 member to value.
- #to_s ⇒ Object
Constructor Details
#initialize(s0 = 0) ⇒ ULong
Creates a new ULong with members set to 0 or to the user specified values
154 155 156 157 |
# File 'lib/opencl_ruby_ffi/Arithmetic_gen.rb', line 154 def initialize( s0 = 0 ) super() self[:s0] = s0 end |
Instance Method Details
#s0 ⇒ Object
Reads the s0 member
159 160 161 |
# File 'lib/opencl_ruby_ffi/Arithmetic_gen.rb', line 159 def s0 return self[:s0] end |
#s0=(value) ⇒ Object
Sets the s0 member to value
163 164 165 |
# File 'lib/opencl_ruby_ffi/Arithmetic_gen.rb', line 163 def s0=(value) self[:s0] = value end |
#to_s ⇒ Object
166 167 168 |
# File 'lib/opencl_ruby_ffi/Arithmetic_gen.rb', line 166 def to_s return "ULong{ #{self[:s0]} }" end |