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

Detailed Description

Definition at line 1045 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 }
using Type = MPSosConstraint_Type

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
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
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
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
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

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

Member Enumeration Documentation

◆ anonymous enum

anonymous enum : int
Enumerator
kVarIndexFieldNumber 
kWeightFieldNumber 
kTypeFieldNumber 

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

Constructor & Destructor Documentation

◆ MPSosConstraint() [1/5]

operations_research::MPSosConstraint::MPSosConstraint ( )
inline

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

◆ ~MPSosConstraint()

operations_research::MPSosConstraint::~MPSosConstraint ( )

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

◆ MPSosConstraint() [2/5]

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

◆ MPSosConstraint() [3/5]

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

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

◆ MPSosConstraint() [4/5]

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

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

◆ MPSosConstraint() [5/5]

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

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

◆ add_var_index()

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

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

◆ add_weight()

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

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

◆ ByteSizeLong()

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

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

◆ Clear()

PROTOBUF_NOINLINE void operations_research::MPSosConstraint::Clear ( )

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

◆ clear_type()

void operations_research::MPSosConstraint::clear_type ( )
inline

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

◆ clear_var_index()

void operations_research::MPSosConstraint::clear_var_index ( )
inline

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

◆ clear_weight()

void operations_research::MPSosConstraint::clear_weight ( )
inline

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

◆ CopyFrom()

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

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

◆ default_instance()

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

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

◆ descriptor()

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

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

◆ GetCachedSize()

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

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

◆ GetDescriptor()

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

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

◆ GetMetadata()

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

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

◆ GetReflection()

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

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

◆ has_type()

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

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

◆ InternalGenerateClassData_()

auto operations_research::MPSosConstraint::InternalGenerateClassData_ ( )
staticconstexpr

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

◆ IsInitialized()

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

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

◆ MergeFrom()

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

Definition at line 1124 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 1082 of file linear_solver.pb.h.

◆ mutable_var_index()

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

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

◆ mutable_weight()

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

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

◆ New()

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

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

◆ operator=() [1/2]

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

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

◆ operator=() [2/2]

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

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

◆ set_type()

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

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

◆ set_var_index()

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

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

◆ set_weight()

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

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

◆ Swap()

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

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

◆ type()

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

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

◆ Type_descriptor()

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

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

◆ Type_IsValid()

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

Definition at line 1187 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 1197 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 1200 of file linear_solver.pb.h.

◆ unknown_fields()

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

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

◆ UnsafeArenaSwap()

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

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

◆ var_index() [1/2]

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

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

◆ var_index() [2/2]

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

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

◆ var_index_size()

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

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

◆ weight() [1/2]

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

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

◆ weight() [2/2]

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

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

◆ weight_size()

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

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

◆ ::google::protobuf::Arena

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

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

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

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

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

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

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

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

◆ ::google::protobuf::MessageLite

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

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

◆ ::TableStruct_ortools_2flinear_5fsolver_2flinear_5fsolver_2eproto

friend struct ::TableStruct_ortools_2flinear_5fsolver_2flinear_5fsolver_2eproto
friend

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

◆ swap

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

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

Member Data Documentation

◆ _impl_

Impl_ operations_research::MPSosConstraint::_impl_

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

◆ kIndexInFileMessages

int operations_research::MPSosConstraint::kIndexInFileMessages = 4
staticconstexpr

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

◆ SOS1_DEFAULT

Type operations_research::MPSosConstraint::SOS1_DEFAULT = MPSosConstraint_Type_SOS1_DEFAULT
staticconstexpr

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

◆ SOS2

Type operations_research::MPSosConstraint::SOS2 = MPSosConstraint_Type_SOS2
staticconstexpr

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

◆ Type_ARRAYSIZE

int operations_research::MPSosConstraint::Type_ARRAYSIZE = MPSosConstraint_Type_Type_ARRAYSIZE
staticconstexpr

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

◆ Type_MAX

Type operations_research::MPSosConstraint::Type_MAX = MPSosConstraint_Type_Type_MAX
staticconstexpr

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

◆ Type_MIN

Type operations_research::MPSosConstraint::Type_MIN = MPSosConstraint_Type_Type_MIN
staticconstexpr

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


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