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

Detailed Description

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

#include <linear_solver.pb.h>

Inheritance diagram for operations_research::sat::MPVariableProto:

Classes

class  _Internal

Public Types

enum  : int {
  kNameFieldNumber = 5 , kObjectiveCoefficientFieldNumber = 3 , kIsIntegerFieldNumber = 4 , kBranchingPriorityFieldNumber = 6 ,
  kLowerBoundFieldNumber = 1 , kUpperBoundFieldNumber = 2
}
 nested types -------------------------------------------------— More...

Public Member Functions

 MPVariableProto ()
template<typename = void>
PROTOBUF_CONSTEXPR MPVariableProto (::google::protobuf::internal::ConstantInitialized)
 MPVariableProto (const MPVariableProto &from)
 MPVariableProto (MPVariableProto &&from) noexcept
template<typename>
PROTOBUF_CONSTEXPR MPVariableProto (::_pbi::ConstantInitialized)
 ~MPVariableProto () PROTOBUF_FINAL
MPVariableProtooperator= (const MPVariableProto &from)
MPVariableProtooperator= (MPVariableProto &&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 (MPVariableProto *PROTOBUF_NONNULL other)
void UnsafeArenaSwap (MPVariableProto *PROTOBUF_NONNULL other)
MPVariableProto *PROTOBUF_NONNULL New (::google::protobuf::Arena *PROTOBUF_NULLABLE arena=nullptr) const
 implements Message -------------------------------------------—
void CopyFrom (const MPVariableProto &from)
void MergeFrom (const MPVariableProto &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
bool has_name () const
 optional string name = 5 [default = ""];
void clear_name ()
const ::std::string & name () const
template<typename Arg_ = const ::std::string&, typename... Args_>
void set_name (Arg_ &&arg, Args_... args)
template<typename Arg_, typename... Args_>
PROTOBUF_ALWAYS_INLINE 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)
bool has_objective_coefficient () const
 optional double objective_coefficient = 3 [default = 0];
void clear_objective_coefficient ()
double objective_coefficient () const
void set_objective_coefficient (double value)
bool has_is_integer () const
 optional bool is_integer = 4 [default = false];
void clear_is_integer ()
bool is_integer () const
void set_is_integer (bool value)
bool has_branching_priority () const
 optional int32 branching_priority = 6 [default = 0];
void clear_branching_priority ()
::int32_t branching_priority () const
void set_branching_priority (::int32_t value)
bool has_lower_bound () const
 optional double lower_bound = 1 [default = -inf];
void clear_lower_bound ()
double lower_bound () const
void set_lower_bound (double value)
bool has_upper_bound () const
 optional double upper_bound = 2 [default = inf];
void clear_upper_bound ()
double upper_bound () const
void set_upper_bound (double value)

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

Static Public Attributes

static constexpr int kIndexInFileMessages = 0

Protected Member Functions

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

Member Enumeration Documentation

◆ anonymous enum

anonymous enum : int

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

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

Enumerator
kNameFieldNumber 
kObjectiveCoefficientFieldNumber 
kIsIntegerFieldNumber 
kBranchingPriorityFieldNumber 
kLowerBoundFieldNumber 
kUpperBoundFieldNumber 

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

Constructor & Destructor Documentation

◆ MPVariableProto() [1/8]

operations_research::MPVariableProto::MPVariableProto ( )
inline

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

◆ MPVariableProto() [2/8]

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

◆ MPVariableProto() [3/8]

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

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

◆ MPVariableProto() [4/8]

operations_research::MPVariableProto::MPVariableProto ( MPVariableProto && from)
inlinenoexcept

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

◆ MPVariableProto() [5/8]

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

@protoc_insertion_point(arena_constructor:operations_research.MPVariableProto)

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

◆ MPVariableProto() [6/8]

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

@protoc_insertion_point(copy_constructor:operations_research.MPVariableProto)

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

◆ MPVariableProto() [7/8]

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

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

◆ MPVariableProto() [8/8]

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

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

◆ ~MPVariableProto()

operations_research::MPVariableProto::~MPVariableProto ( )

@protoc_insertion_point(destructor:operations_research.MPVariableProto)

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

Member Function Documentation

◆ _InternalSerialize()

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

@protoc_insertion_point(serialize_to_array_start:operations_research.MPVariableProto)

optional double lower_bound = 1 [default = -inf];

optional double upper_bound = 2 [default = inf];

optional double objective_coefficient = 3 [default = 0];

optional bool is_integer = 4 [default = false];

optional string name = 5 [default = ""];

optional int32 branching_priority = 6 [default = 0];

@protoc_insertion_point(serialize_to_array_end:operations_research.MPVariableProto)

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

◆ branching_priority()

int32_t operations_research::MPVariableProto::branching_priority ( ) const
inline

@protoc_insertion_point(field_get:operations_research.MPVariableProto.branching_priority)

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

◆ ByteSizeLong()

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

@protoc_insertion_point(message_byte_size_start:operations_research.MPVariableProto)

Prevent compiler warnings about cached_has_bits being unused

optional string name = 5 [default = ""];

optional int32 branching_priority = 6 [default = 0];

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

◆ Clear()

PROTOBUF_NOINLINE void operations_research::MPVariableProto::Clear ( )

@protoc_insertion_point(message_clear_start:operations_research.MPVariableProto)

Prevent compiler warnings about cached_has_bits being unused

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

◆ clear_branching_priority()

void operations_research::MPVariableProto::clear_branching_priority ( )
inline

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

◆ clear_is_integer()

void operations_research::MPVariableProto::clear_is_integer ( )
inline

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

◆ clear_lower_bound()

void operations_research::MPVariableProto::clear_lower_bound ( )
inline

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

◆ clear_name()

void operations_research::MPVariableProto::clear_name ( )
inline

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

◆ clear_objective_coefficient()

void operations_research::MPVariableProto::clear_objective_coefficient ( )
inline

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

◆ clear_upper_bound()

void operations_research::MPVariableProto::clear_upper_bound ( )
inline

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

◆ CopyFrom()

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

@protoc_insertion_point(class_specific_copy_from_start:operations_research.MPVariableProto)

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

◆ default_instance()

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

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

◆ descriptor()

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

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

◆ GetCachedSize()

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

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

◆ GetClassData()

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

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

◆ GetDescriptor()

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

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

◆ GetMetadata()

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

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

◆ GetReflection()

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

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

◆ has_branching_priority()

bool operations_research::MPVariableProto::has_branching_priority ( ) const
inline

optional int32 branching_priority = 6 [default = 0];

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

◆ has_is_integer()

bool operations_research::MPVariableProto::has_is_integer ( ) const
inline

optional bool is_integer = 4 [default = false];

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

◆ has_lower_bound()

bool operations_research::MPVariableProto::has_lower_bound ( ) const
inline

optional double lower_bound = 1 [default = -inf];

MPVariableProto.

optional double lower_bound = 1 [default = -inf];

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

◆ has_name()

bool operations_research::MPVariableProto::has_name ( ) const
inline

optional string name = 5 [default = ""];

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

◆ has_objective_coefficient()

bool operations_research::MPVariableProto::has_objective_coefficient ( ) const
inline

optional double objective_coefficient = 3 [default = 0];

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

◆ has_upper_bound()

bool operations_research::MPVariableProto::has_upper_bound ( ) const
inline

optional double upper_bound = 2 [default = inf];

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

◆ InternalGenerateClassData_()

auto operations_research::MPVariableProto::InternalGenerateClassData_ ( )
staticconstexpr

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

◆ InternalNewImpl_()

auto operations_research::MPVariableProto::InternalNewImpl_ ( )
staticconstexprprotected

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

◆ is_integer()

bool operations_research::MPVariableProto::is_integer ( ) const
inline

@protoc_insertion_point(field_get:operations_research.MPVariableProto.is_integer)

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

◆ IsInitialized()

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

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

◆ lower_bound()

double operations_research::MPVariableProto::lower_bound ( ) const
inline

@protoc_insertion_point(field_get:operations_research.MPVariableProto.lower_bound)

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

◆ MergeFrom()

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

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

◆ mutable_name()

std::string *PROTOBUF_NONNULL operations_research::MPVariableProto::mutable_name ( )
inline

@protoc_insertion_point(field_mutable:operations_research.MPVariableProto.name)

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

◆ mutable_unknown_fields()

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

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

◆ name()

const::std::string & operations_research::MPVariableProto::name ( ) const
inline

@protoc_insertion_point(field_get:operations_research.MPVariableProto.name)

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

◆ New()

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

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

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

◆ objective_coefficient()

double operations_research::MPVariableProto::objective_coefficient ( ) const
inline

@protoc_insertion_point(field_get:operations_research.MPVariableProto.objective_coefficient)

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

◆ operator=() [1/2]

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

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

◆ operator=() [2/2]

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

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

◆ PlacementNew_()

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

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

◆ release_name()

std::string *PROTOBUF_NULLABLE operations_research::MPVariableProto::release_name ( )
inlinenodiscard

@protoc_insertion_point(field_release:operations_research.MPVariableProto.name)

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

◆ set_allocated_name()

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

@protoc_insertion_point(field_set_allocated:operations_research.MPVariableProto.name)

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

◆ set_branching_priority()

void operations_research::MPVariableProto::set_branching_priority ( ::int32_t value)
inline

@protoc_insertion_point(field_set:operations_research.MPVariableProto.branching_priority)

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

◆ set_is_integer()

void operations_research::MPVariableProto::set_is_integer ( bool value)
inline

@protoc_insertion_point(field_set:operations_research.MPVariableProto.is_integer)

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

◆ set_lower_bound()

void operations_research::MPVariableProto::set_lower_bound ( double value)
inline

@protoc_insertion_point(field_set:operations_research.MPVariableProto.lower_bound)

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

◆ set_name() [1/2]

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

◆ set_name() [2/2]

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

@protoc_insertion_point(field_set:operations_research.MPVariableProto.name)

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

◆ set_objective_coefficient()

void operations_research::MPVariableProto::set_objective_coefficient ( double value)
inline

@protoc_insertion_point(field_set:operations_research.MPVariableProto.objective_coefficient)

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

◆ set_upper_bound()

void operations_research::MPVariableProto::set_upper_bound ( double value)
inline

@protoc_insertion_point(field_set:operations_research.MPVariableProto.upper_bound)

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

◆ Swap()

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

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

◆ unknown_fields()

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

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

◆ UnsafeArenaSwap()

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

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

◆ upper_bound()

double operations_research::MPVariableProto::upper_bound ( ) const
inline

@protoc_insertion_point(field_get:operations_research.MPVariableProto.upper_bound)

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

◆ ::google::protobuf::Arena

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

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

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

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

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

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

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

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

◆ ::google::protobuf::MessageLite

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

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

◆ ::TableStruct_ortools_2flinear_5fsolver_2flinear_5fsolver_2eproto

◆ swap

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

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

Member Data Documentation

◆ _impl_

Impl_ operations_research::MPVariableProto::_impl_

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

◆ kIndexInFileMessages

int operations_research::MPVariableProto::kIndexInFileMessages = 0
staticconstexpr

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


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