Google OR-Tools v9.14
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
operations_research::MPSosConstraint Class Referencefinal

Detailed Description

Definition at line 1047 of file linear_solver.pb.h.

#include <linear_solver.pb.h>

Inheritance diagram for operations_research::MPSosConstraint:

Classes

class  _Internal

Public Types

enum  : int { kVarIndexFieldNumber = 2 , kWeightFieldNumber = 3 , kTypeFieldNumber = 1 }
 accessors ----------------------------------------------------— More...
using Type = MPSosConstraint_Type
 nested types -------------------------------------------------—

Public Member Functions

 MPSosConstraint ()
 ~MPSosConstraint () PROTOBUF_FINAL
template<typename = void>
PROTOBUF_CONSTEXPR MPSosConstraint (::google::protobuf::internal::ConstantInitialized)
 MPSosConstraint (const MPSosConstraint &from)
 MPSosConstraint (MPSosConstraint &&from) noexcept
MPSosConstraintoperator= (const MPSosConstraint &from)
MPSosConstraintoperator= (MPSosConstraint &&from) noexcept
const ::google::protobuf::UnknownFieldSet & unknown_fields () const ABSL_ATTRIBUTE_LIFETIME_BOUND
inline ::google::protobuf::UnknownFieldSet *PROTOBUF_NONNULL mutable_unknown_fields () ABSL_ATTRIBUTE_LIFETIME_BOUND
void Swap (MPSosConstraint *PROTOBUF_NONNULL other)
void UnsafeArenaSwap (MPSosConstraint *PROTOBUF_NONNULL other)
MPSosConstraint *PROTOBUF_NONNULL New (::google::protobuf::Arena *PROTOBUF_NULLABLE arena=nullptr) const
 implements Message -------------------------------------------—
void CopyFrom (const MPSosConstraint &from)
void MergeFrom (const MPSosConstraint &from)
bool IsInitialized () const
ABSL_ATTRIBUTE_REINITIALIZES void Clear () PROTOBUF_FINAL
::size_t ByteSizeLong () const final
::uint8_t *PROTOBUF_NONNULL _InternalSerialize (::uint8_t *PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream *PROTOBUF_NONNULL stream) const final
int GetCachedSize () const
::google::protobuf::Metadata GetMetadata () const
int var_index_size () const
 repeated int32 var_index = 2;
void clear_var_index ()
::int32_t var_index (int index) const
void set_var_index (int index, ::int32_t value)
void add_var_index (::int32_t value)
const ::google::protobuf::RepeatedField<::int32_t > & var_index () const
::google::protobuf::RepeatedField<::int32_t > *PROTOBUF_NONNULL mutable_var_index ()
int weight_size () const
 repeated double weight = 3;
void clear_weight ()
double weight (int index) const
void set_weight (int index, double value)
void add_weight (double value)
const ::google::protobuf::RepeatedField< double > & weight () const
::google::protobuf::RepeatedField< double > *PROTOBUF_NONNULL mutable_weight ()
bool has_type () const
 optional .operations_research.MPSosConstraint.Type type = 1 [default = SOS1_DEFAULT];
void clear_type ()
::operations_research::MPSosConstraint_Type type () const
void set_type (::operations_research::MPSosConstraint_Type value)
template<typename>
PROTOBUF_CONSTEXPR MPSosConstraint (::_pbi::ConstantInitialized)

Static Public Member Functions

static const ::google::protobuf::Descriptor *PROTOBUF_NONNULL descriptor ()
static const ::google::protobuf::Descriptor *PROTOBUF_NONNULL GetDescriptor ()
static const ::google::protobuf::Reflection *PROTOBUF_NONNULL GetReflection ()
static const MPSosConstraintdefault_instance ()
static constexpr auto InternalGenerateClassData_ ()
static bool Type_IsValid (int value)
static const ::google::protobuf::EnumDescriptor *PROTOBUF_NONNULL Type_descriptor ()
template<typename T>
static const ::std::string & Type_Name (T value)
static bool Type_Parse (::absl::string_view name, Type *PROTOBUF_NONNULL value)

Static Public Attributes

static constexpr int kIndexInFileMessages = 4
static constexpr Type SOS1_DEFAULT = MPSosConstraint_Type_SOS1_DEFAULT
static constexpr Type SOS2 = MPSosConstraint_Type_SOS2
static constexpr Type Type_MIN = MPSosConstraint_Type_Type_MIN
static constexpr Type Type_MAX = MPSosConstraint_Type_Type_MAX
static constexpr int Type_ARRAYSIZE = MPSosConstraint_Type_Type_ARRAYSIZE

