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*);
79 };
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) */ {
127 return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
185 const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
186 ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
187 ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
209 ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_ortools_2fgraph_2fflow_5fproblem_2eproto);
210 return ::descriptor_table_ortools_2fgraph_2fflow_5fproblem_2eproto.file_level_metadata[kIndexInFileMessages];
220 kTailNodeIdFieldNumber = 1,
221 kHeadNodeIdFieldNumber = 2,
222 kUnitCostFieldNumber = 4,
223 kCapacityFieldNumber = 3,
295 public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:operations_research.Node) */ {
320 return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
378 const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
379 ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
380 ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
402 ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_ortools_2fgraph_2fflow_5fproblem_2eproto);
403 return ::descriptor_table_ortools_2fgraph_2fflow_5fproblem_2eproto.file_level_metadata[kIndexInFileMessages];
413 kIdFieldNumber = 1,
414 kSupplyFieldNumber = 2,
458 public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:operations_research.FlowModel) */ {
483 return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
541 const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
542 ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
543 ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
565 ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_ortools_2fgraph_2fflow_5fproblem_2eproto);
566 return ::descriptor_table_ortools_2fgraph_2fflow_5fproblem_2eproto.file_level_metadata[kIndexInFileMessages];
608 kNodeFieldNumber = 1,
609 kArcFieldNumber = 2,
610 kProblemTypeFieldNumber = 3,
648 // optional .operations_research.FlowModel.ProblemType problem_type = 3 [default = MIN_COST_FLOW];
940 // optional .operations_research.FlowModel.ProblemType problem_type = 3 [default = MIN_COST_FLOW];
959 inline void FlowModel::_internal_set_problem_type(::operations_research::FlowModel_ProblemType value) {
983 template <> struct is_proto_enum< ::operations_research::FlowModel_ProblemType> : ::std::true_type {};
985 inline const EnumDescriptor* GetEnumDescriptor< ::operations_research::FlowModel_ProblemType>() {
994 #endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_ortools_2fgraph_2fflow_5fproblem_2eproto
bool has_tail_node_id() const
virtual ~Arc()
Arc & operator=(Arc &&from) noexcept
Definition: flow_problem.pb.h:117
Node(Node &&from) noexcept
Definition: flow_problem.pb.h:301
friend void swap(Arc &a, Arc &b)
Definition: flow_problem.pb.h:151
void set_head_node_id(::PROTOBUF_NAMESPACE_ID::int64 value)
void set_capacity(::PROTOBUF_NAMESPACE_ID::int64 value)
Arc(::PROTOBUF_NAMESPACE_ID::Arena *arena)
Node & operator=(Node &&from) noexcept
Definition: flow_problem.pb.h:310
static const ::PROTOBUF_NAMESPACE_ID::Reflection * GetReflection()
Definition: flow_problem.pb.h:139
::PROTOBUF_NAMESPACE_ID::int64 id() const
int node_size() const
friend void swap(FlowModel &a, FlowModel &b)
Definition: flow_problem.pb.h:507
static const Arc & default_instance()
static const Arc * internal_default_instance()
Definition: flow_problem.pb.h:144
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final
friend void swap(Node &a, Node &b)
Definition: flow_problem.pb.h:344
void set_supply(::PROTOBUF_NAMESPACE_ID::int64 value)
void MergeFrom(const Arc &from)
Node(const Node &from)
::operations_research::Arc * mutable_arc(int index)
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * descriptor()
Definition: flow_problem.pb.h:133
static const FlowModel & default_instance()
Node & operator=(const Node &from)
Definition: flow_problem.pb.h:306
static const FlowModel * internal_default_instance()
Definition: flow_problem.pb.h:500
void Swap(FlowModel *other)
Definition: flow_problem.pb.h:510
void set_id(::PROTOBUF_NAMESPACE_ID::int64 value)
void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message &from) final
virtual ~FlowModel()
static const Node & default_instance()
FlowModel * New(::PROTOBUF_NAMESPACE_ID::Arena *arena) const final
Definition: flow_problem.pb.h:530
void CopyFrom(const Arc &from)
bool has_supply() const
void clear_capacity()
const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::operations_research::Node > & node() const
void clear_unit_cost()
const ::operations_research::Node & node(int index) const
void clear_id()
::PROTOBUF_NAMESPACE_ID::int64 supply() const
::PROTOBUF_NAMESPACE_ID::int64 head_node_id() const
Node(::PROTOBUF_NAMESPACE_ID::Arena *arena)
bool has_problem_type() const
::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::operations_research::Node > * mutable_node()
const ::operations_research::Arc & arc(int index) const
static const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor * ProblemType_descriptor()
Definition: flow_problem.pb.h:590
void clear_supply()
Node * New(::PROTOBUF_NAMESPACE_ID::Arena *arena) const final
Definition: flow_problem.pb.h:367
FlowModel * New() const final
Definition: flow_problem.pb.h:526
FlowModel(FlowModel &&from) noexcept
Definition: flow_problem.pb.h:464
void clear_head_node_id()
void UnsafeArenaSwap(Arc *other)
Definition: flow_problem.pb.h:162
::PROTOBUF_NAMESPACE_ID::int64 capacity() const
void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message &from) final
void clear_problem_type()
static bool ProblemType_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name, ProblemType *value)
Definition: flow_problem.pb.h:600
::operations_research::FlowModel_ProblemType problem_type() const
::operations_research::Arc * add_arc()
const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::operations_research::Arc > & arc() const
void set_problem_type(::operations_research::FlowModel_ProblemType value)
FlowModel_ProblemType ProblemType
Definition: flow_problem.pb.h:573
void CopyFrom(const FlowModel &from)
static const Node * internal_default_instance()
Definition: flow_problem.pb.h:337
Arc & operator=(const Arc &from)
Definition: flow_problem.pb.h:113
FlowModel(::PROTOBUF_NAMESPACE_ID::Arena *arena)
void UnsafeArenaSwap(Node *other)
Definition: flow_problem.pb.h:355
Arc * New(::PROTOBUF_NAMESPACE_ID::Arena *arena) const final
Definition: flow_problem.pb.h:174
bool has_capacity() const
void CopyFrom(const Node &from)
Arc(const Arc &from)
virtual ~Node()
inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet * mutable_unknown_fields()
Definition: flow_problem.pb.h:129
::operations_research::Node * add_node()
bool has_head_node_id() const
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final
static const std::string & ProblemType_Name(T enum_t_value)
Definition: flow_problem.pb.h:594
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * GetDescriptor()
Definition: flow_problem.pb.h:136
void set_unit_cost(::PROTOBUF_NAMESPACE_ID::int64 value)
void clear_tail_node_id()
bool has_id() const
::PROTOBUF_NAMESPACE_ID::int64 unit_cost() const
void set_tail_node_id(::PROTOBUF_NAMESPACE_ID::int64 value)
void MergeFrom(const Node &from)
bool has_unit_cost() const
::PROTOBUF_NAMESPACE_ID::int64 tail_node_id() const
void clear_arc()
::operations_research::Node * mutable_node(int index)
void MergeFrom(const FlowModel &from)
void clear_node()
FlowModel & operator=(const FlowModel &from)
Definition: flow_problem.pb.h:469
static bool ProblemType_IsValid(int value)
Definition: flow_problem.pb.h:580
const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet & unknown_fields() const
Definition: flow_problem.pb.h:126
FlowModel(const FlowModel &from)
int arc_size() const
void UnsafeArenaSwap(FlowModel *other)
Definition: flow_problem.pb.h:518
::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::operations_research::Arc > * mutable_arc()
FlowModel & operator=(FlowModel &&from) noexcept
Definition: flow_problem.pb.h:473
const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_ortools_2fgraph_2fflow_5fproblem_2eproto
Definition: connected_components.h:134
Definition: christofides.h:35
const std::string & FlowModel_ProblemType_Name(T enum_t_value)
Definition: flow_problem.pb.h:87
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
const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor * FlowModel_ProblemType_descriptor()
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
static const ::PROTOBUF_NAMESPACE_ID::uint32 offsets[]
Definition: flow_problem.pb.h:54
static const ::PROTOBUF_NAMESPACE_ID::internal::AuxiliaryParseTableField aux[] PROTOBUF_SECTION_VARIABLE(protodesc_cold)
static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[] PROTOBUF_SECTION_VARIABLE(protodesc_cold)
static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[3] PROTOBUF_SECTION_VARIABLE(protodesc_cold)
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