Google OR-Tools v9.11
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:
This type can be used as a key in ABSL hash containers.
Definition at line 650 of file variable_and_expressions.h.
Definition at line 653 of file variable_and_expressions.h.
|
inline |
See https://en.cppreference.com/w/cpp/named_req/Swappable for details.
Definition at line 2074 of file variable_and_expressions.h.
|
inline |
Definition at line 2084 of file variable_and_expressions.h.
|
inline |
Returns the Variable with the smallest id.
Definition at line 668 of file variable_and_expressions.h.
|
inline |
Returns the Variable the largest id.
Definition at line 671 of file variable_and_expressions.h.
|
inline |
Definition at line 2094 of file variable_and_expressions.h.
|
inline |
Definition at line 2092 of file variable_and_expressions.h.
|
friend |
Definition at line 2097 of file variable_and_expressions.h.