C++ Reference
C++ Reference: Graph
flow_problem.pb.h
Go to the documentation of this file.
57 extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_ortools_2fgraph_2fflow_5fproblem_2eproto;
70 template<> ::operations_research::Arc* Arena::CreateMaybeMessage<::operations_research::Arc>(Arena*);
71 template<> ::operations_research::FlowModel* Arena::CreateMaybeMessage<::operations_research::FlowModel>(Arena*);
72 template<> ::operations_research::Node* Arena::CreateMaybeMessage<::operations_research::Node>(Arena*);
82 constexpr FlowModel_ProblemType FlowModel_ProblemType_ProblemType_MIN = FlowModel_ProblemType_LINEAR_SUM_ASSIGNMENT;
83 constexpr FlowModel_ProblemType FlowModel_ProblemType_ProblemType_MAX = FlowModel_ProblemType_MIN_COST_FLOW;
84 constexpr int FlowModel_ProblemType_ProblemType_ARRAYSIZE = FlowModel_ProblemType_ProblemType_MAX + 1;
103 public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:operations_research.Arc) */ {
178 const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
180 ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
204 ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_ortools_2fgraph_2fflow_5fproblem_2eproto);
205 return ::descriptor_table_ortools_2fgraph_2fflow_5fproblem_2eproto.file_level_metadata[kIndexInFileMessages];
288 public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:operations_research.Node) */ {
363 const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
365 ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
389 ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_ortools_2fgraph_2fflow_5fproblem_2eproto);
390 return ::descriptor_table_ortools_2fgraph_2fflow_5fproblem_2eproto.file_level_metadata[kIndexInFileMessages];
443 public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:operations_research.FlowModel) */ {
518 const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
520 ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
544 ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_ortools_2fgraph_2fflow_5fproblem_2eproto);
545 return ::descriptor_table_ortools_2fgraph_2fflow_5fproblem_2eproto.file_level_metadata[kIndexInFileMessages];
627 // optional .operations_research.FlowModel.ProblemType problem_type = 3 [default = MIN_COST_FLOW];
917 // optional .operations_research.FlowModel.ProblemType problem_type = 3 [default = MIN_COST_FLOW];
936 inline void FlowModel::_internal_set_problem_type(::operations_research::FlowModel_ProblemType value) {
960 template <> struct is_proto_enum< ::operations_research::FlowModel_ProblemType> : ::std::true_type {};
962 inline const EnumDescriptor* GetEnumDescriptor< ::operations_research::FlowModel_ProblemType>() {
Arc & operator=(Arc &&from) noexcept
Definition: flow_problem.pb.h:118
::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:569
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * GetDescriptor()
Definition: flow_problem.pb.h:322
static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[]
Definition: flow_problem.pb.h:53
bool FlowModel_ProblemType_Parse(const std::string &name, FlowModel_ProblemType *value)
Definition: flow_problem.pb.h:95
virtual ~FlowModel()
const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet & unknown_fields() const
Definition: flow_problem.pb.h:467
FlowModel(FlowModel &&from) noexcept
Definition: flow_problem.pb.h:449
static constexpr ProblemType ProblemType_MIN
Definition: flow_problem.pb.h:562
Arc * New(::PROTOBUF_NAMESPACE_ID::Arena *arena) const final
Definition: flow_problem.pb.h:167
void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message &from) final
static constexpr ProblemType ProblemType_MAX
Definition: flow_problem.pb.h:564
const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor * FlowModel_ProblemType_descriptor()
Node & operator=(const Node &from)
Definition: flow_problem.pb.h:299
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * GetDescriptor()
Definition: flow_problem.pb.h:137
const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet & unknown_fields() const
Definition: flow_problem.pb.h:127
NodeDefaultTypeInternal _Node_default_instance_
static constexpr int kIndexInFileMessages
Definition: flow_problem.pb.h:150
FlowModel * New(::PROTOBUF_NAMESPACE_ID::Arena *arena) const final
Definition: flow_problem.pb.h:507
FlowModel_ProblemType ProblemType
Definition: flow_problem.pb.h:552
static const ::PROTOBUF_NAMESPACE_ID::uint32 offsets[]
Definition: flow_problem.pb.h:55
static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[] PROTOBUF_SECTION_VARIABLE(protodesc_cold)
Node * New(::PROTOBUF_NAMESPACE_ID::Arena *arena) const final
Definition: flow_problem.pb.h:352
::operations_research::Arc * add_arc()
Definition: flow_problem.pb.h:907
void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message &from) final
const std::string & FlowModel_ProblemType_Name(T enum_t_value)
Definition: flow_problem.pb.h:88
FlowModelDefaultTypeInternal _FlowModel_default_instance_
static const FlowModel * internal_default_instance()
Definition: flow_problem.pb.h:486
void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message &from) final
::PROTOBUF_NAMESPACE_ID::int64 tail_node_id() const
Definition: flow_problem.pb.h:678
Definition: christofides.h:33
constexpr int FlowModel_ProblemType_ProblemType_ARRAYSIZE
Definition: flow_problem.pb.h:84
virtual ~Arc()
Definition: flow_problem.pb.h:287
FlowModel & operator=(FlowModel &&from) noexcept
Definition: flow_problem.pb.h:458
const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_ortools_2fgraph_2fflow_5fproblem_2eproto
::operations_research::Node * add_node()
Definition: flow_problem.pb.h:868
static const Arc * internal_default_instance()
Definition: flow_problem.pb.h:146
::PROTOBUF_NAMESPACE_ID::uint8 * _InternalSerialize(::PROTOBUF_NAMESPACE_ID::uint8 *target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream *stream) const final
void set_supply(::PROTOBUF_NAMESPACE_ID::int64 value)
Definition: flow_problem.pb.h:830
ArcDefaultTypeInternal _Arc_default_instance_
::PROTOBUF_NAMESPACE_ID::int64 id() const
Definition: flow_problem.pb.h:794
static constexpr int kIndexInFileMessages
Definition: flow_problem.pb.h:335
static const Node * internal_default_instance()
Definition: flow_problem.pb.h:331
void clear_head_node_id()
Definition: flow_problem.pb.h:699
constexpr FlowModel_ProblemType FlowModel_ProblemType_ProblemType_MAX
Definition: flow_problem.pb.h:83
static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[]
Definition: flow_problem.pb.h:54
::PROTOBUF_NAMESPACE_ID::int64 head_node_id() const
Definition: flow_problem.pb.h:706
void clear_problem_type()
Definition: flow_problem.pb.h:925
const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::operations_research::Arc > & arc() const
Definition: flow_problem.pb.h:912
void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message &from) final
size_t ByteSizeLong() const final
static constexpr ProblemType MAX_FLOW
Definition: flow_problem.pb.h:555
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final
::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::operations_research::Node > * mutable_node()
Definition: flow_problem.pb.h:854
bool FlowModel_ProblemType_IsValid(int value)
static const ::PROTOBUF_NAMESPACE_ID::Reflection * GetReflection()
Definition: flow_problem.pb.h:140
const char * _InternalParse(const char *ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext *ctx) final
const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::operations_research::Node > & node() const
Definition: flow_problem.pb.h:873
static constexpr ProblemType MIN_COST_FLOW
Definition: flow_problem.pb.h:557
static constexpr int ProblemType_ARRAYSIZE
Definition: flow_problem.pb.h:566
void clear_tail_node_id()
Definition: flow_problem.pb.h:671
void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message &from) final
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * GetDescriptor()
Definition: flow_problem.pb.h:477
inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet * mutable_unknown_fields()
Definition: flow_problem.pb.h:470
inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet * mutable_unknown_fields()
Definition: flow_problem.pb.h:315
size_t ByteSizeLong() const final
bool IsInitialized() const final
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final
static const std::string & ProblemType_Name(T enum_t_value)
Definition: flow_problem.pb.h:573
void set_id(::PROTOBUF_NAMESPACE_ID::int64 value)
Definition: flow_problem.pb.h:802
bool IsInitialized() const final
static void InitAsDefaultInstance()
static const FlowModel & default_instance()
Node & operator=(Node &&from) noexcept
Definition: flow_problem.pb.h:303
void set_unit_cost(::PROTOBUF_NAMESPACE_ID::int64 value)
Definition: flow_problem.pb.h:770
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final
friend void swap(FlowModel &a, FlowModel &b)
Definition: flow_problem.pb.h:493
::operations_research::FlowModel_ProblemType problem_type() const
Definition: flow_problem.pb.h:932
int GetCachedSize() const final
Definition: flow_problem.pb.h:181
FlowModel & operator=(const FlowModel &from)
Definition: flow_problem.pb.h:454
::PROTOBUF_NAMESPACE_ID::int64 capacity() const
Definition: flow_problem.pb.h:734
inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet * mutable_unknown_fields()
Definition: flow_problem.pb.h:130
bool IsInitialized() const final
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * descriptor()
Definition: flow_problem.pb.h:319
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final
static void InitAsDefaultInstance()
FlowModel()
static const Node & default_instance()
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * descriptor()
Definition: flow_problem.pb.h:134
void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message &from) final
::PROTOBUF_NAMESPACE_ID::int64 unit_cost() const
Definition: flow_problem.pb.h:762
bool has_problem_type() const
Definition: flow_problem.pb.h:922
void set_head_node_id(::PROTOBUF_NAMESPACE_ID::int64 value)
Definition: flow_problem.pb.h:714
const char * _InternalParse(const char *ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext *ctx) final
static const Arc & default_instance()
static bool ProblemType_IsValid(int value)
Definition: flow_problem.pb.h:559
size_t ByteSizeLong() const final
::PROTOBUF_NAMESPACE_ID::int64 supply() const
Definition: flow_problem.pb.h:822
void set_capacity(::PROTOBUF_NAMESPACE_ID::int64 value)
Definition: flow_problem.pb.h:742
const char * _InternalParse(const char *ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext *ctx) final
const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet & unknown_fields() const
Definition: flow_problem.pb.h:312
int GetCachedSize() const final
Definition: flow_problem.pb.h:521
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final
::PROTOBUF_NAMESPACE_ID::uint8 * _InternalSerialize(::PROTOBUF_NAMESPACE_ID::uint8 *target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream *stream) const final
int GetCachedSize() const final
Definition: flow_problem.pb.h:366
static constexpr ProblemType LINEAR_SUM_ASSIGNMENT
Definition: flow_problem.pb.h:553
Arc & operator=(const Arc &from)
Definition: flow_problem.pb.h:114
static constexpr int kIndexInFileMessages
Definition: flow_problem.pb.h:490
Definition: connected_components.h:125
constexpr FlowModel_ProblemType FlowModel_ProblemType_ProblemType_MIN
Definition: flow_problem.pb.h:82
static bool ProblemType_Parse(const std::string &name, ProblemType *value)
Definition: flow_problem.pb.h:579
Definition: flow_problem.pb.h:102
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * descriptor()
Definition: flow_problem.pb.h:474
static const ::PROTOBUF_NAMESPACE_ID::Reflection * GetReflection()
Definition: flow_problem.pb.h:325
::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::operations_research::Arc > * mutable_arc()
Definition: flow_problem.pb.h:893
static const ::PROTOBUF_NAMESPACE_ID::Reflection * GetReflection()
Definition: flow_problem.pb.h:480
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final
void set_problem_type(::operations_research::FlowModel_ProblemType value)
Definition: flow_problem.pb.h:941
bool has_head_node_id() const
Definition: flow_problem.pb.h:696
bool has_tail_node_id() const
Definition: flow_problem.pb.h:668
static void InitAsDefaultInstance()
void set_tail_node_id(::PROTOBUF_NAMESPACE_ID::int64 value)
Definition: flow_problem.pb.h:686
virtual ~Node()