Protected Member Functions

 MPSosConstraint (::google::protobuf::Arena *PROTOBUF_NULLABLE arena)
 MPSosConstraint (::google::protobuf::Arena *PROTOBUF_NULLABLE arena, const MPSosConstraint &from)
 MPSosConstraint (::google::protobuf::Arena *PROTOBUF_NULLABLE arena, MPSosConstraint &&from) noexcept
const ::google::protobuf::internal::ClassData *PROTOBUF_NONNULL GetClassData () const PROTOBUF_FINAL

Static Protected Member Functions

static void *PROTOBUF_NONNULL PlacementNew_ (const void *PROTOBUF_NONNULL, void *PROTOBUF_NONNULL mem, ::google::protobuf::Arena *PROTOBUF_NULLABLE arena)
static constexpr auto InternalNewImpl_ ()

Friends

class ::google::protobuf::internal::TcParser
class ::google::protobuf::MessageLite
class ::google::protobuf::Arena
template<typename T>
class ::google::protobuf::Arena::InternalHelper
struct ::TableStruct_ortools_2flinear_5fsolver_2flinear_5fsolver_2eproto
void swap (MPSosConstraint &a, MPSosConstraint &b)

Member Typedef Documentation

◆ Type

nested types -------------------------------------------------—

Definition at line 1187 of file linear_solver.pb.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum : int

accessors ----------------------------------------------------—

Enumerator
kVarIndexFieldNumber 
kWeightFieldNumber 
kTypeFieldNumber 

Definition at line 1209 of file linear_solver.pb.h.

Constructor & Destructor Documentation

◆ MPSosConstraint() [1/8]

operations_research::MPSosConstraint::MPSosConstraint ( )
inline

Definition at line 1050 of file linear_solver.pb.h.

◆ ~MPSosConstraint()

operations_research::MPSosConstraint::~MPSosConstraint ( )

@protoc_insertion_point(destructor:operations_research.MPSosConstraint)

Definition at line 3019 of file linear_solver.pb.cc.

◆ MPSosConstraint() [2/8]

template<typename = void>
PROTOBUF_CONSTEXPR operations_research::MPSosConstraint::MPSosConstraint ( ::google::protobuf::internal::ConstantInitialized )
explicit

◆ MPSosConstraint() [3/8]

operations_research::MPSosConstraint::MPSosConstraint ( const MPSosConstraint & from)
inline

Definition at line 1063 of file linear_solver.pb.h.

◆ MPSosConstraint() [4/8]

operations_research::MPSosConstraint::MPSosConstraint ( MPSosConstraint && from)
inlinenoexcept

Definition at line 1064 of file linear_solver.pb.h.

◆ MPSosConstraint() [5/8]

operations_research::MPSosConstraint::MPSosConstraint ( ::google::protobuf::Arena *PROTOBUF_NULLABLE arena)
explicitprotected

@protoc_insertion_point(arena_constructor:operations_research.MPSosConstraint)

Definition at line 2973 of file linear_solver.pb.cc.

◆ MPSosConstraint() [6/8]

operations_research::MPSosConstraint::MPSosConstraint ( ::google::protobuf::Arena *PROTOBUF_NULLABLE arena,
const MPSosConstraint & from )
protected

@protoc_insertion_point(copy_constructor:operations_research.MPSosConstraint)

Definition at line 2991 of file linear_solver.pb.cc.

◆ MPSosConstraint() [7/8]

operations_research::MPSosConstraint::MPSosConstraint ( ::google::protobuf::Arena *PROTOBUF_NULLABLE arena,
MPSosConstraint && from )
inlineprotectednoexcept

Definition at line 1171 of file linear_solver.pb.h.

◆ MPSosConstraint() [8/8]

template<typename>
PROTOBUF_CONSTEXPR operations_research::MPSosConstraint::MPSosConstraint ( ::_pbi::ConstantInitialized )

Definition at line 121 of file linear_solver.pb.cc.

Member Function Documentation

◆ _InternalSerialize()

uint8_t *PROTOBUF_NONNULL operations_research::MPSosConstraint::_InternalSerialize ( ::uint8_t *PROTOBUF_NONNULL target,
::google::protobuf::io::EpsCopyOutputStream *PROTOBUF_NONNULL stream ) const
final

@protoc_insertion_point(serialize_to_array_start:operations_research.MPSosConstraint)

