@Name(value="L_Sudoku")
public static class lept.L_SUDOKU
extends org.bytedeco.javacpp.Pointer
The L_Sudoku holds all the information of the current state.
The input to sudokuCreate() is a file with any number of lines
starting with '#', followed by 9 lines consisting of 9 numbers
in each line. These have the known values and use 0 for the unknowns.
Blank lines are ignored.
The %locs array holds the indices of the unknowns, numbered
left-to-right and top-to-bottom from 0 to 80. The array size
is initialized to %num. %current is the index into the %locs
array of the current guess: locs[current].
The %state array is used to determine the validity of each guess.
It is of size 81, and is initialized by setting the unknowns to 0
and the knowns to their input values.
| Constructor and Description |
|---|
L_SUDOKU()
Default native constructor.
|
L_SUDOKU(long size)
Native array allocator.
|
L_SUDOKU(org.bytedeco.javacpp.Pointer p)
Pointer cast constructor.
|
| Modifier and Type | Method and Description |
|---|---|
int |
current()
index into %locs of current location
|
lept.L_SUDOKU |
current(int current) |
int |
failure()
set to 1 if no solution is possible
|
lept.L_SUDOKU |
failure(int failure) |
int |
finished()
set to 1 when solved
|
lept.L_SUDOKU |
finished(int finished) |
org.bytedeco.javacpp.IntPointer |
init()
the unknowns
|
lept.L_SUDOKU |
init(org.bytedeco.javacpp.IntPointer init) |
org.bytedeco.javacpp.IntPointer |
locs()
location of unknowns
|
lept.L_SUDOKU |
locs(org.bytedeco.javacpp.IntPointer locs) |
int |
nguess()
shows current number of guesses
|
lept.L_SUDOKU |
nguess(int nguess) |
int |
num()
number of unknowns
|
lept.L_SUDOKU |
num(int num) |
lept.L_SUDOKU |
position(long position) |
org.bytedeco.javacpp.IntPointer |
state()
guesses of unknowns up to %current
|
lept.L_SUDOKU |
state(org.bytedeco.javacpp.IntPointer state) |
address, asBuffer, asByteBuffer, availablePhysicalBytes, calloc, capacity, capacity, close, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, formatBytes, free, hashCode, isNull, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetof, parseBytes, physicalBytes, position, put, realloc, setNull, sizeof, toString, totalBytes, totalPhysicalBytes, withDeallocator, zeropublic L_SUDOKU()
public L_SUDOKU(long size)
Pointer.position(long).public L_SUDOKU(org.bytedeco.javacpp.Pointer p)
Pointer.Pointer(Pointer).public lept.L_SUDOKU position(long position)
position in class org.bytedeco.javacpp.Pointer@Cast(value="l_int32") public int num()
public lept.L_SUDOKU num(int num)
@Cast(value="l_int32*") public org.bytedeco.javacpp.IntPointer locs()
public lept.L_SUDOKU locs(org.bytedeco.javacpp.IntPointer locs)
@Cast(value="l_int32") public int current()
public lept.L_SUDOKU current(int current)
@Cast(value="l_int32*") public org.bytedeco.javacpp.IntPointer init()
public lept.L_SUDOKU init(org.bytedeco.javacpp.IntPointer init)
@Cast(value="l_int32*") public org.bytedeco.javacpp.IntPointer state()
public lept.L_SUDOKU state(org.bytedeco.javacpp.IntPointer state)
@Cast(value="l_int32") public int nguess()
public lept.L_SUDOKU nguess(int nguess)
@Cast(value="l_int32") public int finished()
public lept.L_SUDOKU finished(int finished)
@Cast(value="l_int32") public int failure()
public lept.L_SUDOKU failure(int failure)
Copyright © 2018. All rights reserved.