-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add some primitive classes using array
- Loading branch information
Showing
21 changed files
with
780 additions
and
115 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
package idl.helper; | ||
|
||
public class IDLBool extends IDLBoolArray { | ||
|
||
public static IDLBool TMP_1 = new IDLBool(); | ||
public static IDLBool TMP_2 = new IDLBool(); | ||
|
||
public static void disposeTEMP() { | ||
TMP_1.dispose(); | ||
TMP_2.dispose(); | ||
} | ||
|
||
public IDLBool() { | ||
super(1); | ||
} | ||
|
||
IDLBool set(boolean value) { | ||
setValue(0, value); | ||
return this; | ||
} | ||
|
||
boolean getValue() { | ||
return getValue(0); | ||
} | ||
|
||
@Override | ||
public String toString() { | ||
return String.valueOf(getValue()); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
package idl.helper; | ||
|
||
public class IDLBool2 extends IDLBoolArray { | ||
|
||
public static IDLBool2 TMP_1 = new IDLBool2(); | ||
public static IDLBool2 TMP_2 = new IDLBool2(); | ||
|
||
public static void disposeTEMP() { | ||
TMP_1.dispose(); | ||
TMP_2.dispose(); | ||
} | ||
|
||
public IDLBool2() { | ||
super(2); | ||
} | ||
|
||
IDLBool2 set(boolean value0, boolean value1) { | ||
setValue(0, value0); | ||
setValue(1, value1); | ||
return this; | ||
} | ||
|
||
IDLBool2 set0(boolean value) { | ||
setValue(0, value); | ||
return this; | ||
} | ||
|
||
IDLBool2 set1(boolean value) { | ||
setValue(1, value); | ||
return this; | ||
} | ||
|
||
boolean get0() { | ||
return getValue(0); | ||
} | ||
|
||
boolean get1() { | ||
return getValue(1); | ||
} | ||
|
||
@Override | ||
public String toString() { | ||
return get0() + ", " + get1(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
package idl.helper; | ||
|
||
public class IDLBool3 extends IDLBoolArray { | ||
|
||
public static IDLBool3 TMP_1 = new IDLBool3(); | ||
public static IDLBool3 TMP_2 = new IDLBool3(); | ||
|
||
public static void disposeTEMP() { | ||
TMP_1.dispose(); | ||
TMP_2.dispose(); | ||
} | ||
|
||
public IDLBool3() { | ||
super(3); | ||
} | ||
|
||
IDLBool3 set(boolean value0, boolean value1, boolean value2) { | ||
setValue(0, value0); | ||
setValue(1, value1); | ||
setValue(2, value2); | ||
return this; | ||
} | ||
|
||
IDLBool3 set0(boolean value) { | ||
setValue(0, value); | ||
return this; | ||
} | ||
|
||
IDLBool3 set1(boolean value) { | ||
setValue(1, value); | ||
return this; | ||
} | ||
|
||
IDLBool3 set2(boolean value) { | ||
setValue(2, value); | ||
return this; | ||
} | ||
|
||
boolean get0() { | ||
return getValue(0); | ||
} | ||
|
||
boolean get1() { | ||
return getValue(1); | ||
} | ||
|
||
boolean get2() { | ||
return getValue(2); | ||
} | ||
|
||
@Override | ||
public String toString() { | ||
return get0() + ", " + get1() + ", " + get2(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
package idl.helper; | ||
|
||
public class IDLBool4 extends IDLBoolArray { | ||
|
||
public static IDLBool4 TMP_1 = new IDLBool4(); | ||
public static IDLBool4 TMP_2 = new IDLBool4(); | ||
|
||
public static void disposeTEMP() { | ||
TMP_1.dispose(); | ||
TMP_2.dispose(); | ||
} | ||
|
||
public IDLBool4() { | ||
super(4); | ||
} | ||
|
||
IDLBool4 set(boolean value0, boolean value1, boolean value2, boolean value3) { | ||
setValue(0, value0); | ||
setValue(1, value1); | ||
setValue(2, value2); | ||
setValue(3, value3); | ||
return this; | ||
} | ||
|
||
IDLBool4 set0(boolean value) { | ||
setValue(0, value); | ||
return this; | ||
} | ||
|
||
IDLBool4 set1(boolean value) { | ||
setValue(1, value); | ||
return this; | ||
} | ||
|
||
IDLBool4 set2(boolean value) { | ||
setValue(2, value); | ||
return this; | ||
} | ||
|
||
IDLBool4 set3(boolean value) { | ||
setValue(3, value); | ||
return this; | ||
} | ||
|
||
boolean get0() { | ||
return getValue(0); | ||
} | ||
|
||
boolean get1() { | ||
return getValue(1); | ||
} | ||
|
||
boolean get2() { | ||
return getValue(2); | ||
} | ||
|
||
boolean get3() { | ||
return getValue(3); | ||
} | ||
|
||
@Override | ||
public String toString() { | ||
return get0() + ", " + get1() + ", " + get2() + ", " + get3(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
package idl.helper; | ||
|
||
public class IDLDouble extends IDLDoubleArray { | ||
|
||
public static IDLDouble TMP_1 = new IDLDouble(); | ||
public static IDLDouble TMP_2 = new IDLDouble(); | ||
|
||
public static void disposeTEMP() { | ||
TMP_1.dispose(); | ||
TMP_2.dispose(); | ||
} | ||
|
||
public IDLDouble() { | ||
super(1); | ||
} | ||
|
||
IDLDouble set(double value) { | ||
setValue(0, value); | ||
return this; | ||
} | ||
|
||
double getValue() { | ||
return getValue(0); | ||
} | ||
|
||
@Override | ||
public String toString() { | ||
return String.valueOf(getValue()); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
package idl.helper; | ||
|
||
public class IDLDouble2 extends IDLDoubleArray { | ||
|
||
public static IDLDouble2 TMP_1 = new IDLDouble2(); | ||
public static IDLDouble2 TMP_2 = new IDLDouble2(); | ||
|
||
public static void disposeTEMP() { | ||
TMP_1.dispose(); | ||
TMP_2.dispose(); | ||
} | ||
|
||
public IDLDouble2() { | ||
super(2); | ||
} | ||
|
||
IDLDouble2 set(double value0, double value1) { | ||
setValue(0, value0); | ||
setValue(1, value1); | ||
return this; | ||
} | ||
|
||
IDLDouble2 set0(double value) { | ||
setValue(0, value); | ||
return this; | ||
} | ||
|
||
IDLDouble2 set1(double value) { | ||
setValue(1, value); | ||
return this; | ||
} | ||
|
||
double get0() { | ||
return getValue(0); | ||
} | ||
|
||
double get1() { | ||
return getValue(1); | ||
} | ||
|
||
@Override | ||
public String toString() { | ||
return get0() + ", " + get1(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
package idl.helper; | ||
|
||
public class IDLDouble3 extends IDLDoubleArray { | ||
|
||
public static IDLDouble3 TMP_1 = new IDLDouble3(); | ||
public static IDLDouble3 TMP_2 = new IDLDouble3(); | ||
|
||
public static void disposeTEMP() { | ||
TMP_1.dispose(); | ||
TMP_2.dispose(); | ||
} | ||
|
||
public IDLDouble3() { | ||
super(3); | ||
} | ||
|
||
IDLDouble3 set(double value0, double value1, double value2) { | ||
setValue(0, value0); | ||
setValue(1, value1); | ||
setValue(2, value2); | ||
return this; | ||
} | ||
|
||
IDLDouble3 set0(double value) { | ||
setValue(0, value); | ||
return this; | ||
} | ||
|
||
IDLDouble3 set1(double value) { | ||
setValue(1, value); | ||
return this; | ||
} | ||
|
||
IDLDouble3 set2(double value) { | ||
setValue(2, value); | ||
return this; | ||
} | ||
|
||
double get0() { | ||
return getValue(0); | ||
} | ||
|
||
double get1() { | ||
return getValue(1); | ||
} | ||
|
||
double get2() { | ||
return getValue(2); | ||
} | ||
|
||
@Override | ||
public String toString() { | ||
return get0() + ", " + get1() + ", " + get2(); | ||
} | ||
} |
Oops, something went wrong.