Google OR-Tools v9.11
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
com.google.ortools.constraintsolver.AssignmentIntContainer Class Reference

Public Member Functions

synchronized void delete ()
 
 AssignmentIntContainer ()
 
IntVarElement add (IntVar var)
 
IntVarElement fastAdd (IntVar var)
 
IntVarElement addAtPosition (IntVar var, int position)
 
void clear ()
 
void resize (long size)
 
boolean empty ()
 
void copyIntersection (AssignmentIntContainer container)
 
void copy (AssignmentIntContainer container)
 
boolean contains (IntVar var)
 
IntVarElement mutableElement (IntVar var)
 
IntVarElement element (IntVar var)
 
IntVarElement mutableElement (int index)
 
IntVarElement element (int index)
 
int size ()
 
void store ()
 
void restore ()
 
boolean AreAllElementsBound ()
 

Protected Member Functions

 AssignmentIntContainer (long cPtr, boolean cMemoryOwn)
 
void finalize ()
 

Static Protected Member Functions

static long getCPtr (AssignmentIntContainer obj)
 
static long swigRelease (AssignmentIntContainer obj)
 

Protected Attributes

transient boolean swigCMemOwn
 

Detailed Description

Definition at line 11 of file AssignmentIntContainer.java.

Constructor & Destructor Documentation

◆ AssignmentIntContainer() [1/2]

com.google.ortools.constraintsolver.AssignmentIntContainer.AssignmentIntContainer ( long cPtr,
boolean cMemoryOwn )
protected

Definition at line 15 of file AssignmentIntContainer.java.

◆ AssignmentIntContainer() [2/2]

com.google.ortools.constraintsolver.AssignmentIntContainer.AssignmentIntContainer ( )

Definition at line 51 of file AssignmentIntContainer.java.

Member Function Documentation

◆ add()

IntVarElement com.google.ortools.constraintsolver.AssignmentIntContainer.add ( IntVar var)

Definition at line 55 of file AssignmentIntContainer.java.

◆ addAtPosition()

IntVarElement com.google.ortools.constraintsolver.AssignmentIntContainer.addAtPosition ( IntVar var,
int position )

Advanced usage: Adds element at a given position; position has to have
been allocated with AssignmentContainer::Resize() beforehand.

Definition at line 72 of file AssignmentIntContainer.java.

◆ AreAllElementsBound()

boolean com.google.ortools.constraintsolver.AssignmentIntContainer.AreAllElementsBound ( )

Definition at line 143 of file AssignmentIntContainer.java.

◆ clear()

void com.google.ortools.constraintsolver.AssignmentIntContainer.clear ( )

Definition at line 77 of file AssignmentIntContainer.java.

◆ contains()

boolean com.google.ortools.constraintsolver.AssignmentIntContainer.contains ( IntVar var)

Definition at line 109 of file AssignmentIntContainer.java.

◆ copy()

void com.google.ortools.constraintsolver.AssignmentIntContainer.copy ( AssignmentIntContainer container)

Copies all the elements of 'container' to this container, clearing its
previous content.

Definition at line 105 of file AssignmentIntContainer.java.

◆ copyIntersection()

void com.google.ortools.constraintsolver.AssignmentIntContainer.copyIntersection ( AssignmentIntContainer container)

Copies the elements of 'container' which are already in the calling
container.

Definition at line 97 of file AssignmentIntContainer.java.

◆ delete()

synchronized void com.google.ortools.constraintsolver.AssignmentIntContainer.delete ( )

Definition at line 41 of file AssignmentIntContainer.java.

◆ element() [1/2]

IntVarElement com.google.ortools.constraintsolver.AssignmentIntContainer.element ( int index)

Definition at line 127 of file AssignmentIntContainer.java.

◆ element() [2/2]

IntVarElement com.google.ortools.constraintsolver.AssignmentIntContainer.element ( IntVar var)

Definition at line 118 of file AssignmentIntContainer.java.

◆ empty()

boolean com.google.ortools.constraintsolver.AssignmentIntContainer.empty ( )

Definition at line 89 of file AssignmentIntContainer.java.

◆ fastAdd()

IntVarElement com.google.ortools.constraintsolver.AssignmentIntContainer.fastAdd ( IntVar var)

Adds element without checking its presence in the container.

Definition at line 63 of file AssignmentIntContainer.java.

◆ finalize()

void com.google.ortools.constraintsolver.AssignmentIntContainer.finalize ( )
protected

Definition at line 37 of file AssignmentIntContainer.java.

◆ getCPtr()

static long com.google.ortools.constraintsolver.AssignmentIntContainer.getCPtr ( AssignmentIntContainer obj)
staticprotected

Definition at line 20 of file AssignmentIntContainer.java.

◆ mutableElement() [1/2]

IntVarElement com.google.ortools.constraintsolver.AssignmentIntContainer.mutableElement ( int index)

Definition at line 122 of file AssignmentIntContainer.java.

◆ mutableElement() [2/2]

IntVarElement com.google.ortools.constraintsolver.AssignmentIntContainer.mutableElement ( IntVar var)

Definition at line 113 of file AssignmentIntContainer.java.

◆ resize()

void com.google.ortools.constraintsolver.AssignmentIntContainer.resize ( long size)

Advanced usage: Resizes the container, potentially adding elements with
null variables.

Definition at line 85 of file AssignmentIntContainer.java.

◆ restore()

void com.google.ortools.constraintsolver.AssignmentIntContainer.restore ( )

Definition at line 139 of file AssignmentIntContainer.java.

◆ size()

int com.google.ortools.constraintsolver.AssignmentIntContainer.size ( )

Definition at line 131 of file AssignmentIntContainer.java.

◆ store()

void com.google.ortools.constraintsolver.AssignmentIntContainer.store ( )

Definition at line 135 of file AssignmentIntContainer.java.

◆ swigRelease()

static long com.google.ortools.constraintsolver.AssignmentIntContainer.swigRelease ( AssignmentIntContainer obj)
staticprotected

Definition at line 24 of file AssignmentIntContainer.java.

Member Data Documentation

◆ swigCMemOwn

transient boolean com.google.ortools.constraintsolver.AssignmentIntContainer.swigCMemOwn
protected

Definition at line 13 of file AssignmentIntContainer.java.


The documentation for this class was generated from the following file: