package com.nativelibs4java.opencl.library;
import org.bridj.Pointer;
import org.bridj.StructObject;
import org.bridj.ann.Array;
import org.bridj.ann.Field;
import org.bridj.ann.Library;
import org.bridj.ann.Union;
/**
 * This file was autogenerated by <a href="http://jnaerator.googlecode.com/">JNAerator</a>,<br>
 * a tool written by <a href="http://ochafik.com/">Olivier Chafik</a> that <a href="http://code.google.com/p/jnaerator/wiki/CreditsAndLicense">uses a few opensource projects.</a>.<br>
 * For help, please visit <a href="http://nativelibs4java.googlecode.com/">NativeLibs4Java</a> or <a href="http://bridj.googlecode.com/">BridJ</a> .
 */
@Union 
@Library("OpenCL") 
public class cl_double16 extends StructObject {
	public cl_double16() {
		super();
	}
	/// C type : cl_double[16]
	@Array({16}) 
	@Field(0) 
	public Pointer<Double > s() {
		return this.io.getPointerField(this, 0);
	}
	/// C type : field1_struct
	@Field(1) 
	public com.nativelibs4java.opencl.library.cl_char2.field1_struct field1() {
		return this.io.getNativeObjectField(this, 1);
	}
	/// C type : field1_struct
	@Field(1) 
	public cl_double16 field1(com.nativelibs4java.opencl.library.cl_char2.field1_struct field1) {
		this.io.setNativeObjectField(this, 1, field1);
		return this;
	}
	/// C type : field2_struct
	@Field(2) 
	public com.nativelibs4java.opencl.library.cl_char2.field2_struct field2() {
		return this.io.getNativeObjectField(this, 2);
	}
	/// C type : field2_struct
	@Field(2) 
	public cl_double16 field2(com.nativelibs4java.opencl.library.cl_char2.field2_struct field2) {
		this.io.setNativeObjectField(this, 2, field2);
		return this;
	}
	/// C type : field3_struct
	@Field(3) 
	public com.nativelibs4java.opencl.library.cl_char2.field3_struct field3() {
		return this.io.getNativeObjectField(this, 3);
	}
	/// C type : field3_struct
	@Field(3) 
	public cl_double16 field3(com.nativelibs4java.opencl.library.cl_char2.field3_struct field3) {
		this.io.setNativeObjectField(this, 3, field3);
		return this;
	}
	public static class field1_struct extends StructObject {
		public field1_struct() {
			super();
		}
		/// C type : cl_double
		@Field(0) 
		public double x() {
			return this.io.getDoubleField(this, 0);
		}
		/// C type : cl_double
		@Field(0) 
		public field1_struct x(double x) {
			this.io.setDoubleField(this, 0, x);
			return this;
		}
		/// C type : cl_double
		@Field(1) 
		public double y() {
			return this.io.getDoubleField(this, 1);
		}
		/// C type : cl_double
		@Field(1) 
		public field1_struct y(double y) {
			this.io.setDoubleField(this, 1, y);
			return this;
		}
		/// C type : cl_double
		@Field(2) 
		public double z() {
			return this.io.getDoubleField(this, 2);
		}
		/// C type : cl_double
		@Field(2) 
		public field1_struct z(double z) {
			this.io.setDoubleField(this, 2, z);
			return this;
		}
		/// C type : cl_double
		@Field(3) 
		public double w() {
			return this.io.getDoubleField(this, 3);
		}
		/// C type : cl_double
		@Field(3) 
		public field1_struct w(double w) {
			this.io.setDoubleField(this, 3, w);
			return this;
		}
		/// C type : cl_double
		@Field(4) 
		public double __spacer4() {
			return this.io.getDoubleField(this, 4);
		}
		/// C type : cl_double
		@Field(4) 
		public field1_struct __spacer4(double __spacer4) {
			this.io.setDoubleField(this, 4, __spacer4);
			return this;
		}
		/// C type : cl_double
		@Field(5) 
		public double __spacer5() {
			return this.io.getDoubleField(this, 5);
		}
		/// C type : cl_double
		@Field(5) 
		public field1_struct __spacer5(double __spacer5) {
			this.io.setDoubleField(this, 5, __spacer5);
			return this;
		}
		/// C type : cl_double
		@Field(6) 
		public double __spacer6() {
			return this.io.getDoubleField(this, 6);
		}
		/// C type : cl_double
		@Field(6) 
		public field1_struct __spacer6(double __spacer6) {
			this.io.setDoubleField(this, 6, __spacer6);
			return this;
		}
		/// C type : cl_double
		@Field(7) 
		public double __spacer7() {
			return this.io.getDoubleField(this, 7);
		}
		/// C type : cl_double
		@Field(7) 
		public field1_struct __spacer7(double __spacer7) {
			this.io.setDoubleField(this, 7, __spacer7);
			return this;
		}
		/// C type : cl_double
		@Field(8) 
		public double __spacer8() {
			return this.io.getDoubleField(this, 8);
		}
		/// C type : cl_double
		@Field(8) 
		public field1_struct __spacer8(double __spacer8) {
			this.io.setDoubleField(this, 8, __spacer8);
			return this;
		}
		/// C type : cl_double
		@Field(9) 
		public double __spacer9() {
			return this.io.getDoubleField(this, 9);
		}
		/// C type : cl_double
		@Field(9) 
		public field1_struct __spacer9(double __spacer9) {
			this.io.setDoubleField(this, 9, __spacer9);
			return this;
		}
		/// C type : cl_double
		@Field(10) 
		public double sa() {
			return this.io.getDoubleField(this, 10);
		}
		/// C type : cl_double
		@Field(10) 
		public field1_struct sa(double sa) {
			this.io.setDoubleField(this, 10, sa);
			return this;
		}
		/// C type : cl_double
		@Field(11) 
		public double sb() {
			return this.io.getDoubleField(this, 11);
		}
		/// C type : cl_double
		@Field(11) 
		public field1_struct sb(double sb) {
			this.io.setDoubleField(this, 11, sb);
			return this;
		}
		/// C type : cl_double
		@Field(12) 
		public double sc() {
			return this.io.getDoubleField(this, 12);
		}
		/// C type : cl_double
		@Field(12) 
		public field1_struct sc(double sc) {
			this.io.setDoubleField(this, 12, sc);
			return this;
		}
		/// C type : cl_double
		@Field(13) 
		public double sd() {
			return this.io.getDoubleField(this, 13);
		}
		/// C type : cl_double
		@Field(13) 
		public field1_struct sd(double sd) {
			this.io.setDoubleField(this, 13, sd);
			return this;
		}
		/// C type : cl_double
		@Field(14) 
		public double se() {
			return this.io.getDoubleField(this, 14);
		}
		/// C type : cl_double
		@Field(14) 
		public field1_struct se(double se) {
			this.io.setDoubleField(this, 14, se);
			return this;
		}
		/// C type : cl_double
		@Field(15) 
		public double sf() {
			return this.io.getDoubleField(this, 15);
		}
		/// C type : cl_double
		@Field(15) 
		public field1_struct sf(double sf) {
			this.io.setDoubleField(this, 15, sf);
			return this;
		}
		public field1_struct(Pointer pointer) {
			super(pointer);
		}
	};
	public static class field2_struct extends StructObject {
		public field2_struct() {
			super();
		}
		/// C type : cl_double
		@Field(0) 
		public double s0() {
			return this.io.getDoubleField(this, 0);
		}
		/// C type : cl_double
		@Field(0) 
		public field2_struct s0(double s0) {
			this.io.setDoubleField(this, 0, s0);
			return this;
		}
		/// C type : cl_double
		@Field(1) 
		public double s1() {
			return this.io.getDoubleField(this, 1);
		}
		/// C type : cl_double
		@Field(1) 
		public field2_struct s1(double s1) {
			this.io.setDoubleField(this, 1, s1);
			return this;
		}
		/// C type : cl_double
		@Field(2) 
		public double s2() {
			return this.io.getDoubleField(this, 2);
		}
		/// C type : cl_double
		@Field(2) 
		public field2_struct s2(double s2) {
			this.io.setDoubleField(this, 2, s2);
			return this;
		}
		/// C type : cl_double
		@Field(3) 
		public double s3() {
			return this.io.getDoubleField(this, 3);
		}
		/// C type : cl_double
		@Field(3) 
		public field2_struct s3(double s3) {
			this.io.setDoubleField(this, 3, s3);
			return this;
		}
		/// C type : cl_double
		@Field(4) 
		public double s4() {
			return this.io.getDoubleField(this, 4);
		}
		/// C type : cl_double
		@Field(4) 
		public field2_struct s4(double s4) {
			this.io.setDoubleField(this, 4, s4);
			return this;
		}
		/// C type : cl_double
		@Field(5) 
		public double s5() {
			return this.io.getDoubleField(this, 5);
		}
		/// C type : cl_double
		@Field(5) 
		public field2_struct s5(double s5) {
			this.io.setDoubleField(this, 5, s5);
			return this;
		}
		/// C type : cl_double
		@Field(6) 
		public double s6() {
			return this.io.getDoubleField(this, 6);
		}
		/// C type : cl_double
		@Field(6) 
		public field2_struct s6(double s6) {
			this.io.setDoubleField(this, 6, s6);
			return this;
		}
		/// C type : cl_double
		@Field(7) 
		public double s7() {
			return this.io.getDoubleField(this, 7);
		}
		/// C type : cl_double
		@Field(7) 
		public field2_struct s7(double s7) {
			this.io.setDoubleField(this, 7, s7);
			return this;
		}
		/// C type : cl_double
		@Field(8) 
		public double s8() {
			return this.io.getDoubleField(this, 8);
		}
		/// C type : cl_double
		@Field(8) 
		public field2_struct s8(double s8) {
			this.io.setDoubleField(this, 8, s8);
			return this;
		}
		/// C type : cl_double
		@Field(9) 
		public double s9() {
			return this.io.getDoubleField(this, 9);
		}
		/// C type : cl_double
		@Field(9) 
		public field2_struct s9(double s9) {
			this.io.setDoubleField(this, 9, s9);
			return this;
		}
		/// C type : cl_double
		@Field(10) 
		public double sA() {
			return this.io.getDoubleField(this, 10);
		}
		/// C type : cl_double
		@Field(10) 
		public field2_struct sA(double sA) {
			this.io.setDoubleField(this, 10, sA);
			return this;
		}
		/// C type : cl_double
		@Field(11) 
		public double sB() {
			return this.io.getDoubleField(this, 11);
		}
		/// C type : cl_double
		@Field(11) 
		public field2_struct sB(double sB) {
			this.io.setDoubleField(this, 11, sB);
			return this;
		}
		/// C type : cl_double
		@Field(12) 
		public double sC() {
			return this.io.getDoubleField(this, 12);
		}
		/// C type : cl_double
		@Field(12) 
		public field2_struct sC(double sC) {
			this.io.setDoubleField(this, 12, sC);
			return this;
		}
		/// C type : cl_double
		@Field(13) 
		public double sD() {
			return this.io.getDoubleField(this, 13);
		}
		/// C type : cl_double
		@Field(13) 
		public field2_struct sD(double sD) {
			this.io.setDoubleField(this, 13, sD);
			return this;
		}
		/// C type : cl_double
		@Field(14) 
		public double sE() {
			return this.io.getDoubleField(this, 14);
		}
		/// C type : cl_double
		@Field(14) 
		public field2_struct sE(double sE) {
			this.io.setDoubleField(this, 14, sE);
			return this;
		}
		/// C type : cl_double
		@Field(15) 
		public double sF() {
			return this.io.getDoubleField(this, 15);
		}
		/// C type : cl_double
		@Field(15) 
		public field2_struct sF(double sF) {
			this.io.setDoubleField(this, 15, sF);
			return this;
		}
		public field2_struct(Pointer pointer) {
			super(pointer);
		}
	};
	public static class field3_struct extends StructObject {
		public field3_struct() {
			super();
		}
		/// C type : cl_double8
		@Field(0) 
		public cl_double8 lo() {
			return this.io.getNativeObjectField(this, 0);
		}
		/// C type : cl_double8
		@Field(0) 
		public field3_struct lo(cl_double8 lo) {
			this.io.setNativeObjectField(this, 0, lo);
			return this;
		}
		/// C type : cl_double8
		@Field(1) 
		public cl_double8 hi() {
			return this.io.getNativeObjectField(this, 1);
		}
		/// C type : cl_double8
		@Field(1) 
		public field3_struct hi(cl_double8 hi) {
			this.io.setNativeObjectField(this, 1, hi);
			return this;
		}
		public field3_struct(Pointer pointer) {
			super(pointer);
		}
	};
	public cl_double16(Pointer pointer) {
		super(pointer);
	}
}
