public class L_Sudoku
extends com.sun.jna.Structure
Modifier and Type | Class and Description |
---|---|
static class |
L_Sudoku.ByReference |
static class |
L_Sudoku.ByValue |
Modifier and Type | Field and Description |
---|---|
int |
current
index into @locs of current location
C type : l_int32 |
int |
failure
set to 1 if no solution is possible
C type : l_int32 |
int |
finished
set to 1 when solved
C type : l_int32 |
com.sun.jna.ptr.IntByReference |
init
initial state, with 0 representing
C type : l_int32* |
com.sun.jna.ptr.IntByReference |
locs
location of unknowns
C type : l_int32* |
int |
nguess
shows current number of guesses
C type : l_int32 |
int |
num
number of unknowns
C type : l_int32 |
com.sun.jna.ptr.IntByReference |
state
present state, including inits and
C type : l_int32* |
Constructor and Description |
---|
L_Sudoku() |
L_Sudoku(int num,
com.sun.jna.ptr.IntByReference locs,
int current,
com.sun.jna.ptr.IntByReference init,
com.sun.jna.ptr.IntByReference state,
int nguess,
int finished,
int failure) |
L_Sudoku(com.sun.jna.Pointer peer) |
Modifier and Type | Method and Description |
---|---|
protected java.util.List<?> |
getFieldOrder() |
allocateMemory, allocateMemory, autoAllocate, autoRead, autoRead, autoWrite, autoWrite, cacheTypeInfo, clear, ensureAllocated, equals, fieldOffset, getAutoRead, getAutoWrite, getFieldList, getFields, getNativeAlignment, getNativeSize, getNativeSize, getPointer, getStringEncoding, getStructAlignment, hashCode, newInstance, newInstance, read, readField, readField, setAlignType, setAutoRead, setAutoSynch, setAutoWrite, setFieldOrder, setStringEncoding, size, sortFields, toArray, toArray, toString, toString, useMemory, useMemory, write, writeField, writeField, writeField
public int num
public com.sun.jna.ptr.IntByReference locs
public int current
public com.sun.jna.ptr.IntByReference init
public com.sun.jna.ptr.IntByReference state
public int nguess
public int finished
public int failure
public L_Sudoku()
public L_Sudoku(int num, com.sun.jna.ptr.IntByReference locs, int current, com.sun.jna.ptr.IntByReference init, com.sun.jna.ptr.IntByReference state, int nguess, int finished, int failure)
num
- number of unknownslocs
- location of unknownscurrent
- index into @locs of current locationinit
- initial state, with 0 representingstate
- present state, including inits andnguess
- shows current number of guessesfinished
- set to 1 when solvedfailure
- set to 1 if no solution is possiblepublic L_Sudoku(com.sun.jna.Pointer peer)