Class AssignmentIntContainer
java.lang.Object
com.google.ortools.constraintsolver.AssignmentIntContainer
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddAtPosition
(IntVar var, int position) Advanced usage: Adds element at a given position; position has to have
been allocated with AssignmentContainer::Resize() beforehand.boolean
void
clear()
boolean
void
copy
(AssignmentIntContainer container) Copies all the elements of 'container' to this container, clearing its
previous content.void
copyIntersection
(AssignmentIntContainer container) Copies the elements of 'container' which are already in the calling
container.void
delete()
element
(int index) boolean
empty()
Adds element without checking its presence in the container.protected void
finalize()
static long
mutableElement
(int index) mutableElement
(IntVar var) void
resize
(long size) Advanced usage: Resizes the container, potentially adding elements with
null variables.void
restore()
int
size()
void
store()
static long
-
Field Details
-
swigCMemOwn
protected transient boolean swigCMemOwn
-
-
Constructor Details
-
AssignmentIntContainer
public AssignmentIntContainer(long cPtr, boolean cMemoryOwn) -
AssignmentIntContainer
public AssignmentIntContainer()
-
-
Method Details
-
getCPtr
-
swigRelease
-
finalize
-
delete
public void delete() -
add
-
fastAdd
Adds element without checking its presence in the container. -
addAtPosition
Advanced usage: Adds element at a given position; position has to have
been allocated with AssignmentContainer::Resize() beforehand. -
clear
public void clear() -
resize
public void resize(long size) Advanced usage: Resizes the container, potentially adding elements with
null variables. -
empty
public boolean empty() -
copyIntersection
Copies the elements of 'container' which are already in the calling
container. -
copy
Copies all the elements of 'container' to this container, clearing its
previous content. -
contains
-
mutableElement
-
element
-
mutableElement
-
element
-
size
public int size() -
store
public void store() -
restore
public void restore() -
AreAllElementsBound
public boolean AreAllElementsBound()
-