![]() |
Google OR-Tools v9.14
a fast and portable software suite for combinatorial optimization
|
#include <array>#include <string>#include <tuple>#include <type_traits>#include "absl/log/log.h"#include "absl/strings/str_cat.h"#include "ortools/math_opt/elemental/arrays.h"#include "ortools/math_opt/elemental/attr_key.h"#include "ortools/math_opt/elemental/attributes.h"#include "ortools/math_opt/elemental/elements.h"#include "ortools/util/fp_roundtrip_conv.h"Go to the source code of this file.
Classes | |
| struct | operations_research::math_opt::AllAttrs |
| A helper to manipulate the list of attributes. More... | |
| struct | operations_research::math_opt::EnumeratedTupleCpp17Helper< ValueType > |
| class | operations_research::math_opt::AttrMap< ValueType > |
Namespaces | |
| namespace | operations_research |
| In SWIG mode, we don't want anything besides these top-level includes. | |
| namespace | operations_research::math_opt |
| An object oriented wrapper for quadratic constraints in ModelStorage. | |
Typedefs | |
| template<typename AttrT> | |
| using | operations_research::math_opt::AttrTypeDescriptorT |
| Returns the descriptor for attribute AttrT. | |
| template<typename AttrType> | |
| using | operations_research::math_opt::AttrKeyFor |
| The type of the AttrKey for attribute type AttrType. | |
| template<typename AttrType> | |
| using | operations_research::math_opt::ValueTypeFor = typename AttrTypeDescriptorT<AttrType>::ValueType |
| The value type for attribute type AttrType. | |
| template<int n, template< int i > typename ValueType> | |
| using | operations_research::math_opt::EnumeratedTuple |
| A tuple of ValueType<i> for i in 0..n. | |
Functions | |
| template<auto attr> | |
| constexpr AttrTypeDescriptorT< decltype(attr)>::ValueType | operations_research::math_opt::GetAttrDefaultValue () |
| template<typename AttrType> | |
| constexpr int | operations_research::math_opt::GetAttrKeySize () |
| template<auto attr> | |
| constexpr int | operations_research::math_opt::GetAttrKeySize () |
| template<typename AttrType> | |
| constexpr std::array< ElementType, GetAttrKeySize< AttrType >()> | operations_research::math_opt::GetElementTypes (const AttrType attr) |
| template<auto attr> | |
| constexpr std::array< ElementType, GetAttrKeySize< attr >()> | operations_research::math_opt::GetElementTypes () |
| template<typename AttrType, typename Fn, int n = 0> | |
| decltype(auto) | operations_research::math_opt::CallForAttr (AttrType attr, Fn &&fn) |
| Calls fn<attr>(). | |
| template<typename ValueType> | |
| std::string | operations_research::math_opt::FormatAttrValue (const ValueType v) |
| template<> | |
| std::string | operations_research::math_opt::FormatAttrValue (const double v) |
| template<> | |
| std::string | operations_research::math_opt::FormatAttrValue (const bool v) |