Google OR-Tools v9.15
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
operations_research::sat::Linear2Indices Class Reference

Detailed Description

Definition at line 104 of file precedences.h.

#include <precedences.h>

Public Member Functions

 Linear2Indices ()=default
LinearExpression2Index AddOrGet (LinearExpression2 expr)
LinearExpression2Index GetIndex (LinearExpression2 expr) const
LinearExpression2 GetExpression (LinearExpression2Index index) const
absl::Span< const LinearExpression2GetStoredLinear2Indices () const
absl::Span< const LinearExpression2Index > GetAllLinear2ContainingVariable (IntegerVariable var) const
absl::Span< const LinearExpression2Index > GetAllLinear2ContainingVariables (IntegerVariable var1, IntegerVariable var2) const

Constructor & Destructor Documentation

◆ Linear2Indices()

operations_research::sat::Linear2Indices::Linear2Indices ( )
default

Member Function Documentation

◆ AddOrGet()

LinearExpression2Index operations_research::sat::Linear2Indices::AddOrGet ( LinearExpression2 expr)

Definition at line 56 of file precedences.cc.

◆ GetAllLinear2ContainingVariable()

absl::Span< const LinearExpression2Index > operations_research::sat::Linear2Indices::GetAllLinear2ContainingVariable ( IntegerVariable var) const
inline

Definition at line 911 of file precedences.h.

◆ GetAllLinear2ContainingVariables()

absl::Span< const LinearExpression2Index > operations_research::sat::Linear2Indices::GetAllLinear2ContainingVariables ( IntegerVariable var1,
IntegerVariable var2 ) const
inline

Definition at line 919 of file precedences.h.

◆ GetExpression()

LinearExpression2 operations_research::sat::Linear2Indices::GetExpression ( LinearExpression2Index index) const
inline

Definition at line 896 of file precedences.h.

◆ GetIndex()

LinearExpression2Index operations_research::sat::Linear2Indices::GetIndex ( LinearExpression2 expr) const
inline

Definition at line 877 of file precedences.h.

◆ GetStoredLinear2Indices()

absl::Span< const LinearExpression2 > operations_research::sat::Linear2Indices::GetStoredLinear2Indices ( ) const
inline

Definition at line 123 of file precedences.h.


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