operations_research::MPSosConstraint Class Reference

Detailed Description

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

Public Types

typedef MPSosConstraint_Type Type
 

Public Member Functions

 MPSosConstraint ()
 
virtual ~MPSosConstraint ()
 
 MPSosConstraint (const MPSosConstraint &from)
 
 MPSosConstraint (MPSosConstraint &&from) noexcept
 
MPSosConstraintoperator= (const MPSosConstraint &from)
 
MPSosConstraintoperator= (MPSosConstraint &&from) noexcept
 
const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet & unknown_fields () const
 
inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet * mutable_unknown_fields ()
 
void Swap (MPSosConstraint *other)
 
MPSosConstraintNew () const final
 
MPSosConstraintNew (::PROTOBUF_NAMESPACE_ID::Arena *arena) const final
 
void CopyFrom (const ::PROTOBUF_NAMESPACE_ID::Message &from) final
 
void MergeFrom (const ::PROTOBUF_NAMESPACE_ID::Message &from) final
 
void CopyFrom (const MPSosConstraint &from)
 
void MergeFrom (const MPSosConstraint &from)
 
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear () final
 
bool IsInitialized () const final
 
size_t ByteSizeLong () const final
 
bool MergePartialFromCodedStream (::PROTOBUF_NAMESPACE_ID::io::CodedInputStream *input) final
 
void SerializeWithCachedSizes (::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream *output) const final
 
::PROTOBUF_NAMESPACE_ID::uint8 * InternalSerializeWithCachedSizesToArray (::PROTOBUF_NAMESPACE_ID::uint8 *target) const final
 
int GetCachedSize () const final
 
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata () const final
 
int var_index_size () const
 
void clear_var_index ()
 
::PROTOBUF_NAMESPACE_ID::int32 var_index (int index) const
 
void set_var_index (int index, ::PROTOBUF_NAMESPACE_ID::int32 value)
 
void add_var_index (::PROTOBUF_NAMESPACE_ID::int32 value)
 
const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int32 > & var_index () const
 
::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int32 > * 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 ::PROTOBUF_NAMESPACE_ID::RepeatedField< double > & weight () const
 
::PROTOBUF_NAMESPACE_ID::RepeatedField< double > * mutable_weight ()
 
bool has_type () const
 
void clear_type ()
 
::operations_research::MPSosConstraint_Type type () const
 
void set_type (::operations_research::MPSosConstraint_Type value)
 

Static Public Member Functions

static const ::PROTOBUF_NAMESPACE_ID::Descriptor * descriptor ()
 
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * GetDescriptor ()
 
static const ::PROTOBUF_NAMESPACE_ID::Reflection * GetReflection ()
 
static const MPSosConstraintdefault_instance ()
 
static void InitAsDefaultInstance ()
 
static const MPSosConstraintinternal_default_instance ()
 
static bool Type_IsValid (int value)
 
static const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor * Type_descriptor ()
 
template<typename T >
static const std::string & Type_Name (T enum_t_value)
 
static bool Type_Parse (const std::string &name, Type *value)
 

Static Public Attributes

static constexpr int kIndexInFileMessages
 
static constexpr Type SOS1_DEFAULT
 
static constexpr Type SOS2
 
static constexpr Type Type_MIN
 
static constexpr Type Type_MAX
 
static constexpr int Type_ARRAYSIZE
 
static const int kVarIndexFieldNumber = 2
 
static const int kWeightFieldNumber = 3
 
static const int kTypeFieldNumber = 1
 

Friends

class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata
 
struct ::TableStruct_ortools_2flinear_5fsolver_2flinear_5fsolver_2eproto
 
void swap (MPSosConstraint &a, MPSosConstraint &b)
 

Member Typedef Documentation

◆ Type

Constructor & Destructor Documentation

◆ MPSosConstraint() [1/3]

operations_research::MPSosConstraint::MPSosConstraint ( )

◆ ~MPSosConstraint()

virtual operations_research::MPSosConstraint::~MPSosConstraint ( )
virtual

◆ MPSosConstraint() [2/3]

operations_research::MPSosConstraint::MPSosConstraint ( const MPSosConstraint from)

◆ MPSosConstraint() [3/3]

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

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

Member Function Documentation

◆ add_var_index()

void operations_research::MPSosConstraint::add_var_index ( ::PROTOBUF_NAMESPACE_ID::int32  value)
inline

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

◆ add_weight()

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

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

◆ ByteSizeLong()

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

◆ Clear()

PROTOBUF_ATTRIBUTE_REINITIALIZES void operations_research::MPSosConstraint::Clear ( )
final

◆ clear_type()

void operations_research::MPSosConstraint::clear_type ( )
inline

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

◆ clear_var_index()

void operations_research::MPSosConstraint::clear_var_index ( )
inline

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

◆ clear_weight()

void operations_research::MPSosConstraint::clear_weight ( )
inline

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

◆ CopyFrom() [1/2]

void operations_research::MPSosConstraint::CopyFrom ( const ::PROTOBUF_NAMESPACE_ID::Message &  from)
final

◆ CopyFrom() [2/2]

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

◆ default_instance()

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

◆ descriptor()

static const ::PROTOBUF_NAMESPACE_ID::Descriptor* operations_research::MPSosConstraint::descriptor ( )
inlinestatic

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

