C++ Reference

C++ Reference: Linear solver

MPSosConstraint

Detailed Description

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

Public Types

enum  : int { kVarIndexFieldNumber = 2, kWeightFieldNumber = 3, kTypeFieldNumber = 1 }
 
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
 
const char * _InternalParse (const char *ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext *ctx) final
 
::PROTOBUF_NAMESPACE_ID::uint8 * _InternalSerialize (::PROTOBUF_NAMESPACE_ID::uint8 *target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream *stream) 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
 

Member Typedef Documentation

◆ Type

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

Member Enumeration Documentation

◆ anonymous enum

anonymous enum : int
Enumerator
kVarIndexFieldNumber 
kWeightFieldNumber 
kTypeFieldNumber 

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

Constructor & Destructor Documentation

◆ MPSosConstraint() [1/3]

◆ ~MPSosConstraint()

virtual ~MPSosConstraint ( )
virtual

◆ MPSosConstraint() [2/3]

MPSosConstraint ( const MPSosConstraint from)

◆ MPSosConstraint() [3/3]

MPSosConstraint ( MPSosConstraint &&  from)
inlinenoexcept

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

Member Function Documentation

◆ _InternalParse()

const char* _InternalParse ( const char *  ptr,
::PROTOBUF_NAMESPACE_ID::internal::ParseContext *  ctx 
)
final

◆ _InternalSerialize()

::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize ( ::PROTOBUF_NAMESPACE_ID::uint8 *  target,
::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream *  stream 
) const
final

◆ add_var_index()

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

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

◆ add_weight()

void add_weight ( double  value)
inline

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

◆ ByteSizeLong()

size_t ByteSizeLong ( ) const
final

◆ Clear()

PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear ( )
final

◆ clear_type()

void clear_type ( )
inline

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

◆ clear_var_index()

void clear_var_index ( )
inline

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

◆ clear_weight()

void clear_weight ( )
inline

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

◆ CopyFrom() [1/2]

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

◆ CopyFrom() [2/2]

void CopyFrom ( const MPSosConstraint from)

◆ default_instance()

static const MPSosConstraint& default_instance ( )
static

◆ descriptor()

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

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

◆ GetCachedSize()

int GetCachedSize ( ) const
inlinefinal

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

◆ GetDescriptor()

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

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

◆ GetMetadata()

::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata ( ) const
final

◆ GetReflection()

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

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

◆ has_type()

bool has_type ( ) const
inline

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

◆ InitAsDefaultInstance()

static void InitAsDefaultInstance ( )
static

◆ internal_default_instance()

static const MPSosConstraint* internal_default_instance ( )
inlinestatic

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

◆ IsInitialized()

bool IsInitialized ( ) const
final

◆ MergeFrom() [1/2]

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

◆ MergeFrom() [2/2]

void MergeFrom ( const MPSosConstraint from)

◆ mutable_unknown_fields()

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

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

◆ mutable_var_index()

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

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

◆ mutable_weight()

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

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

◆ New() [1/2]

MPSosConstraint* New ( ) const
inlinefinal

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

◆ New() [2/2]

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

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

◆ operator=() [1/2]

MPSosConstraint& operator= ( const MPSosConstraint from)
inline

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

◆ operator=() [2/2]

MPSosConstraint& operator= ( MPSosConstraint &&  from)
inlinenoexcept

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

◆ set_type()

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

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

◆ set_var_index()

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

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

◆ set_weight()

void set_weight ( int  index,
double  value 
)
inline

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

◆ Swap()

void Swap ( MPSosConstraint other)
inline

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

◆ type()

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

◆ Type_descriptor()

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

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

◆ Type_IsValid()

static bool Type_IsValid ( int  value)
inlinestatic

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

◆ Type_Name()

static const std::string& Type_Name ( enum_t_value)
inlinestatic

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

◆ Type_Parse()

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

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

◆ unknown_fields()

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

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

◆ var_index() [1/2]

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

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

◆ var_index() [2/2]

PROTOBUF_NAMESPACE_ID::int32 var_index ( int  index) const
inline

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

◆ var_index_size()

int var_index_size ( ) const
inline

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

◆ weight() [1/2]

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

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

◆ weight() [2/2]

double weight ( int  index) const
inline

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

◆ weight_size()

int weight_size ( ) const
inline

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

Member Data Documentation

◆ kIndexInFileMessages

constexpr int kIndexInFileMessages
staticconstexpr
Initial value:
=
4

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

◆ SOS1_DEFAULT

constexpr Type SOS1_DEFAULT
staticconstexpr
Initial value:

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

◆ SOS2

constexpr Type SOS2
staticconstexpr
Initial value:

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

◆ Type_ARRAYSIZE

constexpr int Type_ARRAYSIZE
staticconstexpr
Initial value:

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

◆ Type_MAX

constexpr Type Type_MAX
staticconstexpr
Initial value:

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

◆ Type_MIN

constexpr Type Type_MIN
staticconstexpr
Initial value:

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


The documentation for this class was generated from the following file:
constexpr MPSosConstraint_Type MPSosConstraint_Type_Type_MAX
constexpr MPSosConstraint_Type MPSosConstraint_Type_Type_MIN
constexpr int MPSosConstraint_Type_Type_ARRAYSIZE