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

Detailed Description

Definition at line 90 of file boolean_problem.pb.h.

#include <boolean_problem.pb.h>

Inheritance diagram for operations_research::sat::LinearObjective:

Classes

class  _Internal

Public Types

enum  : int { kLiteralsFieldNumber = 1 , kCoefficientsFieldNumber = 2 , kOffsetFieldNumber = 3 , kScalingFactorFieldNumber = 4 }

Public Member Functions

 LinearObjective ()
 ~LinearObjective () PROTOBUF_FINAL
template<typename = void>
PROTOBUF_CONSTEXPR LinearObjective (::google::protobuf::internal::ConstantInitialized)
 LinearObjective (const LinearObjective &from)
 LinearObjective (LinearObjective &&from) noexcept
LinearObjectiveoperator= (const LinearObjective &from)
LinearObjectiveoperator= (LinearObjective &&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 (LinearObjective *PROTOBUF_NONNULL other)
void UnsafeArenaSwap (LinearObjective *PROTOBUF_NONNULL other)
LinearObjective *PROTOBUF_NONNULL New (::google::protobuf::Arena *PROTOBUF_NULLABLE arena=nullptr) const
void CopyFrom (const LinearObjective &from)
void MergeFrom (const LinearObjective &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 literals_size () const
void clear_literals ()
::int32_t literals (int index) const
void set_literals (int index, ::int32_t value)
void add_literals (::int32_t value)
const ::google::protobuf::RepeatedField<::int32_t > & literals () const
::google::protobuf::RepeatedField<::int32_t > *PROTOBUF_NONNULL mutable_literals ()
int coefficients_size () const
void clear_coefficients ()
::int64_t coefficients (int index) const
void set_coefficients (int index, ::int64_t value)
void add_coefficients (::int64_t value)
const ::google::protobuf::RepeatedField<::int64_t > & coefficients () const
::google::protobuf::RepeatedField<::int64_t > *PROTOBUF_NONNULL mutable_coefficients ()
bool has_offset () const
void clear_offset ()
double offset () const
void set_offset (double value)
bool has_scaling_factor () const
void clear_scaling_factor ()
double scaling_factor () const
void set_scaling_factor (double value)
template<typename>
PROTOBUF_CONSTEXPR LinearObjective (::_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 LinearObjectivedefault_instance ()
static constexpr auto InternalGenerateClassData_ ()

Static Public Attributes

static constexpr int kIndexInFileMessages = 1

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_2fsat_2fboolean_5fproblem_2eproto
void swap (LinearObjective &a, LinearObjective &b)

Member Enumeration Documentation

◆ anonymous enum

anonymous enum : int
Enumerator
kLiteralsFieldNumber 
kCoefficientsFieldNumber 
kOffsetFieldNumber 
kScalingFactorFieldNumber 

Definition at line 231 of file boolean_problem.pb.h.

Constructor & Destructor Documentation

◆ LinearObjective() [1/5]

operations_research::sat::LinearObjective::LinearObjective ( )
inline

Definition at line 93 of file boolean_problem.pb.h.

◆ ~LinearObjective()

operations_research::sat::LinearObjective::~LinearObjective ( )

Definition at line 735 of file boolean_problem.pb.cc.

◆ LinearObjective() [2/5]

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

◆ LinearObjective() [3/5]

operations_research::sat::LinearObjective::LinearObjective ( const LinearObjective & from)
inline

Definition at line 106 of file boolean_problem.pb.h.

◆ LinearObjective() [4/5]

operations_research::sat::LinearObjective::LinearObjective ( LinearObjective && from)
inlinenoexcept

Definition at line 107 of file boolean_problem.pb.h.

◆ LinearObjective() [5/5]

template<typename>
PROTOBUF_CONSTEXPR operations_research::sat::LinearObjective::LinearObjective ( ::_pbi::ConstantInitialized )

Definition at line 39 of file boolean_problem.pb.cc.

Member Function Documentation

◆ _InternalSerialize()

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

Definition at line 889 of file boolean_problem.pb.cc.

◆ add_coefficients()

void operations_research::sat::LinearObjective::add_coefficients ( ::int64_t value)
inline

Definition at line 1417 of file boolean_problem.pb.h.

◆ add_literals()

void operations_research::sat::LinearObjective::add_literals ( ::int32_t value)
inline

Definition at line 1367 of file boolean_problem.pb.h.

◆ ByteSizeLong()

size_t operations_research::sat::LinearObjective::ByteSizeLong ( ) const
final

Definition at line 947 of file boolean_problem.pb.cc.

◆ Clear()

PROTOBUF_NOINLINE void operations_research::sat::LinearObjective::Clear ( )

Definition at line 859 of file boolean_problem.pb.cc.

◆ clear_coefficients()

void operations_research::sat::LinearObjective::clear_coefficients ( )
inline

Definition at line 1403 of file boolean_problem.pb.h.

◆ clear_literals()

void operations_research::sat::LinearObjective::clear_literals ( )
inline

Definition at line 1353 of file boolean_problem.pb.h.

◆ clear_offset()

void operations_research::sat::LinearObjective::clear_offset ( )
inline

Definition at line 1451 of file boolean_problem.pb.h.

◆ clear_scaling_factor()

void operations_research::sat::LinearObjective::clear_scaling_factor ( )
inline

Definition at line 1480 of file boolean_problem.pb.h.

◆ coefficients() [1/2]

const::google::protobuf::RepeatedField<::int64_t > & operations_research::sat::LinearObjective::coefficients ( ) const
inline

Definition at line 1423 of file boolean_problem.pb.h.

◆ coefficients() [2/2]

int64_t operations_research::sat::LinearObjective::coefficients ( int index) const
inline

Definition at line 1409 of file boolean_problem.pb.h.

◆ coefficients_size()

int operations_research::sat::LinearObjective::coefficients_size ( ) const
inline

Definition at line 1400 of file boolean_problem.pb.h.

◆ CopyFrom()

void operations_research::sat::LinearObjective::CopyFrom ( const LinearObjective & from)

Definition at line 1015 of file boolean_problem.pb.cc.

◆ default_instance()

const LinearObjective & operations_research::sat::LinearObjective::default_instance ( )
inlinestatic

Definition at line 141 of file boolean_problem.pb.h.

◆ descriptor()

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

Definition at line 132 of file boolean_problem.pb.h.

◆ GetCachedSize()

int operations_research::sat::LinearObjective::GetCachedSize ( ) const
inline

Definition at line 200 of file boolean_problem.pb.h.

◆ GetDescriptor()

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

Definition at line 135 of file boolean_problem.pb.h.

◆ GetMetadata()

google::protobuf::Metadata operations_research::sat::LinearObjective::GetMetadata ( ) const

Definition at line 1037 of file boolean_problem.pb.cc.

◆ GetReflection()

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

Definition at line 138 of file boolean_problem.pb.h.

◆ has_offset()

bool operations_research::sat::LinearObjective::has_offset ( ) const
inline

Definition at line 1447 of file boolean_problem.pb.h.

◆ has_scaling_factor()

bool operations_research::sat::LinearObjective::has_scaling_factor ( ) const
inline

Definition at line 1476 of file boolean_problem.pb.h.

◆ InternalGenerateClassData_()

auto operations_research::sat::LinearObjective::InternalGenerateClassData_ ( )
staticconstexpr

Definition at line 774 of file boolean_problem.pb.cc.

◆ IsInitialized()

bool operations_research::sat::LinearObjective::IsInitialized ( ) const
inline

Definition at line 176 of file boolean_problem.pb.h.

◆ literals() [1/2]

const::google::protobuf::RepeatedField<::int32_t > & operations_research::sat::LinearObjective::literals ( ) const
inline

Definition at line 1373 of file boolean_problem.pb.h.

◆ literals() [2/2]

int32_t operations_research::sat::LinearObjective::literals ( int index) const
inline

Definition at line 1359 of file boolean_problem.pb.h.

◆ literals_size()

int operations_research::sat::LinearObjective::literals_size ( ) const
inline

Definition at line 1350 of file boolean_problem.pb.h.

◆ MergeFrom()

void operations_research::sat::LinearObjective::MergeFrom ( const LinearObjective & from)
inline

Definition at line 169 of file boolean_problem.pb.h.

◆ mutable_coefficients()

google::protobuf::RepeatedField<::int64_t > *PROTOBUF_NONNULL operations_research::sat::LinearObjective::mutable_coefficients ( )
inline

Definition at line 1428 of file boolean_problem.pb.h.

◆ mutable_literals()

google::protobuf::RepeatedField<::int32_t > *PROTOBUF_NONNULL operations_research::sat::LinearObjective::mutable_literals ( )
inline

Definition at line 1378 of file boolean_problem.pb.h.

◆ mutable_unknown_fields()

inline ::google::protobuf::UnknownFieldSet *PROTOBUF_NONNULL operations_research::sat::LinearObjective::mutable_unknown_fields ( )
inline

Definition at line 127 of file boolean_problem.pb.h.

◆ New()

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

Definition at line 163 of file boolean_problem.pb.h.

◆ offset()

double operations_research::sat::LinearObjective::offset ( ) const
inline

Definition at line 1457 of file boolean_problem.pb.h.

◆ operator=() [1/2]

LinearObjective & operations_research::sat::LinearObjective::operator= ( const LinearObjective & from)
inline

Definition at line 109 of file boolean_problem.pb.h.

◆ operator=() [2/2]

LinearObjective & operations_research::sat::LinearObjective::operator= ( LinearObjective && from)
inlinenoexcept

Definition at line 113 of file boolean_problem.pb.h.

◆ scaling_factor()

double operations_research::sat::LinearObjective::scaling_factor ( ) const
inline

Definition at line 1486 of file boolean_problem.pb.h.

◆ set_coefficients()

void operations_research::sat::LinearObjective::set_coefficients ( int index,
::int64_t value )
inline

Definition at line 1413 of file boolean_problem.pb.h.

◆ set_literals()

void operations_research::sat::LinearObjective::set_literals ( int index,
::int32_t value )
inline

Definition at line 1363 of file boolean_problem.pb.h.

◆ set_offset()

void operations_research::sat::LinearObjective::set_offset ( double value)
inline

Definition at line 1461 of file boolean_problem.pb.h.

◆ set_scaling_factor()

void operations_research::sat::LinearObjective::set_scaling_factor ( double value)
inline

Definition at line 1490 of file boolean_problem.pb.h.

◆ Swap()

void operations_research::sat::LinearObjective::Swap ( LinearObjective *PROTOBUF_NONNULL other)
inline

Definition at line 147 of file boolean_problem.pb.h.

◆ unknown_fields()

const ::google::protobuf::UnknownFieldSet & operations_research::sat::LinearObjective::unknown_fields ( ) const
inline

Definition at line 123 of file boolean_problem.pb.h.

◆ UnsafeArenaSwap()

void operations_research::sat::LinearObjective::UnsafeArenaSwap ( LinearObjective *PROTOBUF_NONNULL other)
inline

Definition at line 155 of file boolean_problem.pb.h.

◆ ::google::protobuf::Arena

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

Definition at line 305 of file boolean_problem.pb.h.

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

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

Definition at line 307 of file boolean_problem.pb.h.

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

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

Definition at line 298 of file boolean_problem.pb.h.

◆ ::google::protobuf::MessageLite

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

Definition at line 304 of file boolean_problem.pb.h.

◆ ::TableStruct_ortools_2fsat_2fboolean_5fproblem_2eproto

friend struct ::TableStruct_ortools_2fsat_2fboolean_5fproblem_2eproto
friend

Definition at line 328 of file boolean_problem.pb.h.

◆ swap

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

Definition at line 146 of file boolean_problem.pb.h.

Member Data Documentation

◆ _impl_

Impl_ operations_research::sat::LinearObjective::_impl_

Definition at line 327 of file boolean_problem.pb.h.

◆ kIndexInFileMessages

int operations_research::sat::LinearObjective::kIndexInFileMessages = 1
staticconstexpr

Definition at line 145 of file boolean_problem.pb.h.


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