![]() |
Google OR-Tools v9.12
a fast and portable software suite for combinatorial optimization
|
#include <algorithm>
#include <cstddef>
#include <cstdint>
#include <cstdlib>
#include <cstring>
#include <iterator>
#include <limits>
#include <new>
#include <type_traits>
#include <vector>
#include "absl/base/port.h"
#include "absl/debugging/leak_check.h"
#include "absl/log/check.h"
#include "absl/types/span.h"
#include "ortools/base/constant_divisor.h"
#include "ortools/base/logging.h"
#include "ortools/base/macros.h"
#include "ortools/base/types.h"
#include "ortools/graph/iterators.h"
Go to the source code of this file.
Namespaces | |
namespace | util |
A collections of i/o utilities for the Graph classes in ./graph.h. | |
Macros | |
#define | DEFINE_RANGE_BASED_ARC_ITERATION(c, t) |
#define | DEFINE_STL_ITERATOR_FUNCTIONS(iterator_class_name) |
Typedefs | |
typedef ListGraph | util::Graph |
Defining the simplest Graph interface as Graph for convenience. | |
Variables | |
template<typename NodeIndexType, typename ArcIndexType, bool HasNegativeReverseArcs> | |
const NodeIndexType | util::BaseGraph< NodeIndexType, ArcIndexType, HasNegativeReverseArcs >::kNilNode |
template<typename NodeIndexType, typename ArcIndexType, bool HasNegativeReverseArcs> | |
const ArcIndexType | util::BaseGraph< NodeIndexType, ArcIndexType, HasNegativeReverseArcs >::kNilArc |
#define DEFINE_RANGE_BASED_ARC_ITERATION | ( | c, | |
t ) |
Macros to wrap old style iteration into the new range-based for loop style. The parameters are:
#define DEFINE_STL_ITERATOR_FUNCTIONS | ( | iterator_class_name | ) |
Adapt our old iteration style to support range-based for loops. Add typedefs required by std::iterator_traits.