Google OR-Tools v9.9
a fast and portable software suite for combinatorial optimization
|
#include <variable_and_expressions.h>
Public Types | |
using | IdType = QuadraticProductId |
Public Member Functions | |
QuadraticTermKey (const ModelStorage *storage, QuadraticProductId id) | |
QuadraticTermKey (Variable first_variable, Variable second_variable) | |
QuadraticProductId | typed_id () const |
const ModelStorage * | storage () const |
Variable | first () const |
Returns the Variable with the smallest id. | |
Variable | second () const |
Returns the Variable the largest id. | |
Friends | |
template<typename H > | |
H | AbslHashValue (H h, const QuadraticTermKey &key) |
Couples a QuadraticProductId with a ModelStorage, for use with IdMaps. Namely, this key type satisfies the requirements stated in key_types.h. Invariant:
Definition at line 645 of file variable_and_expressions.h.
Definition at line 648 of file variable_and_expressions.h.
|
inline |
See https://en.cppreference.com/w/cpp/named_req/Swappable for details.
Definition at line 2068 of file variable_and_expressions.h.
|
inline |
Definition at line 2078 of file variable_and_expressions.h.
|
inline |
Returns the Variable with the smallest id.
Definition at line 663 of file variable_and_expressions.h.
|
inline |
Returns the Variable the largest id.
Definition at line 666 of file variable_and_expressions.h.
|
inline |
Definition at line 2088 of file variable_and_expressions.h.
|
inline |
Definition at line 2086 of file variable_and_expressions.h.
|
friend |
Definition at line 2091 of file variable_and_expressions.h.