Class AssignmentSequenceContainer

java.lang.Object
com.google.ortools.constraintsolver.AssignmentSequenceContainer

public class AssignmentSequenceContainer extends Object
  • Field Details

    • swigCMemOwn

      protected transient boolean swigCMemOwn
  • Constructor Details

    • AssignmentSequenceContainer

      public AssignmentSequenceContainer(long cPtr, boolean cMemoryOwn)
    • AssignmentSequenceContainer

      public AssignmentSequenceContainer()
  • Method Details

    • getCPtr

      public static long getCPtr(AssignmentSequenceContainer obj)
    • swigRelease

      public static long swigRelease(AssignmentSequenceContainer obj)
    • finalize

      protected void finalize()
      Overrides:
      finalize in class Object
    • delete

      public void delete()
    • add

      public SequenceVarElement add(SequenceVar var)
    • fastAdd

      public SequenceVarElement fastAdd(SequenceVar var)
      Adds element without checking its presence in the container.
    • addAtPosition

      public SequenceVarElement addAtPosition(SequenceVar 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(AssignmentSequenceContainer container)
      Copies the elements of 'container' which are already in the calling
      container.
    • copy

      public void copy(AssignmentSequenceContainer container)
      Copies all the elements of 'container' to this container, clearing its
      previous content.
    • contains

      public boolean contains(SequenceVar var)
    • mutableElement

      public SequenceVarElement mutableElement(SequenceVar var)
    • element

      public SequenceVarElement element(SequenceVar var)
    • mutableElement

      public SequenceVarElement mutableElement(int index)
    • element

      public SequenceVarElement element(int index)
    • size

      public int size()
    • store

      public void store()
    • restore

      public void restore()
    • AreAllElementsBound

      public boolean AreAllElementsBound()