◆ GetCachedSize()

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

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

◆ GetDescriptor()

static const ::PROTOBUF_NAMESPACE_ID::Descriptor* operations_research::MPSosConstraint::GetDescriptor ( )
inlinestatic

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

◆ GetMetadata()

::PROTOBUF_NAMESPACE_ID::Metadata operations_research::MPSosConstraint::GetMetadata ( ) const
final

◆ GetReflection()

static const ::PROTOBUF_NAMESPACE_ID::Reflection* operations_research::MPSosConstraint::GetReflection ( )
inlinestatic

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

◆ has_type()

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

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

◆ InitAsDefaultInstance()

static void operations_research::MPSosConstraint::InitAsDefaultInstance ( )
static

◆ internal_default_instance()

static const MPSosConstraint* operations_research::MPSosConstraint::internal_default_instance ( )
inlinestatic

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

◆ InternalSerializeWithCachedSizesToArray()

::PROTOBUF_NAMESPACE_ID::uint8* operations_research::MPSosConstraint::InternalSerializeWithCachedSizesToArray ( ::PROTOBUF_NAMESPACE_ID::uint8 *  target) const
final

◆ IsInitialized()

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

◆ MergeFrom() [1/2]

void operations_research::MPSosConstraint::MergeFrom ( const ::PROTOBUF_NAMESPACE_ID::Message &  from)
final

◆ MergeFrom() [2/2]

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

◆ MergePartialFromCodedStream()

bool operations_research::MPSosConstraint::MergePartialFromCodedStream ( ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream *  input)
final

◆ mutable_unknown_fields()

inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* operations_research::MPSosConstraint::mutable_unknown_fields ( )
inline

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

◆ mutable_var_index()

PROTOBUF_NAMESPACE_ID::RepeatedField<::PROTOBUF_NAMESPACE_ID::int32 > * operations_research::MPSosConstraint::mutable_var_index ( )
inline

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

◆ mutable_weight()

PROTOBUF_NAMESPACE_ID::RepeatedField< double > * operations_research::MPSosConstraint::mutable_weight ( )
inline

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

◆ New() [1/2]

MPSosConstraint* operations_research::MPSosConstraint::New ( ) const
inlinefinal

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

◆ New() [2/2]

MPSosConstraint* operations_research::MPSosConstraint::New ( ::PROTOBUF_NAMESPACE_ID::Arena *  arena) const
inlinefinal

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

◆ operator=() [1/2]

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

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

◆ operator=() [2/2]

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

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

◆ SerializeWithCachedSizes()

void operations_research::MPSosConstraint::SerializeWithCachedSizes ( ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream *  output) const
final

◆ set_type()

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

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

◆ set_var_index()

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

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

◆ set_weight()

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

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

◆ Swap()

void operations_research::MPSosConstraint::Swap ( MPSosConstraint other)

◆ type()

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

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

◆ Type_descriptor()

static const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* operations_research::MPSosConstraint::Type_descriptor ( )
inlinestatic

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

◆ Type_IsValid()

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

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

◆ Type_Name()

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

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

◆ Type_Parse()

static bool operations_research::MPSosConstraint::Type_Parse ( const std::string &  name,
Type value 
)
inlinestatic

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

◆ unknown_fields()

const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& operations_research::MPSosConstraint::unknown_fields ( ) const
inline

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

◆ var_index() [1/2]

PROTOBUF_NAMESPACE_ID::int32 operations_research::MPSosConstraint::var_index ( int  index) const
inline

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

◆ var_index() [2/2]

const ::PROTOBUF_NAMESPACE_ID::RepeatedField<::PROTOBUF_NAMESPACE_ID::int32 > & operations_research::MPSosConstraint::var_index ( ) const
inline

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

◆ var_index_size()

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

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

◆ weight() [1/2]

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

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

◆ weight() [2/2]

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

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

◆ weight_size()

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

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

Friends And Related Function Documentation

◆ ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata

friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata
friend

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

◆ ::TableStruct_ortools_2flinear_5fsolver_2flinear_5fsolver_2eproto

◆ swap

void swap ( MPSosConstraint a,
MPSosConstraint b 
)
friend

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

Member Data Documentation

◆ kIndexInFileMessages

constexpr int operations_research::MPSosConstraint::kIndexInFileMessages
static
Initial value:
=
4

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

◆ kTypeFieldNumber

const int operations_research::MPSosConstraint::kTypeFieldNumber = 1
static

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

◆ kVarIndexFieldNumber

const int operations_research::MPSosConstraint::kVarIndexFieldNumber = 2
static

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

◆ kWeightFieldNumber

const int operations_research::MPSosConstraint::kWeightFieldNumber = 3
static

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

◆ SOS1_DEFAULT

constexpr Type operations_research::MPSosConstraint::SOS1_DEFAULT
static
Initial value:

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

◆ SOS2

constexpr Type operations_research::MPSosConstraint::SOS2
static
Initial value:

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

◆ Type_ARRAYSIZE

constexpr int operations_research::MPSosConstraint::Type_ARRAYSIZE
static
Initial value:

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

◆ Type_MAX

constexpr Type operations_research::MPSosConstraint::Type_MAX
static
Initial value:

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

◆ Type_MIN

constexpr Type operations_research::MPSosConstraint::Type_MIN
static
Initial value:

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


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