Google OR-Tools v9.15
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
elements.h File Reference
#include <ostream>
#include <type_traits>
#include "absl/strings/string_view.h"
#include "ortools/base/array.h"
#include "ortools/math_opt/elemental/tagged_id.h"

Go to the source code of this file.

Classes

struct  operations_research::math_opt::is_element_id< T >
struct  operations_research::math_opt::is_element_id< ElementId< element_type > >

Namespaces

namespace  operations_research
 OR-Tools root namespace.
namespace  operations_research::math_opt

Typedefs

template<ElementType element_type>
using operations_research::math_opt::ElementId = TaggedId<element_type>
template<ElementType element_type, typename Container>
using operations_research::math_opt::ElementIdsConstView = TaggedIdsConstView<element_type, Container>
template<ElementType element_type>
using operations_research::math_opt::ElementIdsVector = TaggedIdsVector<element_type>
template<ElementType element_type>
using operations_research::math_opt::ElementIdsSpan = TaggedIdsSpan<element_type>
using operations_research::math_opt::VariableId = ElementId<ElementType::kVariable>
using operations_research::math_opt::LinearConstraintId = ElementId<ElementType::kLinearConstraint>
using operations_research::math_opt::AuxiliaryObjectiveId = ElementId<ElementType::kAuxiliaryObjective>
using operations_research::math_opt::QuadraticConstraintId = ElementId<ElementType::kQuadraticConstraint>
using operations_research::math_opt::IndicatorConstraintId = ElementId<ElementType::kIndicatorConstraint>

Enumerations

enum class  operations_research::math_opt::ElementType {
  operations_research::math_opt::kVariable , operations_research::math_opt::kLinearConstraint , operations_research::math_opt::kAuxiliaryObjective , operations_research::math_opt::kQuadraticConstraint ,
  operations_research::math_opt::kIndicatorConstraint
}

Functions

absl::string_view operations_research::math_opt::ToString (const ElementType element_type)
std::ostream & operations_research::math_opt::operator<< (std::ostream &ostr, const ElementType element_type)
template<typename Sink>
void operations_research::math_opt::AbslStringify (Sink &sink, ElementType element_type)

Variables

constexpr auto operations_research::math_opt::kElements
constexpr int operations_research::math_opt::kNumElements = static_cast<int>(kElements.size())
constexpr absl::string_view operations_research::math_opt::kElementNames [kNumElements]
constexpr absl::string_view operations_research::math_opt::kShortElementNames [kNumElements]
template<typename T>
static constexpr bool operations_research::math_opt::is_element_id_v = is_element_id<T>::value