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

Detailed Description

Definition at line 683 of file model.pb.h.

#include <model.pb.h>

Inheritance diagram for operations_research::math_opt::SosConstraintProto:

Classes

class  _Internal

Public Types

enum  : int { kExpressionsFieldNumber = 1 , kWeightsFieldNumber = 2 , kNameFieldNumber = 3 }
 nested types -------------------------------------------------— More...

Public Member Functions

 SosConstraintProto ()
 ~SosConstraintProto () PROTOBUF_FINAL
template<typename = void>
PROTOBUF_CONSTEXPR SosConstraintProto (::google::protobuf::internal::ConstantInitialized)
 SosConstraintProto (const SosConstraintProto &from)
 SosConstraintProto (SosConstraintProto &&from) noexcept
SosConstraintProtooperator= (const SosConstraintProto &from)
SosConstraintProtooperator= (SosConstraintProto &&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 (SosConstraintProto *PROTOBUF_NONNULL other)
void UnsafeArenaSwap (SosConstraintProto *PROTOBUF_NONNULL other)
SosConstraintProto *PROTOBUF_NONNULL New (::google::protobuf::Arena *PROTOBUF_NULLABLE arena=nullptr) const
 implements Message -------------------------------------------—
void CopyFrom (const SosConstraintProto &from)
void MergeFrom (const SosConstraintProto &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 expressions_size () const
 repeated .operations_research.math_opt.LinearExpressionProto expressions = 1;
void clear_expressions ()
::operations_research::math_opt::LinearExpressionProto *PROTOBUF_NONNULL mutable_expressions (int index)
::google::protobuf::RepeatedPtrField<::operations_research::math_opt::LinearExpressionProto > *PROTOBUF_NONNULL mutable_expressions ()
const ::operations_research::math_opt::LinearExpressionProtoexpressions (int index) const
::operations_research::math_opt::LinearExpressionProto *PROTOBUF_NONNULL add_expressions ()
const ::google::protobuf::RepeatedPtrField<::operations_research::math_opt::LinearExpressionProto > & expressions () const
int weights_size () const
 repeated double weights = 2;
void clear_weights ()
double weights (int index) const
void set_weights (int index, double value)
void add_weights (double value)
const ::google::protobuf::RepeatedField< double > & weights () const
::google::protobuf::RepeatedField< double > *PROTOBUF_NONNULL mutable_weights ()
void clear_name ()
 string name = 3;
const ::std::string & name () const
template<typename Arg_ = const ::std::string&, typename... Args_>
void set_name (Arg_ &&arg, Args_... args)
::std::string *PROTOBUF_NONNULL mutable_name ()
::std::string *PROTOBUF_NULLABLE release_name ()
void set_allocated_name (::std::string *PROTOBUF_NULLABLE value)
template<typename>
PROTOBUF_CONSTEXPR SosConstraintProto (::_pbi::ConstantInitialized)
template<typename Arg_, typename... Args_>
PROTOBUF_ALWAYS_INLINE void set_name (Arg_ &&arg, Args_... args)

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 SosConstraintProtodefault_instance ()
static constexpr auto InternalGenerateClassData_ ()

Static Public Attributes

static constexpr int kIndexInFileMessages = 5

Protected Member Functions

 SosConstraintProto (::google::protobuf::Arena *PROTOBUF_NULLABLE arena)
 SosConstraintProto (::google::protobuf::Arena *PROTOBUF_NULLABLE arena, const SosConstraintProto &from)
 SosConstraintProto (::google::protobuf::Arena *PROTOBUF_NULLABLE arena, SosConstraintProto &&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_2fmath_5fopt_2fmodel_2eproto
void swap (SosConstraintProto &a, SosConstraintProto &b)

Member Enumeration Documentation

◆ anonymous enum

anonymous enum : int

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

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

Enumerator
kExpressionsFieldNumber 
kWeightsFieldNumber 
kNameFieldNumber 

Definition at line 825 of file model.pb.h.

Constructor & Destructor Documentation

◆ SosConstraintProto() [1/8]

operations_research::math_opt::SosConstraintProto::SosConstraintProto ( )
inline

Definition at line 686 of file model.pb.h.

◆ ~SosConstraintProto()

operations_research::math_opt::SosConstraintProto::~SosConstraintProto ( )

@protoc_insertion_point(destructor:operations_research.math_opt.SosConstraintProto)

Definition at line 2707 of file model.pb.cc.

◆ SosConstraintProto() [2/8]

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

◆ SosConstraintProto() [3/8]

operations_research::math_opt::SosConstraintProto::SosConstraintProto ( const SosConstraintProto & from)
inline

Definition at line 699 of file model.pb.h.

◆ SosConstraintProto() [4/8]

operations_research::math_opt::SosConstraintProto::SosConstraintProto ( SosConstraintProto && from)
inlinenoexcept

Definition at line 700 of file model.pb.h.

◆ SosConstraintProto() [5/8]

operations_research::math_opt::SosConstraintProto::SosConstraintProto ( ::google::protobuf::Arena *PROTOBUF_NULLABLE arena)
explicitprotected

@protoc_insertion_point(arena_constructor:operations_research.math_opt.SosConstraintProto)

Definition at line 2661 of file model.pb.cc.

◆ SosConstraintProto() [6/8]

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

@protoc_insertion_point(copy_constructor:operations_research.math_opt.SosConstraintProto)

Definition at line 2680 of file model.pb.cc.

◆ SosConstraintProto() [7/8]

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

Definition at line 807 of file model.pb.h.

◆ SosConstraintProto() [8/8]

template<typename>
PROTOBUF_CONSTEXPR operations_research::math_opt::SosConstraintProto::SosConstraintProto ( ::_pbi::ConstantInitialized )

Definition at line 99 of file model.pb.cc.

Member Function Documentation

◆ _InternalSerialize()

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

@protoc_insertion_point(serialize_to_array_start:operations_research.math_opt.SosConstraintProto)

repeated .operations_research.math_opt.LinearExpressionProto expressions = 1;

repeated double weights = 2;

string name = 3;

@protoc_insertion_point(serialize_to_array_end:operations_research.math_opt.SosConstraintProto)

Definition at line 2852 of file model.pb.cc.

◆ add_expressions()

operations_research::math_opt::LinearExpressionProto *PROTOBUF_NONNULL operations_research::math_opt::SosConstraintProto::add_expressions ( )
inline

@protoc_insertion_point(field_add:operations_research.math_opt.SosConstraintProto.expressions)

Definition at line 3903 of file model.pb.h.

◆ add_weights()

void operations_research::math_opt::SosConstraintProto::add_weights ( double value)
inline

@protoc_insertion_point(field_add:operations_research.math_opt.SosConstraintProto.weights)

Definition at line 3945 of file model.pb.h.

◆ ByteSizeLong()

size_t operations_research::math_opt::SosConstraintProto::ByteSizeLong ( ) const
final

@protoc_insertion_point(message_byte_size_start:operations_research.math_opt.SosConstraintProto)

Prevent compiler warnings about cached_has_bits being unused

repeated .operations_research.math_opt.LinearExpressionProto expressions = 1;

repeated double weights = 2;

string name = 3;

Definition at line 2900 of file model.pb.cc.

◆ Clear()

PROTOBUF_NOINLINE void operations_research::math_opt::SosConstraintProto::Clear ( )

@protoc_insertion_point(message_clear_start:operations_research.math_opt.SosConstraintProto)

Prevent compiler warnings about cached_has_bits being unused

Definition at line 2829 of file model.pb.cc.

◆ clear_expressions()

void operations_research::math_opt::SosConstraintProto::clear_expressions ( )

Definition at line 2657 of file model.pb.cc.

◆ clear_name()

void operations_research::math_opt::SosConstraintProto::clear_name ( )
inline

string name = 3;

Definition at line 3973 of file model.pb.h.

◆ clear_weights()

void operations_research::math_opt::SosConstraintProto::clear_weights ( )
inline

Definition at line 3933 of file model.pb.h.

◆ CopyFrom()

void operations_research::math_opt::SosConstraintProto::CopyFrom ( const SosConstraintProto & from)

@protoc_insertion_point(class_specific_copy_from_start:operations_research.math_opt.SosConstraintProto)

Definition at line 2969 of file model.pb.cc.

◆ default_instance()

const SosConstraintProto & operations_research::math_opt::SosConstraintProto::default_instance ( )
inlinestatic

Definition at line 734 of file model.pb.h.

◆ descriptor()

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

Definition at line 725 of file model.pb.h.

◆ expressions() [1/2]

const::google::protobuf::RepeatedPtrField<::operations_research::math_opt::LinearExpressionProto > & operations_research::math_opt::SosConstraintProto::expressions ( ) const
inline

@protoc_insertion_point(field_list:operations_research.math_opt.SosConstraintProto.expressions)

Definition at line 3910 of file model.pb.h.

◆ expressions() [2/2]

const::operations_research::math_opt::LinearExpressionProto & operations_research::math_opt::SosConstraintProto::expressions ( int index) const
inline

@protoc_insertion_point(field_get:operations_research.math_opt.SosConstraintProto.expressions)

Definition at line 3898 of file model.pb.h.

◆ expressions_size()

int operations_research::math_opt::SosConstraintProto::expressions_size ( ) const
inline

repeated .operations_research.math_opt.LinearExpressionProto expressions = 1;

Definition at line 3884 of file model.pb.h.

◆ GetCachedSize()

int operations_research::math_opt::SosConstraintProto::GetCachedSize ( ) const
inline

Definition at line 793 of file model.pb.h.

◆ GetClassData()

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

Definition at line 2772 of file model.pb.cc.

◆ GetDescriptor()

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

Definition at line 728 of file model.pb.h.

◆ GetMetadata()

google::protobuf::Metadata operations_research::math_opt::SosConstraintProto::GetMetadata ( ) const

Definition at line 2988 of file model.pb.cc.

◆ GetReflection()

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

Definition at line 731 of file model.pb.h.

◆ InternalGenerateClassData_()

auto operations_research::math_opt::SosConstraintProto::InternalGenerateClassData_ ( )
staticconstexpr

Definition at line 2744 of file model.pb.cc.

◆ InternalNewImpl_()

auto operations_research::math_opt::SosConstraintProto::InternalNewImpl_ ( )
staticconstexprprotected

Definition at line 2724 of file model.pb.cc.

◆ IsInitialized()

bool operations_research::math_opt::SosConstraintProto::IsInitialized ( ) const
inline

Definition at line 769 of file model.pb.h.

◆ MergeFrom()

void operations_research::math_opt::SosConstraintProto::MergeFrom ( const SosConstraintProto & from)
inline

Definition at line 762 of file model.pb.h.

◆ mutable_expressions() [1/2]

google::protobuf::RepeatedPtrField<::operations_research::math_opt::LinearExpressionProto > *PROTOBUF_NONNULL operations_research::math_opt::SosConstraintProto::mutable_expressions ( )
inline

@protoc_insertion_point(field_mutable_list:operations_research.math_opt.SosConstraintProto.expressions)

Definition at line 3892 of file model.pb.h.

◆ mutable_expressions() [2/2]

operations_research::math_opt::LinearExpressionProto *PROTOBUF_NONNULL operations_research::math_opt::SosConstraintProto::mutable_expressions ( int index)
inline

@protoc_insertion_point(field_mutable:operations_research.math_opt.SosConstraintProto.expressions)

Definition at line 3887 of file model.pb.h.

◆ mutable_name()

std::string *PROTOBUF_NONNULL operations_research::math_opt::SosConstraintProto::mutable_name ( )
inline

@protoc_insertion_point(field_mutable:operations_research.math_opt.SosConstraintProto.name)

Definition at line 3990 of file model.pb.h.

◆ mutable_unknown_fields()

inline ::google::protobuf::UnknownFieldSet *PROTOBUF_NONNULL operations_research::math_opt::SosConstraintProto::mutable_unknown_fields ( )
inline

Definition at line 720 of file model.pb.h.

◆ mutable_weights()

google::protobuf::RepeatedField< double > *PROTOBUF_NONNULL operations_research::math_opt::SosConstraintProto::mutable_weights ( )
inline

@protoc_insertion_point(field_mutable_list:operations_research.math_opt.SosConstraintProto.weights)

Definition at line 3955 of file model.pb.h.

◆ name()

const::std::string & operations_research::math_opt::SosConstraintProto::name ( ) const
inline

@protoc_insertion_point(field_get:operations_research.math_opt.SosConstraintProto.name)

Definition at line 3978 of file model.pb.h.

◆ New()

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

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

Definition at line 756 of file model.pb.h.

◆ operator=() [1/2]

SosConstraintProto & operations_research::math_opt::SosConstraintProto::operator= ( const SosConstraintProto & from)
inline

Definition at line 702 of file model.pb.h.

◆ operator=() [2/2]

SosConstraintProto & operations_research::math_opt::SosConstraintProto::operator= ( SosConstraintProto && from)
inlinenoexcept

Definition at line 706 of file model.pb.h.

◆ PlacementNew_()

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

Definition at line 2719 of file model.pb.cc.

◆ release_name()

std::string *PROTOBUF_NULLABLE operations_research::math_opt::SosConstraintProto::release_name ( )
inlinenodiscard

@protoc_insertion_point(field_release:operations_research.math_opt.SosConstraintProto.name)

Definition at line 4010 of file model.pb.h.

◆ set_allocated_name()

void operations_research::math_opt::SosConstraintProto::set_allocated_name ( ::std::string *PROTOBUF_NULLABLE value)
inline

@protoc_insertion_point(field_set_allocated:operations_research.math_opt.SosConstraintProto.name)

Definition at line 4023 of file model.pb.h.

◆ set_name() [1/2]

template<typename Arg_ = const ::std::string&, typename... Args_>
void operations_research::math_opt::SosConstraintProto::set_name ( Arg_ && arg,
Args_... args )

◆ set_name() [2/2]

template<typename Arg_, typename... Args_>
PROTOBUF_ALWAYS_INLINE void operations_research::math_opt::SosConstraintProto::set_name ( Arg_ && arg,
Args_... args )

@protoc_insertion_point(field_set:operations_research.math_opt.SosConstraintProto.name)

Definition at line 3984 of file model.pb.h.

◆ set_weights()

void operations_research::math_opt::SosConstraintProto::set_weights ( int index,
double value )
inline

@protoc_insertion_point(field_set:operations_research.math_opt.SosConstraintProto.weights)

Definition at line 3941 of file model.pb.h.

◆ Swap()

void operations_research::math_opt::SosConstraintProto::Swap ( SosConstraintProto *PROTOBUF_NONNULL other)
inline

Definition at line 740 of file model.pb.h.

◆ unknown_fields()

const ::google::protobuf::UnknownFieldSet & operations_research::math_opt::SosConstraintProto::unknown_fields ( ) const
inline

Definition at line 716 of file model.pb.h.

◆ UnsafeArenaSwap()

void operations_research::math_opt::SosConstraintProto::UnsafeArenaSwap ( SosConstraintProto *PROTOBUF_NONNULL other)
inline

Definition at line 748 of file model.pb.h.

◆ weights() [1/2]

const::google::protobuf::RepeatedField< double > & operations_research::math_opt::SosConstraintProto::weights ( ) const
inline

@protoc_insertion_point(field_list:operations_research.math_opt.SosConstraintProto.weights)

Definition at line 3950 of file model.pb.h.

◆ weights() [2/2]

double operations_research::math_opt::SosConstraintProto::weights ( int index) const
inline

@protoc_insertion_point(field_get:operations_research.math_opt.SosConstraintProto.weights)

Definition at line 3937 of file model.pb.h.

◆ weights_size()

int operations_research::math_opt::SosConstraintProto::weights_size ( ) const
inline

repeated double weights = 2;

Definition at line 3930 of file model.pb.h.

◆ ::google::protobuf::Arena

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

Definition at line 890 of file model.pb.h.

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

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

Definition at line 892 of file model.pb.h.

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

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

Definition at line 883 of file model.pb.h.

◆ ::google::protobuf::MessageLite

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

Definition at line 889 of file model.pb.h.

◆ ::TableStruct_ortools_2fmath_5fopt_2fmodel_2eproto

Definition at line 912 of file model.pb.h.

◆ swap

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

Definition at line 739 of file model.pb.h.

Member Data Documentation

◆ _impl_

Impl_ operations_research::math_opt::SosConstraintProto::_impl_

Definition at line 911 of file model.pb.h.

◆ kIndexInFileMessages

int operations_research::math_opt::SosConstraintProto::kIndexInFileMessages = 5
staticconstexpr

Definition at line 738 of file model.pb.h.


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