Add absl::Stringify for protobufs in base/logging.h; fixes all around
This commit is contained in:
@@ -19,10 +19,10 @@
|
||||
#ifndef OR_TOOLS_EXAMPLES_FAP_MODEL_PRINTER_H_
|
||||
#define OR_TOOLS_EXAMPLES_FAP_MODEL_PRINTER_H_
|
||||
|
||||
#include <map>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
#include "absl/container/btree_map.h"
|
||||
#include "absl/strings/str_format.h"
|
||||
#include "examples/cpp/fap_parser.h"
|
||||
|
||||
@@ -31,7 +31,7 @@ namespace operations_research {
|
||||
// Prints the instance of the Frequency Assignment Problem.
|
||||
class FapModelPrinter {
|
||||
public:
|
||||
FapModelPrinter(const std::map<int, FapVariable>& variables,
|
||||
FapModelPrinter(const absl::btree_map<int, FapVariable>& variables,
|
||||
const std::vector<FapConstraint>& constraints,
|
||||
const std::string& objective, const std::vector<int>& values);
|
||||
~FapModelPrinter();
|
||||
@@ -42,14 +42,14 @@ class FapModelPrinter {
|
||||
void PrintFapValues();
|
||||
|
||||
private:
|
||||
const std::map<int, FapVariable> variables_;
|
||||
const absl::btree_map<int, FapVariable> variables_;
|
||||
const std::vector<FapConstraint> constraints_;
|
||||
const std::string objective_;
|
||||
const std::vector<int> values_;
|
||||
DISALLOW_COPY_AND_ASSIGN(FapModelPrinter);
|
||||
};
|
||||
|
||||
FapModelPrinter::FapModelPrinter(const std::map<int, FapVariable>& variables,
|
||||
FapModelPrinter::FapModelPrinter(const absl::btree_map<int, FapVariable>& variables,
|
||||
const std::vector<FapConstraint>& constraints,
|
||||
const std::string& objective,
|
||||
const std::vector<int>& values)
|
||||
|
||||
Reference in New Issue
Block a user