|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.aitools.aq.value.Value
de.aitools.aq.value.pair.DoubleDouble
public class DoubleDouble
Field Summary | |
---|---|
static int |
NATIVE_TYPE_ID
|
Fields inherited from class de.aitools.aq.value.Value |
---|
DELIMITER_C, DELIMITER_S, SIZEOF_BYTE, SIZEOF_DOUBLE, SIZEOF_FLOAT, SIZEOF_INT, SIZEOF_LONG, SIZEOF_SHORT |
Constructor Summary | |
---|---|
DoubleDouble()
|
|
DoubleDouble(DoubleDouble value)
|
|
DoubleDouble(double e1,
double e2)
|
Method Summary | |
---|---|
void |
copyFrom(com.sun.jna.Pointer buffer)
Reads all elements of that value from a piece of memory pointed to by buffer . |
void |
copyTo(com.sun.jna.Pointer buffer)
Writes all elements of that value to a piece of memory pointed to by buffer . |
boolean |
equals(java.lang.Object obj)
|
double |
getE1()
|
double |
getE2()
|
int |
getSerializedSize()
Returns the size in bytes of this object when serialized. |
com.sun.jna.Memory |
getSharedMemory()
Returns a pointer to a piece of memory, that provides space for at least Value.getSerializedSize() bytes and can be directly used in conjunction
with Value.copyTo(Pointer) and Value.copyFrom(Pointer) . |
int |
hashCode()
|
boolean |
parseFrom(java.util.Scanner sc)
Parses new content of that value from the given Scanner . |
java.io.PrintStream |
printTo(java.io.PrintStream ps)
Prints all elements of that value to a stream in a human-readable format. |
void |
set(double e1,
double e2)
|
void |
setE1(double e1)
|
void |
setE2(double e2)
|
Methods inherited from class de.aitools.aq.value.Value |
---|
getNativeTypeId |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int NATIVE_TYPE_ID
Constructor Detail |
---|
public DoubleDouble()
public DoubleDouble(double e1, double e2)
public DoubleDouble(DoubleDouble value)
Method Detail |
---|
public void copyFrom(com.sun.jna.Pointer buffer)
Value
buffer
. You have to make sure, that the size of this buffer is
at least Value.getSerializedSize()
.
copyFrom
in class Value
buffer
- a pointer to free memorypublic void copyTo(com.sun.jna.Pointer buffer)
Value
buffer
. You have to make sure, that the size of this buffer is
at least Value.getSerializedSize()
.
copyTo
in class Value
buffer
- a pointer to free memorypublic double getE1()
public double getE2()
public boolean parseFrom(java.util.Scanner sc)
Value
Scanner
.
parseFrom
in class Value
sc
- a Scanner
to parse the data from
true
if on success, false
otherwise.public java.io.PrintStream printTo(java.io.PrintStream ps)
Value
printTo
in class Value
ps
- a stream to print all elements topublic void setE1(double e1)
public void setE2(double e2)
public void set(double e1, double e2)
public com.sun.jna.Memory getSharedMemory()
Value
Returns a pointer to a piece of memory, that provides space for at
least Value.getSerializedSize()
bytes and can be directly used in conjunction
with Value.copyTo(Pointer)
and Value.copyFrom(Pointer)
.
For the sake of efficiency the provided memory may be some sort of
shared memory, which can be used temporarily, to transfer data somewhere,
e.g. to native code. Please note that the usage of this buffer in
multi-threaded code has to be synchronized
.
getSharedMemory
in class Value
Value.copyFrom(Pointer)
,
Value.copyTo(Pointer)
,
Value.getSerializedSize()
public int getSerializedSize()
Value
getSerializedSize
in class Value
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |