Google OR-Tools v9.14
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
elemental.h File Reference
#include <array>
#include <cstdint>
#include <memory>
#include <optional>
#include <ostream>
#include <string>
#include <vector>
#include "absl/log/check.h"
#include "absl/log/die_if_null.h"
#include "absl/status/status.h"
#include "absl/status/statusor.h"
#include "absl/strings/string_view.h"
#include "ortools/base/status_builder.h"
#include "ortools/math_opt/elemental/attr_key.h"
#include "ortools/math_opt/elemental/attr_storage.h"
#include "ortools/math_opt/elemental/derived_data.h"
#include "ortools/math_opt/elemental/diff.h"
#include "ortools/math_opt/elemental/element_ref_tracker.h"
#include "ortools/math_opt/elemental/element_storage.h"
#include "ortools/math_opt/elemental/elements.h"
#include "ortools/math_opt/elemental/thread_safe_id_map.h"
#include "ortools/math_opt/model.pb.h"
#include "ortools/math_opt/model_update.pb.h"

Go to the source code of this file.

Classes

class  operations_research::math_opt::Elemental
class  operations_research::math_opt::Elemental::DiffHandle
struct  operations_research::math_opt::Elemental::AlwaysOk
struct  operations_research::math_opt::Elemental::DiePolicy
struct  operations_research::math_opt::Elemental::StatusPolicy
struct  operations_research::math_opt::Elemental::UBPolicy

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.

Macros

#define ELEMENTAL_RETURN_IF_ERROR(expr)

Functions

template<typename Sink>
void operations_research::math_opt::AbslStringify (Sink &sink, const Elemental &elemental)
std::ostream & operations_research::math_opt::operator<< (std::ostream &ostr, const Elemental &elemental)

Macro Definition Documentation

◆ ELEMENTAL_RETURN_IF_ERROR

#define ELEMENTAL_RETURN_IF_ERROR ( expr)
Value:
{ \
auto error = (expr); \
if constexpr (!std::is_same_v<decltype(error), AlwaysOk>) { \
if (!error.ok()) { \
return error; \
} \
} \
}

Definition at line 423 of file elemental.h.