C++ Reference
C++ Reference: Graph
flow_problem.pb.h
Go to the documentation of this file.
56extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_ortools_2fgraph_2fflow_5fproblem_2eproto;
69template<> ::operations_research::Arc* Arena::CreateMaybeMessage<::operations_research::Arc>(Arena*);
70template<> ::operations_research::FlowModel* Arena::CreateMaybeMessage<::operations_research::FlowModel>(Arena*);
71template<> ::operations_research::Node* Arena::CreateMaybeMessage<::operations_research::Node>(Arena*);
79};
81constexpr FlowModel_ProblemType FlowModel_ProblemType_ProblemType_MIN = FlowModel_ProblemType_LINEAR_SUM_ASSIGNMENT;
82constexpr FlowModel_ProblemType FlowModel_ProblemType_ProblemType_MAX = FlowModel_ProblemType_MIN_COST_FLOW;
83constexpr int FlowModel_ProblemType_ProblemType_ARRAYSIZE = FlowModel_ProblemType_ProblemType_MAX + 1;
102 public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:operations_research.Arc) */ {
133 return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
189 static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from);
195 const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
197 ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
302 public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:operations_research.Node) */ {
333 return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
389 static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from);
395 const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
397 ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
472 public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:operations_research.FlowModel) */ {
503 return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
559 static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from);
565 const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
567 ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
669 // optional .operations_research.FlowModel.ProblemType problem_type = 3 [default = MIN_COST_FLOW];
963// optional .operations_research.FlowModel.ProblemType problem_type = 3 [default = MIN_COST_FLOW];
982inline void FlowModel::_internal_set_problem_type(::operations_research::FlowModel_ProblemType value) {
1006template <> struct is_proto_enum< ::operations_research::FlowModel_ProblemType> : ::std::true_type {};
1008inline const EnumDescriptor* GetEnumDescriptor< ::operations_research::FlowModel_ProblemType>() {
1017#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_ortools_2fgraph_2fflow_5fproblem_2eproto
Definition: flow_problem.pb.h:102
bool has_tail_node_id() const
Definition: flow_problem.pb.h:712
void set_head_node_id(::PROTOBUF_NAMESPACE_ID::int64 value)
Definition: flow_problem.pb.h:758
void set_capacity(::PROTOBUF_NAMESPACE_ID::int64 value)
Definition: flow_problem.pb.h:786
static const Arc & default_instance()
Definition: flow_problem.pb.h:148
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final
static const Arc * internal_default_instance()
Definition: flow_problem.pb.h:151
@ kCapacityFieldNumber
Definition: flow_problem.pb.h:230
@ kTailNodeIdFieldNumber
Definition: flow_problem.pb.h:227
@ kHeadNodeIdFieldNumber
Definition: flow_problem.pb.h:228
@ kUnitCostFieldNumber
Definition: flow_problem.pb.h:229
void MergeFrom(const Arc &from)
int GetCachedSize() const final
Definition: flow_problem.pb.h:198
const char * _InternalParse(const char *ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext *ctx) final
void CopyFrom(const Arc &from)
Arc * New(::PROTOBUF_NAMESPACE_ID::Arena *arena) const final
Definition: flow_problem.pb.h:181
Arc(::PROTOBUF_NAMESPACE_ID::Arena *arena, bool is_message_owned=false)
::PROTOBUF_NAMESPACE_ID::uint8 * _InternalSerialize(::PROTOBUF_NAMESPACE_ID::uint8 *target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream *stream) const final
void clear_head_node_id()
Definition: flow_problem.pb.h:743
::PROTOBUF_NAMESPACE_ID::int64 capacity() const
Definition: flow_problem.pb.h:778
bool IsInitialized() const final
const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet & unknown_fields() const
Definition: flow_problem.pb.h:132
static constexpr int kIndexInFileMessages
Definition: flow_problem.pb.h:155
void UnsafeArenaSwap(Arc *other)
Definition: flow_problem.pb.h:169
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * GetDescriptor()
Definition: flow_problem.pb.h:142
constexpr Arc(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData * GetClassData() const final
Arc(const Arc &from)
Arc & operator=(const Arc &from)
Definition: flow_problem.pb.h:114
bool has_head_node_id() const
Definition: flow_problem.pb.h:740
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * descriptor()
Definition: flow_problem.pb.h:139
Arc & operator=(Arc &&from) noexcept
Definition: flow_problem.pb.h:118
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final
::PROTOBUF_NAMESPACE_ID::int64 head_node_id() const
Definition: flow_problem.pb.h:750
void set_unit_cost(::PROTOBUF_NAMESPACE_ID::int64 value)
Definition: flow_problem.pb.h:814
void clear_tail_node_id()
Definition: flow_problem.pb.h:715
::PROTOBUF_NAMESPACE_ID::int64 unit_cost() const
Definition: flow_problem.pb.h:806
void set_tail_node_id(::PROTOBUF_NAMESPACE_ID::int64 value)
Definition: flow_problem.pb.h:730
~Arc() override
static const ClassData _class_data_
Definition: flow_problem.pb.h:217
inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet * mutable_unknown_fields()
Definition: flow_problem.pb.h:135
::PROTOBUF_NAMESPACE_ID::int64 tail_node_id() const
Definition: flow_problem.pb.h:722
static const ::PROTOBUF_NAMESPACE_ID::Reflection * GetReflection()
Definition: flow_problem.pb.h:145
size_t ByteSizeLong() const final
friend void swap(FlowModel &a, FlowModel &b)
Definition: flow_problem.pb.h:528
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final
static constexpr ProblemType LINEAR_SUM_ASSIGNMENT
Definition: flow_problem.pb.h:595
int GetCachedSize() const final
Definition: flow_problem.pb.h:568
::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::operations_research::Node > * mutable_node()
Definition: flow_problem.pb.h:898
const char * _InternalParse(const char *ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext *ctx) final
::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::operations_research::Arc > * mutable_arc()
Definition: flow_problem.pb.h:938
@ kProblemTypeFieldNumber
Definition: flow_problem.pb.h:631
static const std::string & ProblemType_Name(T enum_t_value)
Definition: flow_problem.pb.h:615
const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::operations_research::Node > & node() const
Definition: flow_problem.pb.h:918
::operations_research::Node * add_node()
Definition: flow_problem.pb.h:912
static constexpr ProblemType ProblemType_MIN
Definition: flow_problem.pb.h:604
::operations_research::Arc * add_arc()
Definition: flow_problem.pb.h:952
~FlowModel() override
bool has_problem_type() const
Definition: flow_problem.pb.h:968
FlowModel & operator=(const FlowModel &from)
Definition: flow_problem.pb.h:484
static constexpr ProblemType MIN_COST_FLOW
Definition: flow_problem.pb.h:599
static constexpr int ProblemType_ARRAYSIZE
Definition: flow_problem.pb.h:608
FlowModel(FlowModel &&from) noexcept
Definition: flow_problem.pb.h:479
::PROTOBUF_NAMESPACE_ID::uint8 * _InternalSerialize(::PROTOBUF_NAMESPACE_ID::uint8 *target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream *stream) const final
bool IsInitialized() const final
const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet & unknown_fields() const
Definition: flow_problem.pb.h:502
static constexpr int kIndexInFileMessages
Definition: flow_problem.pb.h:525
FlowModel(::PROTOBUF_NAMESPACE_ID::Arena *arena, bool is_message_owned=false)
void clear_problem_type()
Definition: flow_problem.pb.h:971
static bool ProblemType_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name, ProblemType *value)
Definition: flow_problem.pb.h:621
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * GetDescriptor()
Definition: flow_problem.pb.h:512
void set_problem_type(::operations_research::FlowModel_ProblemType value)
Definition: flow_problem.pb.h:987
static constexpr ProblemType MAX_FLOW
Definition: flow_problem.pb.h:597
void CopyFrom(const FlowModel &from)
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData * GetClassData() const final
static constexpr ProblemType ProblemType_MAX
Definition: flow_problem.pb.h:606
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * descriptor()
Definition: flow_problem.pb.h:509
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final
static const FlowModel * internal_default_instance()
Definition: flow_problem.pb.h:521
static const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor * ProblemType_descriptor()
Definition: flow_problem.pb.h:611
FlowModel & operator=(FlowModel &&from) noexcept
Definition: flow_problem.pb.h:488
const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::operations_research::Arc > & arc() const
Definition: flow_problem.pb.h:958
static const FlowModel & default_instance()
Definition: flow_problem.pb.h:518
static const ClassData _class_data_
Definition: flow_problem.pb.h:587
inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet * mutable_unknown_fields()
Definition: flow_problem.pb.h:505
constexpr FlowModel(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
static const ::PROTOBUF_NAMESPACE_ID::Reflection * GetReflection()
Definition: flow_problem.pb.h:515
void MergeFrom(const FlowModel &from)
size_t ByteSizeLong() const final
static bool ProblemType_IsValid(int value)
Definition: flow_problem.pb.h:601
FlowModel * New(::PROTOBUF_NAMESPACE_ID::Arena *arena) const final
Definition: flow_problem.pb.h:551
FlowModel(const FlowModel &from)
void UnsafeArenaSwap(FlowModel *other)
Definition: flow_problem.pb.h:539
::operations_research::FlowModel_ProblemType problem_type() const
Definition: flow_problem.pb.h:978
Definition: flow_problem.pb.h:302
Node * New(::PROTOBUF_NAMESPACE_ID::Arena *arena) const final
Definition: flow_problem.pb.h:381
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final
void set_supply(::PROTOBUF_NAMESPACE_ID::int64 value)
Definition: flow_problem.pb.h:874
Node(const Node &from)
int GetCachedSize() const final
Definition: flow_problem.pb.h:398
const char * _InternalParse(const char *ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext *ctx) final
Node & operator=(const Node &from)
Definition: flow_problem.pb.h:314
void set_id(::PROTOBUF_NAMESPACE_ID::int64 value)
Definition: flow_problem.pb.h:846
::PROTOBUF_NAMESPACE_ID::int64 id() const
Definition: flow_problem.pb.h:838
constexpr Node(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
::PROTOBUF_NAMESPACE_ID::uint8 * _InternalSerialize(::PROTOBUF_NAMESPACE_ID::uint8 *target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream *stream) const final
bool IsInitialized() const final
const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet & unknown_fields() const
Definition: flow_problem.pb.h:332
static constexpr int kIndexInFileMessages
Definition: flow_problem.pb.h:355
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * GetDescriptor()
Definition: flow_problem.pb.h:342
void UnsafeArenaSwap(Node *other)
Definition: flow_problem.pb.h:369
void CopyFrom(const Node &from)
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData * GetClassData() const final
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * descriptor()
Definition: flow_problem.pb.h:339
static const Node * internal_default_instance()
Definition: flow_problem.pb.h:351
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final
~Node() override
static const Node & default_instance()
Definition: flow_problem.pb.h:348
static const ClassData _class_data_
Definition: flow_problem.pb.h:417
Node(::PROTOBUF_NAMESPACE_ID::Arena *arena, bool is_message_owned=false)
void MergeFrom(const Node &from)
inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet * mutable_unknown_fields()
Definition: flow_problem.pb.h:335
::PROTOBUF_NAMESPACE_ID::int64 supply() const
Definition: flow_problem.pb.h:866
static const ::PROTOBUF_NAMESPACE_ID::Reflection * GetReflection()
Definition: flow_problem.pb.h:345
Node & operator=(Node &&from) noexcept
Definition: flow_problem.pb.h:318
size_t ByteSizeLong() const final
const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_ortools_2fgraph_2fflow_5fproblem_2eproto
Definition: connected_components.h:138
Definition: christofides.h:43
const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor * FlowModel_ProblemType_descriptor()
NodeDefaultTypeInternal _Node_default_instance_
@ FlowModel_ProblemType_MAX_FLOW
Definition: flow_problem.pb.h:77
@ FlowModel_ProblemType_MIN_COST_FLOW
Definition: flow_problem.pb.h:78
@ FlowModel_ProblemType_LINEAR_SUM_ASSIGNMENT
Definition: flow_problem.pb.h:76
FlowModelDefaultTypeInternal _FlowModel_default_instance_
constexpr FlowModel_ProblemType FlowModel_ProblemType_ProblemType_MIN
Definition: flow_problem.pb.h:81
constexpr int FlowModel_ProblemType_ProblemType_ARRAYSIZE
Definition: flow_problem.pb.h:83
ArcDefaultTypeInternal _Arc_default_instance_
bool FlowModel_ProblemType_IsValid(int value)
bool FlowModel_ProblemType_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name, FlowModel_ProblemType *value)
Definition: flow_problem.pb.h:94
constexpr FlowModel_ProblemType FlowModel_ProblemType_ProblemType_MAX
Definition: flow_problem.pb.h:82
const std::string & FlowModel_ProblemType_Name(T enum_t_value)
Definition: flow_problem.pb.h:87
static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[3] PROTOBUF_SECTION_VARIABLE(protodesc_cold)
static const ::PROTOBUF_NAMESPACE_ID::internal::AuxiliaryParseTableField aux[] PROTOBUF_SECTION_VARIABLE(protodesc_cold)
static const ::PROTOBUF_NAMESPACE_ID::uint32 offsets[]
Definition: flow_problem.pb.h:54
static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[]
Definition: flow_problem.pb.h:53
static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[]
Definition: flow_problem.pb.h:52
static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[] PROTOBUF_SECTION_VARIABLE(protodesc_cold)