optional .operations_research.MPSosConstraint.Type type = 1 [default = SOS1_DEFAULT];

repeated int32 var_index = 2;

repeated double weight = 3;

@protoc_insertion_point(serialize_to_array_end:operations_research.MPSosConstraint)

Definition at line 3157 of file linear_solver.pb.cc.

◆ add_var_index()

void operations_research::MPSosConstraint::add_var_index ( ::int32_t value)
inline

@protoc_insertion_point(field_add:operations_research.MPSosConstraint.var_index)

Definition at line 7135 of file linear_solver.pb.h.

◆ add_weight()

void operations_research::MPSosConstraint::add_weight ( double value)
inline

@protoc_insertion_point(field_add:operations_research.MPSosConstraint.weight)

Definition at line 7181 of file linear_solver.pb.h.

◆ ByteSizeLong()

size_t operations_research::MPSosConstraint::ByteSizeLong ( ) const
final

@protoc_insertion_point(message_byte_size_start:operations_research.MPSosConstraint)

Prevent compiler warnings about cached_has_bits being unused

repeated int32 var_index = 2;

repeated double weight = 3;

optional .operations_research.MPSosConstraint.Type type = 1 [default = SOS1_DEFAULT];

Definition at line 3201 of file linear_solver.pb.cc.

◆ Clear()

PROTOBUF_NOINLINE void operations_research::MPSosConstraint::Clear ( )

@protoc_insertion_point(message_clear_start:operations_research.MPSosConstraint)

Prevent compiler warnings about cached_has_bits being unused

Definition at line 3137 of file linear_solver.pb.cc.

◆ clear_type()

void operations_research::MPSosConstraint::clear_type ( )
inline

Definition at line 7090 of file linear_solver.pb.h.

◆ clear_var_index()

void operations_research::MPSosConstraint::clear_var_index ( )
inline

Definition at line 7123 of file linear_solver.pb.h.

◆ clear_weight()

void operations_research::MPSosConstraint::clear_weight ( )
inline

Definition at line 7169 of file linear_solver.pb.h.

◆ CopyFrom()

void operations_research::MPSosConstraint::CopyFrom ( const MPSosConstraint & from)

@protoc_insertion_point(class_specific_copy_from_start:operations_research.MPSosConstraint)

Definition at line 3260 of file linear_solver.pb.cc.

◆ default_instance()

const MPSosConstraint & operations_research::MPSosConstraint::default_instance ( )
inlinestatic

Definition at line 1098 of file linear_solver.pb.h.

◆ descriptor()

const ::google::protobuf::Descriptor *PROTOBUF_NONNULL operations_research::MPSosConstraint::descriptor ( )
inlinestatic

Definition at line 1089 of file linear_solver.pb.h.

◆ GetCachedSize()

int operations_research::MPSosConstraint::GetCachedSize ( ) const
inline

Definition at line 1157 of file linear_solver.pb.h.

◆ GetClassData()

PROTOBUF_ATTRIBUTE_WEAKconst::google::protobuf::internal::ClassData *PROTOBUF_NONNULL operations_research::MPSosConstraint::GetClassData ( ) const
protected

Definition at line 3083 of file linear_solver.pb.cc.

◆ GetDescriptor()

const ::google::protobuf::Descriptor *PROTOBUF_NONNULL operations_research::MPSosConstraint::GetDescriptor ( )
inlinestatic

Definition at line 1092 of file linear_solver.pb.h.

◆ GetMetadata()

google::protobuf::Metadata operations_research::MPSosConstraint::GetMetadata ( ) const

Definition at line 3277 of file linear_solver.pb.cc.

◆ GetReflection()

const ::google::protobuf::Reflection *PROTOBUF_NONNULL operations_research::MPSosConstraint::GetReflection ( )
inlinestatic

Definition at line 1095 of file linear_solver.pb.h.

◆ has_type()

bool operations_research::MPSosConstraint::has_type ( ) const
inline

optional .operations_research.MPSosConstraint.Type type = 1 [default = SOS1_DEFAULT];

MPSosConstraint.

optional .operations_research.MPSosConstraint.Type type = 1 [default = SOS1_DEFAULT];

Definition at line 7086 of file linear_solver.pb.h.

◆ InternalGenerateClassData_()

auto operations_research::MPSosConstraint::InternalGenerateClassData_ ( )
staticconstexpr

Definition at line 3055 of file linear_solver.pb.cc.

◆ InternalNewImpl_()

