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

Detailed Description

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

#include <boolean_problem.pb.h>

Inheritance diagram for operations_research::bop::LinearBooleanConstraint:

Classes

class  _Internal

Public Types

enum  : int {
  kLiteralsFieldNumber = 1 , kCoefficientsFieldNumber = 2 , kNameFieldNumber = 5 , kLowerBoundFieldNumber = 3 ,
  kUpperBoundFieldNumber = 4
}

Public Member Functions

 LinearBooleanConstraint ()
template<typename = void>
PROTOBUF_CONSTEXPR LinearBooleanConstraint (::google::protobuf::internal::ConstantInitialized)
 LinearBooleanConstraint (const LinearBooleanConstraint &from)
 LinearBooleanConstraint (LinearBooleanConstraint &&from) noexcept
template<typename>
PROTOBUF_CONSTEXPR LinearBooleanConstraint (::_pbi::ConstantInitialized)
 ~LinearBooleanConstraint () PROTOBUF_FINAL
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
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
void clear_literals ()
::int32_t literals (int index) const
const ::google::protobuf::RepeatedField<::int32_t > & literals () const
void set_literals (int index, ::int32_t value)
void add_literals (::int32_t value)
::google::protobuf::RepeatedField<::int32_t > *PROTOBUF_NONNULL mutable_literals ()
int coefficients_size () const
void clear_coefficients ()
::int64_t coefficients (int index) const
const ::google::protobuf::RepeatedField<::int64_t > & coefficients () const
void set_coefficients (int index, ::int64_t value)
void add_coefficients (::int64_t value)
::google::protobuf::RepeatedField<::int64_t > *PROTOBUF_NONNULL mutable_coefficients ()
bool has_name () const
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_lower_bound () const
void clear_lower_bound ()
::int64_t lower_bound () const
void set_lower_bound (::int64_t value)
bool has_upper_bound () const
void clear_upper_bound ()
::int64_t upper_bound () const
void set_upper_bound (::int64_t 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 LinearBooleanConstraintdefault_instance ()
static constexpr auto InternalGenerateClassData_ ()

Static Public Attributes

static constexpr int kIndexInFileMessages = 0

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
Enumerator
kLiteralsFieldNumber 
kCoefficientsFieldNumber 
kNameFieldNumber 
kLowerBoundFieldNumber 
kUpperBoundFieldNumber 

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

Constructor & Destructor Documentation

◆ LinearBooleanConstraint() [1/5]

◆ LinearBooleanConstraint() [2/5]

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

◆ LinearBooleanConstraint() [3/5]

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

◆ LinearBooleanConstraint() [4/5]

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

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

◆ LinearBooleanConstraint() [5/5]

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

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

◆ ~LinearBooleanConstraint()

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

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

◆ add_coefficients()

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

◆ add_literals()

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

◆ ByteSizeLong()

◆ Clear()

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

◆ clear_coefficients()

◆ clear_literals()

◆ clear_lower_bound()

◆ clear_name()

◆ clear_upper_bound()

◆ coefficients() [1/2]

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

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

◆ coefficients() [2/2]

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

◆ coefficients_size()

◆ CopyFrom()

◆ default_instance()

◆ descriptor()

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

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

◆ GetCachedSize()

◆ GetDescriptor()

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

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

◆ GetMetadata()

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

◆ GetReflection()

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

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

◆ has_lower_bound()

◆ has_name()

◆ has_upper_bound()

◆ InternalGenerateClassData_()

◆ IsInitialized()

◆ literals() [1/2]

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

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

◆ literals() [2/2]

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

◆ literals_size()

◆ lower_bound()

◆ MergeFrom()

◆ mutable_coefficients()

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

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

◆ mutable_literals()

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

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

◆ mutable_name()

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

Definition at line 1295 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 372 of file boolean_problem.pb.h.

◆ name()

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

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

◆ New()

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

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

◆ operator=() [1/2]

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

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

◆ operator=() [2/2]

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

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

◆ release_name()

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

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

◆ set_allocated_name()

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

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

◆ set_coefficients()

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

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

◆ set_literals()

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

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

◆ set_lower_bound()

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

◆ set_name() [1/2]

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

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

◆ set_name() [2/2]

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

◆ set_upper_bound()

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

◆ Swap()

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

◆ unknown_fields()

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

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

◆ UnsafeArenaSwap()

◆ upper_bound()

◆ ::google::protobuf::Arena

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

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

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

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

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

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

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

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

◆ ::google::protobuf::MessageLite

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

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

◆ ::TableStruct_ortools_2fsat_2fboolean_5fproblem_2eproto

friend struct ::TableStruct_ortools_2fsat_2fboolean_5fproblem_2eproto
friend

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

◆ swap

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

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

Member Data Documentation

◆ _impl_

◆ kIndexInFileMessages


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