using System; using System.Collections.Generic; using System.Text; namespace gr2lib.core.typedefs { #region typedefs #region public struct granny_uint32 public struct granny_uint32 { public granny_uint32(System.UInt32 value) { this.realValue = value; } private System.UInt32 realValue; public static implicit operator System.UInt32(granny_uint32 value) { return value.realValue; } public static implicit operator granny_uint32(System.UInt32 value) { return new granny_uint32(value); } };//System.UInt32 #endregion #region public struct granny_uint16 public struct granny_uint16 { public granny_uint16(System.UInt16 value) { this.realValue = value; } private System.UInt16 realValue; public static implicit operator System.UInt16(granny_uint16 value) { return value.realValue; } public static implicit operator granny_uint16(System.UInt16 value) { return new granny_uint16(value); } };//System.UInt16; #endregion #region public struct granny_uint8 public struct granny_uint8 { public granny_uint8(System.Byte value) { this.realValue = value; } private System.Byte realValue; public static implicit operator System.Byte(granny_uint8 value) { return value.realValue; } public static implicit operator granny_uint8(System.Byte value) { return new granny_uint8(value); } public override string ToString() { return realValue.ToString(); } }; //System.Byte; #endregion #region public struct granny_int32 public struct granny_int32 { public granny_int32(System.Int32 value) { this.realValue = value; } private System.Int32 realValue; public static implicit operator System.Int32(granny_int32 value) { return value.realValue; } public static implicit operator granny_int32(System.Int32 value) { return new granny_int32(value); } public override string ToString() { return realValue.ToString(); } }; //System.Int32; #endregion #region public struct granny_int16 public struct granny_int16 { public granny_int16(System.Int16 value) { this.realValue = value; } private System.Int16 realValue; public static implicit operator System.Int16(granny_int16 value) { return value.realValue; } public static implicit operator granny_int16(System.Int16 value) { return new granny_int16(value); } public override string ToString() { return realValue.ToString(); } };//System.Int16; #endregion #region public struct granny_int8 public struct granny_int8 { public granny_int8(System.SByte value) { this.realValue = value; } private System.SByte realValue; public static implicit operator System.SByte(granny_int8 value) { return value.realValue; } public static implicit operator granny_int8(System.SByte value) { return new granny_int8(value); } public override string ToString() { return realValue.ToString(); } };//System.SByte; #endregion #region public struct granny_bool32 public struct granny_bool32 { public granny_bool32(System.Int32 value) { this.realValue = value; } private System.Int32 realValue; public static implicit operator System.Int32(granny_bool32 value) { return value.realValue; } public static implicit operator granny_bool32(System.Int32 value) { return new granny_bool32(value); } public override string ToString() { return realValue.ToString(); } }; //System.Int32; #endregion #region public struct granny_real32 public struct granny_real32 { public granny_real32(System.Single value) { this.realValue = value; } private System.Single realValue; public static implicit operator System.Single(granny_real32 value) { return value.realValue; } public static implicit operator granny_real32(System.Single value) { return new granny_real32(value); } public override string ToString() { return realValue.ToString(); } }; //System.Single; #endregion #region public struct granny_real16 public struct granny_real16 { public granny_real16(System.UInt16 value) { this.realValue = value; } private System.UInt16 realValue; public static implicit operator System.UInt16(granny_real16 value) { return value.realValue; } public static implicit operator granny_real16(System.UInt16 value) { return new granny_real16(value); } public override string ToString() { return realValue.ToString(); } };//System.UInt16; #endregion #region public struct granny_uint32x public struct granny_uint32x { public granny_uint32x(System.UInt32 value) { this.realValue = value; } private System.UInt32 realValue; public static implicit operator System.UInt32(granny_uint32x value) { return value.realValue; } public static implicit operator granny_uint32x(System.UInt32 value) { return new granny_uint32x(value); } public override string ToString() { return realValue.ToString(); } }; //System.UInt32; #endregion #region public struct granny_uint16x public struct granny_uint16x { public granny_uint16x(System.UInt32 value) { this.realValue = value; } private System.UInt32 realValue; public static implicit operator System.UInt32(granny_uint16x value) { return value.realValue; } public static implicit operator granny_uint16x(System.UInt32 value) { return new granny_uint16x(value); } public override string ToString() { return realValue.ToString(); } };//System.UInt32; #endregion #region public struct granny_uint8x public struct granny_uint8x { public granny_uint8x(System.UInt32 value) { this.realValue = value; } private System.UInt32 realValue; public static implicit operator System.UInt32(granny_uint8x value) { return value.realValue; } public static implicit operator granny_uint8x(System.UInt32 value) { return new granny_uint8x(value); } public override string ToString() { return realValue.ToString(); } };//System.UInt32; #endregion #region public struct granny_int32x public struct granny_int32x { public granny_int32x(System.Int32 value) { this.realValue = value; } private System.Int32 realValue; public static implicit operator System.Int32(granny_int32x value) { return value.realValue; } public static implicit operator granny_int32x(System.Int32 value) { return new granny_int32x(value); } public override string ToString() { return realValue.ToString(); } }; //System.Int32; #endregion #region public struct granny_int16x public struct granny_int16x { public granny_int16x(System.Int32 value) { this.realValue = value; } private System.Int32 realValue; public static implicit operator System.Int32(granny_int16x value) { return value.realValue; } public static implicit operator granny_int16x(System.Int32 value) { return new granny_int16x(value); } public override string ToString() { return realValue.ToString(); } };//System.Int32; #endregion #region public struct granny_int8x public struct granny_int8x { public granny_int8x(System.Int32 value) { this.realValue = value; } private System.Int32 realValue; public static implicit operator System.Int32(granny_int8x value) { return value.realValue; } public static implicit operator granny_int8x(System.Int32 value) { return new granny_int8x(value); } public override string ToString() { return realValue.ToString(); } }; //System.Int32; #endregion #region public struct granny_bool32x public struct granny_bool32x { public granny_bool32x(System.Int32 value) { this.realValue = value; } private System.Int32 realValue; public static implicit operator System.Int32(granny_bool32x value) { return value.realValue; } public static implicit operator granny_bool32x(System.Int32 value) { return new granny_bool32x(value); } public override string ToString() { return realValue.ToString(); } };//System.Int32; #endregion #region public struct granny_real64x public struct granny_real64x { public granny_real64x(System.Double value) { this.realValue = value; } private System.Double realValue; public static implicit operator System.Double(granny_real64x value) { return value.realValue; } public static implicit operator granny_real64x(System.Double value) { return new granny_real64x(value); } public override string ToString() { return realValue.ToString(); } }; //System.Double; #endregion #region public struct granny_real32x public struct granny_real32x { public granny_real32x(System.Single value) { this.realValue = value; } private System.Single realValue; public static implicit operator System.Single(granny_real32x value) { return value.realValue; } public static implicit operator granny_real32x(System.Single value) { return new granny_real32x(value); } };//System.Single; #endregion #region public struct granny_triple public struct granny_triple { unsafe public granny_triple(System.Single[] value) { this.realValue = value; } private unsafe System.Single[] realValue; unsafe public static implicit operator System.Single[](granny_triple value) { return value.realValue; } unsafe public static implicit operator granny_triple(System.Single[] value) { return new granny_triple(value); } unsafe public override string ToString() { string val = ""; foreach (System.Single f in realValue) { val = val + "[" + f.ToString() + "]"; } return val; } }; //System.Single;//[3]; // declare type -> unsafe fixed #endregion #region public struct granny_quad public struct granny_quad { unsafe public granny_quad(System.Single[] value) { this.realValue = value; } private unsafe System.Single[] realValue;//[4]; unsafe public static implicit operator System.Single[](granny_quad value) { return value.realValue; } unsafe public static implicit operator granny_quad(System.Single[] value) { return new granny_quad(value); } unsafe public override string ToString() { string val = ""; foreach (System.Single f in realValue) { val = val + "[" + f.ToString() + "]"; } return val; } };//System.Single;//[4]; // declare type -> unsafe fixed #endregion #region public struct granny_matrix_3x3 public struct granny_matrix_3x3 { unsafe public granny_matrix_3x3(System.Single[,] value) { this.realValue = value; } private unsafe System.Single[,] realValue; unsafe public static implicit operator System.Single[,](granny_matrix_3x3 value) { return value.realValue; } unsafe public static implicit operator granny_matrix_3x3(System.Single[,] value) { return new granny_matrix_3x3(value); } unsafe public override string ToString() { string val = ""; foreach (System.Single f in realValue) { val = val + "[" + f.ToString() + "]"; } return val; } }; //System.Single;//[3][3]; // declare type -> unsafe fixed #endregion #region public struct granny_matrix_4x4 public struct granny_matrix_4x4 { unsafe public granny_matrix_4x4(System.Single[,] value) { this.realValue = value; } private unsafe System.Single[,] realValue; unsafe public static implicit operator System.Single[,](granny_matrix_4x4 value) { return value.realValue; } unsafe public static implicit operator granny_matrix_4x4(System.Single[,] value) { return new granny_matrix_4x4(value); } unsafe public override string ToString() { string val = ""; foreach (System.Single f in realValue) { val = val + "[" + f.ToString() + "]"; } return val; } };//System.Single;//[4][4]; // declare type -> unsafe fixed #endregion #region public struct granny_matrix_3x4 public struct granny_matrix_3x4 { unsafe public granny_matrix_3x4(System.Single[,] value) { this.realValue = value; } private unsafe System.Single[,] realValue; unsafe public static implicit operator System.Single[,](granny_matrix_3x4 value) { return value.realValue; } unsafe public static implicit operator granny_matrix_3x4(System.Single[,] value) { return new granny_matrix_3x4(value); } unsafe public override string ToString() { string val = ""; foreach (System.Single f in realValue) { val = val + "[" + f.ToString() + "]"; } return val; } }; //System.Single;//[3][4]; // declare type -> unsafe fixed #endregion #endregion }