auto operations_research::MPSosConstraint::InternalNewImpl_ ( )
staticconstexprprotected

Definition at line 3035 of file linear_solver.pb.cc.

◆ IsInitialized()

bool operations_research::MPSosConstraint::IsInitialized ( ) const
inline

Definition at line 1133 of file linear_solver.pb.h.

◆ MergeFrom()

void operations_research::MPSosConstraint::MergeFrom ( const MPSosConstraint & from)
inline

Definition at line 1126 of file linear_solver.pb.h.

◆ mutable_unknown_fields()

inline ::google::protobuf::UnknownFieldSet *PROTOBUF_NONNULL operations_research::MPSosConstraint::mutable_unknown_fields ( )
inline

Definition at line 1084 of file linear_solver.pb.h.

◆ mutable_var_index()

google::protobuf::RepeatedField<::int32_t > *PROTOBUF_NONNULL operations_research::MPSosConstraint::mutable_var_index ( )
inline

@protoc_insertion_point(field_mutable_list:operations_research.MPSosConstraint.var_index)

Definition at line 7145 of file linear_solver.pb.h.

◆ mutable_weight()

google::protobuf::RepeatedField< double > *PROTOBUF_NONNULL operations_research::MPSosConstraint::mutable_weight ( )
inline

@protoc_insertion_point(field_mutable_list:operations_research.MPSosConstraint.weight)

Definition at line 7191 of file linear_solver.pb.h.

◆ New()

MPSosConstraint *PROTOBUF_NONNULL operations_research::MPSosConstraint::New ( ::google::protobuf::Arena *PROTOBUF_NULLABLE arena = nullptr) const
inline

implements Message -------------------------------------------—

Definition at line 1120 of file linear_solver.pb.h.

◆ operator=() [1/2]

MPSosConstraint & operations_research::MPSosConstraint::operator= ( const MPSosConstraint & from)
inline

Definition at line 1066 of file linear_solver.pb.h.

◆ operator=() [2/2]

MPSosConstraint & operations_research::MPSosConstraint::operator= ( MPSosConstraint && from)
inlinenoexcept

Definition at line 1070 of file linear_solver.pb.h.

◆ PlacementNew_()

void *PROTOBUF_NONNULL operations_research::MPSosConstraint::PlacementNew_ ( const void * PROTOBUF_NONNULL,
void *PROTOBUF_NONNULL mem,
::google::protobuf::Arena *PROTOBUF_NULLABLE arena )
inlinestaticprotected

Definition at line 3030 of file linear_solver.pb.cc.

◆ set_type()

void operations_research::MPSosConstraint::set_type ( ::operations_research::MPSosConstraint_Type value)
inline

@protoc_insertion_point(field_set:operations_research.MPSosConstraint.type)

Definition at line 7099 of file linear_solver.pb.h.

◆ set_var_index()

void operations_research::MPSosConstraint::set_var_index ( int index,
::int32_t value )
inline

@protoc_insertion_point(field_set:operations_research.MPSosConstraint.var_index)

Definition at line 7131 of file linear_solver.pb.h.

◆ set_weight()

void operations_research::MPSosConstraint::set_weight ( int index,
double value )
inline

@protoc_insertion_point(field_set:operations_research.MPSosConstraint.weight)

Definition at line 7177 of file linear_solver.pb.h.

◆ Swap()

void operations_research::MPSosConstraint::Swap ( MPSosConstraint *PROTOBUF_NONNULL other)
inline

Definition at line 1104 of file linear_solver.pb.h.

◆ type()

operations_research::MPSosConstraint_Type operations_research::MPSosConstraint::type ( ) const
inline

@protoc_insertion_point(field_get:operations_research.MPSosConstraint.type)

Definition at line 7095 of file linear_solver.pb.h.

◆ Type_descriptor()

const ::google::protobuf::EnumDescriptor *PROTOBUF_NONNULL operations_research::MPSosConstraint::Type_descriptor ( )
inlinestatic

Definition at line 1196 of file linear_solver.pb.h.

◆ Type_IsValid()

bool operations_research::MPSosConstraint::Type_IsValid ( int value)
inlinestatic

Definition at line 1190 of file linear_solver.pb.h.

◆ Type_Name()

template<typename T>
const ::std::string & operations_research::MPSosConstraint::Type_Name ( T value)
inlinestatic

Definition at line 1200 of file linear_solver.pb.h.

◆ Type_Parse()

bool operations_research::MPSosConstraint::Type_Parse ( ::absl::string_view name,
Type *PROTOBUF_NONNULL value )
inlinestatic

Definition at line 1203 of file linear_solver.pb.h.

◆ unknown_fields()

const ::google::protobuf::UnknownFieldSet & operations_research::MPSosConstraint::unknown_fields ( ) const
inline

Definition at line 1080 of file linear_solver.pb.h.

◆ UnsafeArenaSwap()

void operations_research::MPSosConstraint::UnsafeArenaSwap ( MPSosConstraint *PROTOBUF_NONNULL other)
inline

Definition at line 1112 of file linear_solver.pb.h.

◆ var_index() [1/2]

const::google::protobuf::RepeatedField<::int32_t > & operations_research::MPSosConstraint::var_index ( ) const
inline

@protoc_insertion_point(field_list:operations_research.MPSosConstraint.var_index)

Definition at line 7140 of file linear_solver.pb.h.

◆ var_index() [2/2]

int32_t operations_research::MPSosConstraint::var_index ( int index) const
inline

@protoc_insertion_point(field_get:operations_research.MPSosConstraint.var_index)

Definition at line 7127 of file linear_solver.pb.h.

◆ var_index_size()

int operations_research::MPSosConstraint::var_index_size ( ) const
inline

repeated int32 var_index = 2;

Definition at line 7120 of file linear_solver.pb.h.

◆ weight() [1/2]

const::google::protobuf::RepeatedField< double > & operations_research::MPSosConstraint::weight ( ) const
inline

@protoc_insertion_point(field_list:operations_research.MPSosConstraint.weight)

Definition at line 7186 of file linear_solver.pb.h.

◆ weight() [2/2]

double operations_research::MPSosConstraint::weight ( int index) const
inline

@protoc_insertion_point(field_get:operations_research.MPSosConstraint.weight)

Definition at line 7173 of file linear_solver.pb.h.

◆ weight_size()

int operations_research::MPSosConstraint::weight_size ( ) const
inline

repeated double weight = 3;

Definition at line 7166 of file linear_solver.pb.h.

◆ ::google::protobuf::Arena

friend class ::google::protobuf::Arena
friend

Definition at line 1271 of file linear_solver.pb.h.

◆ ::google::protobuf::Arena::InternalHelper

template<typename T>
friend class ::google::protobuf::Arena::InternalHelper
friend

Definition at line 1273 of file linear_solver.pb.h.

◆ ::google::protobuf::internal::TcParser

friend class ::google::protobuf::internal::TcParser
friend

Definition at line 1264 of file linear_solver.pb.h.

◆ ::google::protobuf::MessageLite

friend class ::google::protobuf::MessageLite
friend

Definition at line 1270 of file linear_solver.pb.h.

◆ ::TableStruct_ortools_2flinear_5fsolver_2flinear_5fsolver_2eproto

◆ swap

void swap ( MPSosConstraint & a,
MPSosConstraint & b )
friend

Definition at line 1103 of file linear_solver.pb.h.

Member Data Documentation

◆ _impl_

Impl_ operations_research::MPSosConstraint::_impl_

Definition at line 1292 of file linear_solver.pb.h.

◆ kIndexInFileMessages

int operations_research::MPSosConstraint::kIndexInFileMessages = 4
staticconstexpr

Definition at line 1102 of file linear_solver.pb.h.

◆ SOS1_DEFAULT

Type operations_research::MPSosConstraint::SOS1_DEFAULT = MPSosConstraint_Type_SOS1_DEFAULT
staticconstexpr

Definition at line 1188 of file linear_solver.pb.h.

◆ SOS2

Type operations_research::MPSosConstraint::SOS2 = MPSosConstraint_Type_SOS2
staticconstexpr

Definition at line 1189 of file linear_solver.pb.h.

◆ Type_ARRAYSIZE

int operations_research::MPSosConstraint::Type_ARRAYSIZE = MPSosConstraint_Type_Type_ARRAYSIZE
staticconstexpr

Definition at line 1195 of file linear_solver.pb.h.

◆ Type_MAX

Type operations_research::MPSosConstraint::Type_MAX = MPSosConstraint_Type_Type_MAX
staticconstexpr

Definition at line 1194 of file linear_solver.pb.h.

◆ Type_MIN

Type operations_research::MPSosConstraint::Type_MIN = MPSosConstraint_Type_Type_MIN
staticconstexpr

Definition at line 1193 of file linear_solver.pb.h.


The documentation for this class was generated from the following files: