![]() |
Google OR-Tools v9.14
a fast and portable software suite for combinatorial optimization
|
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 619 of file variable_and_expressions.h.
#include <variable_and_expressions.h>
Public Types | |
using | IdType = QuadraticProductId |
Public Member Functions | |
QuadraticTermKey (ModelStorageCPtr storage, QuadraticProductId id) | |
QuadraticTermKey (Variable first_variable, Variable second_variable) | |
QuadraticProductId | typed_id () const |
Variable | first () const |
Returns the Variable with the smallest id. | |
Variable | second () const |
Returns the Variable the largest id. | |
Public Member Functions inherited from operations_research::math_opt::ModelStorageItem | |
ModelStorageCPtr | storage () const |
Friends | |
template<typename H> | |
H | AbslHashValue (H h, const QuadraticTermKey &key) |
Additional Inherited Members | |
Protected Member Functions inherited from operations_research::math_opt::ModelStorageItem | |
ModelStorageItem (ModelStorageCPtr storage) | |
ModelStorageItem (const ModelStorageItem &)=default | |
ModelStorageItem & | operator= (const ModelStorageItem &)=default |
ModelStorageItem (ModelStorageItem &&)=default | |
ModelStorageItem & | operator= (ModelStorageItem &&)=default |
~ModelStorageItem ()=default |
Definition at line 622 of file variable_and_expressions.h.
|
inline |
See https://en.cppreference.com/w/cpp/named_req/Swappable for details.
Definition at line 1998 of file variable_and_expressions.h.
|
inline |
Definition at line 2008 of file variable_and_expressions.h.
|
inline |
Returns the Variable with the smallest id.
Definition at line 636 of file variable_and_expressions.h.
|
inline |
Returns the Variable the largest id.
Definition at line 639 of file variable_and_expressions.h.
|
inline |
Definition at line 2016 of file variable_and_expressions.h.
|
friend |
Definition at line 2019 of file variable_and_expressions.h.