Class AssignmentIntContainer
- java.lang.Object
-
- com.google.ortools.constraintsolver.AssignmentIntContainer
-
public class AssignmentIntContainer extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description protected booleanswigCMemOwn
-
Constructor Summary
Constructors Modifier Constructor Description AssignmentIntContainer()protectedAssignmentIntContainer(long cPtr, boolean cMemoryOwn)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description IntVarElementadd(IntVar var)IntVarElementaddAtPosition(IntVar var, int position)Advanced usage: Adds element at a given position; position has to have
been allocated with AssignmentContainer::Resize() beforehand.booleanAreAllElementsBound()voidclear()booleancontains(IntVar var)voidcopy(AssignmentIntContainer container)Copies all the elements of 'container' to this container, clearing its
previous content.voidcopyIntersection(AssignmentIntContainer container)Copies the elements of 'container' which are already in the calling
container.voiddelete()IntVarElementelement(int index)IntVarElementelement(IntVar var)booleanempty()IntVarElementfastAdd(IntVar var)Adds element without checking its presence in the container.protected voidfinalize()protected static longgetCPtr(AssignmentIntContainer obj)IntVarElementmutableElement(int index)IntVarElementmutableElement(IntVar var)voidresize(long size)Advanced usage: Resizes the container, potentially adding elements with
null variables.voidrestore()intsize()voidstore()protected static longswigRelease(AssignmentIntContainer obj)
-
-
-
Method Detail
-
getCPtr
protected static long getCPtr(AssignmentIntContainer obj)
-
swigRelease
protected static long swigRelease(AssignmentIntContainer obj)
-
finalize
protected void finalize()
- Overrides:
finalizein classjava.lang.Object
-
delete
public void delete()
-
add
public IntVarElement add(IntVar var)
-
fastAdd
public IntVarElement fastAdd(IntVar var)
Adds element without checking its presence in the container.
-
addAtPosition
public IntVarElement addAtPosition(IntVar var, int position)
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
public void copyIntersection(AssignmentIntContainer container)
Copies the elements of 'container' which are already in the calling
container.
-
copy
public void copy(AssignmentIntContainer container)
Copies all the elements of 'container' to this container, clearing its
previous content.
-
contains
public boolean contains(IntVar var)
-
mutableElement
public IntVarElement mutableElement(IntVar var)
-
element
public IntVarElement element(IntVar var)
-
mutableElement
public IntVarElement mutableElement(int index)
-
element
public IntVarElement element(int index)
-
size
public int size()
-
store
public void store()
-
restore
public void restore()
-
AreAllElementsBound
public boolean AreAllElementsBound()
-
-