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

Detailed Description

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

#include <boolean_problem.pb.h>

Inheritance diagram for operations_research::sat::LinearBooleanConstraint:

Classes

class  _Internal

Public Types

enum  : int {
  kLiteralsFieldNumber = 1 , kCoefficientsFieldNumber = 2 , kNameFieldNumber = 5 , kLowerBoundFieldNumber = 3 ,
  kUpperBoundFieldNumber = 4
}
 nested types -------------------------------------------------— More...

Public Member Functions

 LinearBooleanConstraint ()
 ~LinearBooleanConstraint () PROTOBUF_FINAL
template<typename = void>
PROTOBUF_CONSTEXPR LinearBooleanConstraint (::google::protobuf::internal::ConstantInitialized)
 LinearBooleanConstraint (const LinearBooleanConstraint &from)
 LinearBooleanConstraint (LinearBooleanConstraint &&from) noexcept
LinearBooleanConstraintoperator= (const LinearBooleanConstraint &from)
LinearBooleanConstraintoperator= (LinearBooleanConstraint &&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 (LinearBooleanConstraint *PROTOBUF_NONNULL other)
void UnsafeArenaSwap (LinearBooleanConstraint *PROTOBUF_NONNULL other)
LinearBooleanConstraint *PROTOBUF_NONNULL New (::google::protobuf::Arena *PROTOBUF_NULLABLE arena=nullptr) const
 implements Message -------------------------------------------—
void CopyFrom (const LinearBooleanConstraint &from)
void MergeFrom (const LinearBooleanConstraint &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
 repeated int32 literals = 1;
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
 repeated int64 coefficients = 2;
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_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)
::std::string *PROTOBUF_NONNULL mutable_name ()
::std::string *PROTOBUF_NULLABLE release_name ()
void set_allocated_name (::std::string *PROTOBUF_NULLABLE value)
bool has_lower_bound () const
 optional int64 lower_bound = 3;
void clear_lower_bound ()
::int64_t lower_bound () const
void set_lower_bound (::int64_t value)
bool has_upper_bound () const
 optional int64 upper_bound = 4;
void clear_upper_bound ()
::int64_t upper_bound () const
void set_upper_bound (::int64_t value)
template<typename>
PROTOBUF_CONSTEXPR LinearBooleanConstraint (::_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 LinearBooleanConstraintdefault_instance ()
static constexpr auto InternalGenerateClassData_ ()

Static Public Attributes

static constexpr int kIndexInFileMessages = 0

Protected Member Functions

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

Member Enumeration Documentation

◆ anonymous enum

anonymous enum : int

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

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

Enumerator
kLiteralsFieldNumber 
kCoefficientsFieldNumber 
kNameFieldNumber 
kLowerBoundFieldNumber 
kUpperBoundFieldNumber 

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

Constructor & Destructor Documentation

◆ LinearBooleanConstraint() [1/8]

operations_research::sat::LinearBooleanConstraint::LinearBooleanConstraint ( )
inline

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

◆ ~LinearBooleanConstraint()

operations_research::sat::LinearBooleanConstraint::~LinearBooleanConstraint ( )

@protoc_insertion_point(destructor:operations_research.sat.LinearBooleanConstraint)

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

◆ LinearBooleanConstraint() [2/8]

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

◆ LinearBooleanConstraint() [3/8]

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

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

◆ LinearBooleanConstraint() [4/8]

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

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

◆ LinearBooleanConstraint() [5/8]

operations_research::sat::LinearBooleanConstraint::LinearBooleanConstraint ( ::google::protobuf::Arena *PROTOBUF_NULLABLE arena)
explicitprotected

@protoc_insertion_point(arena_constructor:operations_research.sat.LinearBooleanConstraint)

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

◆ LinearBooleanConstraint() [6/8]

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

@protoc_insertion_point(copy_constructor:operations_research.sat.LinearBooleanConstraint)

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

◆ LinearBooleanConstraint() [7/8]

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

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

◆ LinearBooleanConstraint() [8/8]

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

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

Member Function Documentation

◆ _InternalSerialize()

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

@protoc_insertion_point(serialize_to_array_start:operations_research.sat.LinearBooleanConstraint)

repeated int32 literals = 1;

repeated int64 coefficients = 2;

optional int64 lower_bound = 3;

optional int64 upper_bound = 4;

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

@protoc_insertion_point(serialize_to_array_end:operations_research.sat.LinearBooleanConstraint)

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

◆ add_coefficients()

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

@protoc_insertion_point(field_add:operations_research.sat.LinearBooleanConstraint.coefficients)

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

◆ add_literals()

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

@protoc_insertion_point(field_add:operations_research.sat.LinearBooleanConstraint.literals)

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

◆ ByteSizeLong()

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

@protoc_insertion_point(message_byte_size_start:operations_research.sat.LinearBooleanConstraint)

Prevent compiler warnings about cached_has_bits being unused

repeated int32 literals = 1;

repeated int64 coefficients = 2;

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

optional int64 lower_bound = 3;

optional int64 upper_bound = 4;

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

◆ Clear()

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

@protoc_insertion_point(message_clear_start:operations_research.sat.LinearBooleanConstraint)

Prevent compiler warnings about cached_has_bits being unused

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

◆ clear_coefficients()

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

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

◆ clear_literals()

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

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

◆ clear_lower_bound()

void operations_research::sat::LinearBooleanConstraint::clear_lower_bound ( )
inline

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

◆ clear_name()

void operations_research::sat::LinearBooleanConstraint::clear_name ( )
inline

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

◆ clear_upper_bound()

void operations_research::sat::LinearBooleanConstraint::clear_upper_bound ( )
inline

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

◆ coefficients() [1/2]

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

@protoc_insertion_point(field_list:operations_research.sat.LinearBooleanConstraint.coefficients)

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

◆ coefficients() [2/2]

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

@protoc_insertion_point(field_get:operations_research.sat.LinearBooleanConstraint.coefficients)

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

◆ coefficients_size()

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

repeated int64 coefficients = 2;

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

◆ CopyFrom()

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

@protoc_insertion_point(class_specific_copy_from_start:operations_research.sat.LinearBooleanConstraint)

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

◆ default_instance()

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

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

◆ descriptor()

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

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

◆ GetCachedSize()

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

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

◆ GetClassData()

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

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

◆ GetDescriptor()

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

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

◆ GetMetadata()

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

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

◆ GetReflection()

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

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

◆ has_lower_bound()

bool operations_research::sat::LinearBooleanConstraint::has_lower_bound ( ) const
inline

optional int64 lower_bound = 3;

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

◆ has_name()

bool operations_research::sat::LinearBooleanConstraint::has_name ( ) const
inline

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

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

◆ has_upper_bound()

bool operations_research::sat::LinearBooleanConstraint::has_upper_bound ( ) const
inline

optional int64 upper_bound = 4;

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

◆ InternalGenerateClassData_()

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

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

◆ InternalNewImpl_()

auto operations_research::sat::LinearBooleanConstraint::InternalNewImpl_ ( )
staticconstexprprotected

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

◆ IsInitialized()

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

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

◆ literals() [1/2]

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

@protoc_insertion_point(field_list:operations_research.sat.LinearBooleanConstraint.literals)

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

◆ literals() [2/2]

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

@protoc_insertion_point(field_get:operations_research.sat.LinearBooleanConstraint.literals)

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

◆ literals_size()

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

repeated int32 literals = 1;

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

◆ lower_bound()

int64_t operations_research::sat::LinearBooleanConstraint::lower_bound ( ) const
inline

@protoc_insertion_point(field_get:operations_research.sat.LinearBooleanConstraint.lower_bound)

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

◆ MergeFrom()

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

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

◆ mutable_coefficients()

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

@protoc_insertion_point(field_mutable_list:operations_research.sat.LinearBooleanConstraint.coefficients)

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

◆ mutable_literals()

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

@protoc_insertion_point(field_mutable_list:operations_research.sat.LinearBooleanConstraint.literals)

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

◆ mutable_name()

std::string *PROTOBUF_NONNULL operations_research::sat::LinearBooleanConstraint::mutable_name ( )
inline

@protoc_insertion_point(field_mutable:operations_research.sat.LinearBooleanConstraint.name)

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

◆ mutable_unknown_fields()

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

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

◆ name()

const::std::string & operations_research::sat::LinearBooleanConstraint::name ( ) const
inline

@protoc_insertion_point(field_get:operations_research.sat.LinearBooleanConstraint.name)

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

◆ New()

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

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

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

◆ operator=() [1/2]

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

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

◆ operator=() [2/2]

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

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

◆ PlacementNew_()

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

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

◆ release_name()

std::string *PROTOBUF_NULLABLE operations_research::sat::LinearBooleanConstraint::release_name ( )
inlinenodiscard

@protoc_insertion_point(field_release:operations_research.sat.LinearBooleanConstraint.name)

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

◆ set_allocated_name()

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

@protoc_insertion_point(field_set_allocated:operations_research.sat.LinearBooleanConstraint.name)

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

◆ set_coefficients()

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

@protoc_insertion_point(field_set:operations_research.sat.LinearBooleanConstraint.coefficients)

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

◆ set_literals()

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

@protoc_insertion_point(field_set:operations_research.sat.LinearBooleanConstraint.literals)

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

◆ set_lower_bound()

void operations_research::sat::LinearBooleanConstraint::set_lower_bound ( ::int64_t value)
inline

@protoc_insertion_point(field_set:operations_research.sat.LinearBooleanConstraint.lower_bound)

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

◆ set_name() [1/2]

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

◆ set_name() [2/2]

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

@protoc_insertion_point(field_set:operations_research.sat.LinearBooleanConstraint.name)

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

◆ set_upper_bound()

void operations_research::sat::LinearBooleanConstraint::set_upper_bound ( ::int64_t value)
inline

@protoc_insertion_point(field_set:operations_research.sat.LinearBooleanConstraint.upper_bound)

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

◆ Swap()

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

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

◆ unknown_fields()

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

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

◆ UnsafeArenaSwap()

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

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

◆ upper_bound()

int64_t operations_research::sat::LinearBooleanConstraint::upper_bound ( ) const
inline

@protoc_insertion_point(field_get:operations_research.sat.LinearBooleanConstraint.upper_bound)

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

◆ ::google::protobuf::Arena

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

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

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

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

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

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

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

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

◆ ::google::protobuf::MessageLite

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

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

◆ ::TableStruct_ortools_2fsat_2fboolean_5fproblem_2eproto

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

◆ swap

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

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

Member Data Documentation

◆ _impl_

Impl_ operations_research::sat::LinearBooleanConstraint::_impl_

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

◆ kIndexInFileMessages

int operations_research::sat::LinearBooleanConstraint::kIndexInFileMessages = 0
staticconstexpr

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


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