Class: OpenCL::Short8

Inherits:
FFI::Struct show all
Defined in:
lib/opencl_ruby_ffi/Arithmetic_gen.rb

Overview

Maps the cl_short8 type of OpenCL

Instance Method Summary collapse

Constructor Details

#initialize(s0 = 0, s1 = 0, s2 = 0, s3 = 0, s4 = 0, s5 = 0, s6 = 0, s7 = 0) ⇒ Short8

Creates a new Short8 with members set to 0 or to the user specified values



1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
# File 'lib/opencl_ruby_ffi/Arithmetic_gen.rb', line 1264

def initialize( s0 = 0, s1 = 0, s2 = 0, s3 = 0, s4 = 0, s5 = 0, s6 = 0, s7 = 0 )
  super()
  self[:s0] = s0
  self[:s1] = s1
  self[:s2] = s2
  self[:s3] = s3
  self[:s4] = s4
  self[:s5] = s5
  self[:s6] = s6
  self[:s7] = s7
end

Instance Method Details

#s0Object

Reads the s0 member



1276
1277
1278
# File 'lib/opencl_ruby_ffi/Arithmetic_gen.rb', line 1276

def s0
 return self[:s0]
end

#s0=(value) ⇒ Object

Sets the s0 member to value



1308
1309
1310
# File 'lib/opencl_ruby_ffi/Arithmetic_gen.rb', line 1308

def s0=(value)
 self[:s0] = value
end

#s1Object

Reads the s1 member



1280
1281
1282
# File 'lib/opencl_ruby_ffi/Arithmetic_gen.rb', line 1280

def s1
 return self[:s1]
end

#s1=(value) ⇒ Object

Sets the s1 member to value



1312
1313
1314
# File 'lib/opencl_ruby_ffi/Arithmetic_gen.rb', line 1312

def s1=(value)
 self[:s1] = value
end

#s2Object

Reads the s2 member



1284
1285
1286
# File 'lib/opencl_ruby_ffi/Arithmetic_gen.rb', line 1284

def s2
 return self[:s2]
end

#s2=(value) ⇒ Object

Sets the s2 member to value



1316
1317
1318
# File 'lib/opencl_ruby_ffi/Arithmetic_gen.rb', line 1316

def s2=(value)
 self[:s2] = value
end

#s3Object

Reads the s3 member



1288
1289
1290
# File 'lib/opencl_ruby_ffi/Arithmetic_gen.rb', line 1288

def s3
 return self[:s3]
end

#s3=(value) ⇒ Object

Sets the s3 member to value



1320
1321
1322
# File 'lib/opencl_ruby_ffi/Arithmetic_gen.rb', line 1320

def s3=(value)
 self[:s3] = value
end

#s4Object

Reads the s4 member



1292
1293
1294
# File 'lib/opencl_ruby_ffi/Arithmetic_gen.rb', line 1292

def s4
 return self[:s4]
end

#s4=(value) ⇒ Object

Sets the s4 member to value



1324
1325
1326
# File 'lib/opencl_ruby_ffi/Arithmetic_gen.rb', line 1324

def s4=(value)
 self[:s4] = value
end

#s5Object

Reads the s5 member



1296
1297
1298
# File 'lib/opencl_ruby_ffi/Arithmetic_gen.rb', line 1296

def s5
 return self[:s5]
end

#s5=(value) ⇒ Object

Sets the s5 member to value



1328
1329
1330
# File 'lib/opencl_ruby_ffi/Arithmetic_gen.rb', line 1328

def s5=(value)
 self[:s5] = value
end

#s6Object

Reads the s6 member



1300
1301
1302
# File 'lib/opencl_ruby_ffi/Arithmetic_gen.rb', line 1300

def s6
 return self[:s6]
end

#s6=(value) ⇒ Object

Sets the s6 member to value



1332
1333
1334
# File 'lib/opencl_ruby_ffi/Arithmetic_gen.rb', line 1332

def s6=(value)
 self[:s6] = value
end

#s7Object

Reads the s7 member



1304
1305
1306
# File 'lib/opencl_ruby_ffi/Arithmetic_gen.rb', line 1304

def s7
 return self[:s7]
end

#s7=(value) ⇒ Object

Sets the s7 member to value



1336
1337
1338
# File 'lib/opencl_ruby_ffi/Arithmetic_gen.rb', line 1336

def s7=(value)
 self[:s7] = value
end

#to_sObject



1339
1340
1341
# File 'lib/opencl_ruby_ffi/Arithmetic_gen.rb', line 1339

def to_s
  return "Short8{ #{self[:s0]}, #{self[:s1]}, #{self[:s2]}, #{self[:s3]}, #{self[:s4]}, #{self[:s5]}, #{self[:s6]}, #{self[:s7]} }"
end