Class AssignmentSequenceContainer
java.lang.Object
com.google.ortools.constraintsolver.AssignmentSequenceContainer
public class AssignmentSequenceContainer
extends java.lang.Object
-
Field Summary
Fields Modifier and Type Field Description protected booleanswigCMemOwn -
Constructor Summary
Constructors Modifier Constructor Description AssignmentSequenceContainer()protectedAssignmentSequenceContainer(long cPtr, boolean cMemoryOwn) -
Method Summary
Modifier and Type Method Description SequenceVarElementadd(SequenceVar var)SequenceVarElementaddAtPosition(SequenceVar var, int position)Advanced usage: Adds element at a given position; position has to have
been allocated with AssignmentContainer::Resize() beforehand.booleanAreAllElementsBound()voidclear()booleancontains(SequenceVar var)voidcopy(AssignmentSequenceContainer container)Copies all the elements of 'container' to this container, clearing its
previous content.voidcopyIntersection(AssignmentSequenceContainer container)Copies the elements of 'container' which are already in the calling
container.voiddelete()SequenceVarElementelement(int index)SequenceVarElementelement(SequenceVar var)booleanempty()SequenceVarElementfastAdd(SequenceVar var)Adds element without checking its presence in the container.protected voidfinalize()protected static longgetCPtr(AssignmentSequenceContainer obj)SequenceVarElementmutableElement(int index)SequenceVarElementmutableElement(SequenceVar var)voidresize(long size)Advanced usage: Resizes the container, potentially adding elements with
null variables.voidrestore()intsize()voidstore()Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
swigCMemOwn
protected transient boolean swigCMemOwn
-
-
Constructor Details
-
AssignmentSequenceContainer
protected AssignmentSequenceContainer(long cPtr, boolean cMemoryOwn) -
AssignmentSequenceContainer
public AssignmentSequenceContainer()
-
-
Method Details
-
getCPtr
-
finalize
protected void finalize()- Overrides:
finalizein classjava.lang.Object
-
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()
-