C++ Reference
C++ Reference: Graph
flow_problem.pb.h
Go to the documentation of this file.
56 extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_ortools_2fgraph_2fflow_5fproblem_2eproto;
69 template<> ::operations_research::Arc* Arena::CreateMaybeMessage<::operations_research::Arc>(Arena*);
70 template<> ::operations_research::FlowModel* Arena::CreateMaybeMessage<::operations_research::FlowModel>(Arena*);
71 template<> ::operations_research::Node* Arena::CreateMaybeMessage<::operations_research::Node>(Arena*);
81 constexpr FlowModel_ProblemType FlowModel_ProblemType_ProblemType_MIN = FlowModel_ProblemType_LINEAR_SUM_ASSIGNMENT;
82 constexpr FlowModel_ProblemType FlowModel_ProblemType_ProblemType_MAX = FlowModel_ProblemType_MIN_COST_FLOW;
83 constexpr int FlowModel_ProblemType_ProblemType_ARRAYSIZE = FlowModel_ProblemType_ProblemType_MAX + 1;
102 public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:operations_research.Arc) */ {
129 return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
185 static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message*to, const ::PROTOBUF_NAMESPACE_ID::Message&from);
191 const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
193 ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
298 public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:operations_research.Node) */ {
325 return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
381 static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message*to, const ::PROTOBUF_NAMESPACE_ID::Message&from);
387 const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
389 ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
464 public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:operations_research.FlowModel) */ {
491 return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
547 static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message*to, const ::PROTOBUF_NAMESPACE_ID::Message&from);
553 const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
555 ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
657 // optional .operations_research.FlowModel.ProblemType problem_type = 3 [default = MIN_COST_FLOW];
951 // optional .operations_research.FlowModel.ProblemType problem_type = 3 [default = MIN_COST_FLOW];
970 inline void FlowModel::_internal_set_problem_type(::operations_research::FlowModel_ProblemType value) {
994 template <> struct is_proto_enum< ::operations_research::FlowModel_ProblemType> : ::std::true_type {};
996 inline const EnumDescriptor* GetEnumDescriptor< ::operations_research::FlowModel_ProblemType>() {
1005 #endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_ortools_2fgraph_2fflow_5fproblem_2eproto
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final
static const Node & default_instance()
Definition: flow_problem.pb.h:340
FlowModel(FlowModel &&from) noexcept
Definition: flow_problem.pb.h:471
const std::string & FlowModel_ProblemType_Name(T enum_t_value)
Definition: flow_problem.pb.h:87
static const ClassData _class_data_
Definition: flow_problem.pb.h:575
constexpr int FlowModel_ProblemType_ProblemType_ARRAYSIZE
Definition: flow_problem.pb.h:83
::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::operations_research::Node > * mutable_node()
Definition: flow_problem.pb.h:886
static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[]
Definition: flow_problem.pb.h:52
const char * _InternalParse(const char *ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext *ctx) final
static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries [] PROTOBUF_SECTION_VARIABLE(protodesc_cold)
int GetCachedSize() const final
Definition: flow_problem.pb.h:194
const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_ortools_2fgraph_2fflow_5fproblem_2eproto
const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::operations_research::Node > & node() const
Definition: flow_problem.pb.h:906
Node & operator=(const Node &from)
Definition: flow_problem.pb.h:310
bool IsInitialized() const final
~Arc() override
void clear_tail_node_id()
Definition: flow_problem.pb.h:703
static constexpr ProblemType ProblemType_MIN
Definition: flow_problem.pb.h:592
void clear_head_node_id()
Definition: flow_problem.pb.h:731
static bool ProblemType_IsValid(int value)
Definition: flow_problem.pb.h:589
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * descriptor()
Definition: flow_problem.pb.h:331
FlowModel & operator=(const FlowModel &from)
Definition: flow_problem.pb.h:476
void MergeFrom(const Arc &from)
static const ClassData _class_data_
Definition: flow_problem.pb.h:409
Definition: flow_problem.pb.h:101
static const Arc & default_instance()
Definition: flow_problem.pb.h:144
static const FlowModel & default_instance()
Definition: flow_problem.pb.h:506
~Node() override
::operations_research::Arc * add_arc()
Definition: flow_problem.pb.h:940
Node * New(::PROTOBUF_NAMESPACE_ID::Arena *arena) const final
Definition: flow_problem.pb.h:373
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * descriptor()
Definition: flow_problem.pb.h:135
void set_unit_cost(::PROTOBUF_NAMESPACE_ID::int64 value)
Definition: flow_problem.pb.h:802
void CopyFrom(const Arc &from)
::PROTOBUF_NAMESPACE_ID::int64 unit_cost() const
Definition: flow_problem.pb.h:794
size_t ByteSizeLong() const final
void set_tail_node_id(::PROTOBUF_NAMESPACE_ID::int64 value)
Definition: flow_problem.pb.h:718
const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet & unknown_fields() const
Definition: flow_problem.pb.h:128
FlowModelDefaultTypeInternal _FlowModel_default_instance_
static const ::PROTOBUF_NAMESPACE_ID::uint32 offsets[]
Definition: flow_problem.pb.h:54
::PROTOBUF_NAMESPACE_ID::int64 id() const
Definition: flow_problem.pb.h:826
::PROTOBUF_NAMESPACE_ID::int64 tail_node_id() const
Definition: flow_problem.pb.h:710
bool has_problem_type() const
Definition: flow_problem.pb.h:956
void set_id(::PROTOBUF_NAMESPACE_ID::int64 value)
Definition: flow_problem.pb.h:834
void CopyFrom(const FlowModel &from)
void set_problem_type(::operations_research::FlowModel_ProblemType value)
Definition: flow_problem.pb.h:975
FlowModel * New(::PROTOBUF_NAMESPACE_ID::Arena *arena) const final
Definition: flow_problem.pb.h:539
static const std::string & ProblemType_Name(T enum_t_value)
Definition: flow_problem.pb.h:603
ArcDefaultTypeInternal _Arc_default_instance_
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * descriptor()
Definition: flow_problem.pb.h:497
static bool ProblemType_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name, ProblemType *value)
Definition: flow_problem.pb.h:609
Node & operator=(Node &&from) noexcept
Definition: flow_problem.pb.h:314
static const FlowModel * internal_default_instance()
Definition: flow_problem.pb.h:509
static constexpr ProblemType LINEAR_SUM_ASSIGNMENT
Definition: flow_problem.pb.h:583
::PROTOBUF_NAMESPACE_ID::uint8 * _InternalSerialize(::PROTOBUF_NAMESPACE_ID::uint8 *target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream *stream) const final
::PROTOBUF_NAMESPACE_ID::int64 supply() const
Definition: flow_problem.pb.h:854
const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet & unknown_fields() const
Definition: flow_problem.pb.h:324
constexpr FlowModel_ProblemType FlowModel_ProblemType_ProblemType_MIN
Definition: flow_problem.pb.h:81
static const ::PROTOBUF_NAMESPACE_ID::Reflection * GetReflection()
Definition: flow_problem.pb.h:141
void set_supply(::PROTOBUF_NAMESPACE_ID::int64 value)
Definition: flow_problem.pb.h:862
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * GetDescriptor()
Definition: flow_problem.pb.h:138
static constexpr int ProblemType_ARRAYSIZE
Definition: flow_problem.pb.h:596
static const Node * internal_default_instance()
Definition: flow_problem.pb.h:343
constexpr FlowModel_ProblemType FlowModel_ProblemType_ProblemType_MAX
Definition: flow_problem.pb.h:82
void CopyFrom(const Node &from)
::PROTOBUF_NAMESPACE_ID::uint8 * _InternalSerialize(::PROTOBUF_NAMESPACE_ID::uint8 *target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream *stream) const final
NodeDefaultTypeInternal _Node_default_instance_
static constexpr int kIndexInFileMessages
Definition: flow_problem.pb.h:151
size_t ByteSizeLong() const final
static constexpr ProblemType MAX_FLOW
Definition: flow_problem.pb.h:585
static constexpr ProblemType MIN_COST_FLOW
Definition: flow_problem.pb.h:587
void MergeFrom(const FlowModel &from)
int GetCachedSize() const final
Definition: flow_problem.pb.h:556
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * GetDescriptor()
Definition: flow_problem.pb.h:500
void set_head_node_id(::PROTOBUF_NAMESPACE_ID::int64 value)
Definition: flow_problem.pb.h:746
static constexpr ProblemType ProblemType_MAX
Definition: flow_problem.pb.h:594
size_t ByteSizeLong() const final
::PROTOBUF_NAMESPACE_ID::int64 head_node_id() const
Definition: flow_problem.pb.h:738
const char * _InternalParse(const char *ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext *ctx) final
~FlowModel() override
const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor * FlowModel_ProblemType_descriptor()
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData * GetClassData() const final
static const Arc * internal_default_instance()
Definition: flow_problem.pb.h:147
::operations_research::FlowModel_ProblemType problem_type() const
Definition: flow_problem.pb.h:966
static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[]
Definition: flow_problem.pb.h:53
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData * GetClassData() const final
Definition: connected_components.h:138
const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::operations_research::Arc > & arc() const
Definition: flow_problem.pb.h:946
Arc & operator=(Arc &&from) noexcept
Definition: flow_problem.pb.h:118
FlowModel & operator=(FlowModel &&from) noexcept
Definition: flow_problem.pb.h:480
::operations_research::Node * add_node()
Definition: flow_problem.pb.h:900
int GetCachedSize() const final
Definition: flow_problem.pb.h:390
void UnsafeArenaSwap(Arc *other)
Definition: flow_problem.pb.h:165
Arc & operator=(const Arc &from)
Definition: flow_problem.pb.h:114
inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet * mutable_unknown_fields()
Definition: flow_problem.pb.h:493
static const ::PROTOBUF_NAMESPACE_ID::Reflection * GetReflection()
Definition: flow_problem.pb.h:503
bool IsInitialized() const final
const char * _InternalParse(const char *ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext *ctx) final
bool has_tail_node_id() const
Definition: flow_problem.pb.h:700
Definition: christofides.h:43
void UnsafeArenaSwap(Node *other)
Definition: flow_problem.pb.h:361
const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet & unknown_fields() const
Definition: flow_problem.pb.h:490
::PROTOBUF_NAMESPACE_ID::int64 capacity() const
Definition: flow_problem.pb.h:766
bool FlowModel_ProblemType_IsValid(int value)
static constexpr int kIndexInFileMessages
Definition: flow_problem.pb.h:513
bool IsInitialized() const final
inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet * mutable_unknown_fields()
Definition: flow_problem.pb.h:131
void set_capacity(::PROTOBUF_NAMESPACE_ID::int64 value)
Definition: flow_problem.pb.h:774
bool has_head_node_id() const
Definition: flow_problem.pb.h:728
void clear_problem_type()
Definition: flow_problem.pb.h:959
::PROTOBUF_NAMESPACE_ID::uint8 * _InternalSerialize(::PROTOBUF_NAMESPACE_ID::uint8 *target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream *stream) const final
static const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor * ProblemType_descriptor()
Definition: flow_problem.pb.h:599
::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::operations_research::Arc > * mutable_arc()
Definition: flow_problem.pb.h:926
bool FlowModel_ProblemType_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name, FlowModel_ProblemType *value)
Definition: flow_problem.pb.h:94
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * GetDescriptor()
Definition: flow_problem.pb.h:334
static const ::PROTOBUF_NAMESPACE_ID::Reflection * GetReflection()
Definition: flow_problem.pb.h:337
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final
friend void swap(FlowModel &a, FlowModel &b)
Definition: flow_problem.pb.h:516
Definition: flow_problem.pb.h:297
static constexpr int kIndexInFileMessages
Definition: flow_problem.pb.h:347
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData * GetClassData() const final
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final
inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet * mutable_unknown_fields()
Definition: flow_problem.pb.h:327
void UnsafeArenaSwap(FlowModel *other)
Definition: flow_problem.pb.h:527
static const ClassData _class_data_
Definition: flow_problem.pb.h:213
void MergeFrom(const Node &from)
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final
Arc * New(::PROTOBUF_NAMESPACE_ID::Arena *arena) const final
Definition: flow_problem.pb.h:177