C++ Reference

C++ Reference: CP-SAT

LinearBooleanConstraint

Detailed Description

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

Public Types

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

Public Member Functions

 LinearBooleanConstraint ()
 
virtual ~LinearBooleanConstraint ()
 
 LinearBooleanConstraint (const LinearBooleanConstraint &from)
 
 LinearBooleanConstraint (LinearBooleanConstraint &&from) noexcept
 
LinearBooleanConstraintoperator= (const LinearBooleanConstraint &from)
 
LinearBooleanConstraintoperator= (LinearBooleanConstraint &&from) noexcept
 
const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet & unknown_fields () const
 
inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet * mutable_unknown_fields ()
 
void Swap (LinearBooleanConstraint *other)
 
LinearBooleanConstraintNew () const final
 
LinearBooleanConstraintNew (::PROTOBUF_NAMESPACE_ID::Arena *arena) const final
 
void CopyFrom (const ::PROTOBUF_NAMESPACE_ID::Message &from) final
 
void MergeFrom (const ::PROTOBUF_NAMESPACE_ID::Message &from) final
 
void CopyFrom (const LinearBooleanConstraint &from)
 
void MergeFrom (const LinearBooleanConstraint &from)
 
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear () final
 
bool IsInitialized () const final
 
size_t ByteSizeLong () const final
 
const char * _InternalParse (const char *ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext *ctx) final
 
::PROTOBUF_NAMESPACE_ID::uint8 * _InternalSerialize (::PROTOBUF_NAMESPACE_ID::uint8 *target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream *stream) const final
 
int GetCachedSize () const final
 
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata () const final
 
int literals_size () const
 
void clear_literals ()
 
::PROTOBUF_NAMESPACE_ID::int32 literals (int index) const
 
void set_literals (int index, ::PROTOBUF_NAMESPACE_ID::int32 value)
 
void add_literals (::PROTOBUF_NAMESPACE_ID::int32 value)
 
const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int32 > & literals () const
 
::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int32 > * mutable_literals ()
 
int coefficients_size () const
 
void clear_coefficients ()
 
::PROTOBUF_NAMESPACE_ID::int64 coefficients (int index) const
 
void set_coefficients (int index, ::PROTOBUF_NAMESPACE_ID::int64 value)
 
void add_coefficients (::PROTOBUF_NAMESPACE_ID::int64 value)
 
const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int64 > & coefficients () const
 
::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int64 > * mutable_coefficients ()
 
bool has_name () const
 
void clear_name ()
 
const std::string & name () const
 
void set_name (const std::string &value)
 
void set_name (std::string &&value)
 
void set_name (const char *value)
 
void set_name (const char *value, size_t size)
 
std::string * mutable_name ()
 
std::string * release_name ()
 
void set_allocated_name (std::string *name)
 
bool has_lower_bound () const
 
void clear_lower_bound ()
 
::PROTOBUF_NAMESPACE_ID::int64 lower_bound () const
 
void set_lower_bound (::PROTOBUF_NAMESPACE_ID::int64 value)
 
bool has_upper_bound () const
 
void clear_upper_bound ()
 
::PROTOBUF_NAMESPACE_ID::int64 upper_bound () const
 
void set_upper_bound (::PROTOBUF_NAMESPACE_ID::int64 value)
 

Static Public Member Functions

static const ::PROTOBUF_NAMESPACE_ID::Descriptor * descriptor ()
 
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * GetDescriptor ()
 
static const ::PROTOBUF_NAMESPACE_ID::Reflection * GetReflection ()
 
static const LinearBooleanConstraintdefault_instance ()
 
static void InitAsDefaultInstance ()
 
static const LinearBooleanConstraintinternal_default_instance ()
 

Static Public Attributes

static constexpr int kIndexInFileMessages
 

Member Enumeration Documentation

◆ anonymous enum

anonymous enum : int
Enumerator
kLiteralsFieldNumber 
kCoefficientsFieldNumber 
kNameFieldNumber 
kLowerBoundFieldNumber 
kUpperBoundFieldNumber 

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

Constructor & Destructor Documentation

◆ LinearBooleanConstraint() [1/3]

◆ ~LinearBooleanConstraint()

virtual ~LinearBooleanConstraint ( )
virtual

◆ LinearBooleanConstraint() [2/3]

◆ LinearBooleanConstraint() [3/3]

LinearBooleanConstraint ( LinearBooleanConstraint &&  from)
inlinenoexcept

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

Member Function Documentation

◆ _InternalParse()

const char* _InternalParse ( const char *  ptr,
::PROTOBUF_NAMESPACE_ID::internal::ParseContext *  ctx 
)
final

◆ _InternalSerialize()

::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize ( ::PROTOBUF_NAMESPACE_ID::uint8 *  target,
::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream *  stream 
) const
final

◆ add_coefficients()

void add_coefficients ( ::PROTOBUF_NAMESPACE_ID::int64  value)
inline

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

◆ add_literals()

void add_literals ( ::PROTOBUF_NAMESPACE_ID::int32  value)
inline

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

◆ ByteSizeLong()

size_t ByteSizeLong ( ) const
final

◆ Clear()

PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear ( )
final

◆ clear_coefficients()

void clear_coefficients ( )
inline

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

◆ clear_literals()

void clear_literals ( )
inline

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

◆ clear_lower_bound()

void clear_lower_bound ( )
inline

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

◆ clear_name()

void clear_name ( )
inline

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

◆ clear_upper_bound()

void clear_upper_bound ( )
inline

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

◆ coefficients() [1/2]

const ::PROTOBUF_NAMESPACE_ID::RepeatedField<::PROTOBUF_NAMESPACE_ID::int64 > & coefficients ( ) const
inline

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

◆ coefficients() [2/2]

PROTOBUF_NAMESPACE_ID::int64 coefficients ( int  index) const
inline

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

◆ coefficients_size()

int coefficients_size ( ) const
inline

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

◆ CopyFrom() [1/2]

void CopyFrom ( const ::PROTOBUF_NAMESPACE_ID::Message &  from)
final

◆ CopyFrom() [2/2]

void CopyFrom ( const LinearBooleanConstraint from)

◆ default_instance()

static const LinearBooleanConstraint& default_instance ( )
static

◆ descriptor()

static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor ( )
inlinestatic

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

◆ GetCachedSize()

int GetCachedSize ( ) const
inlinefinal

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

◆ GetDescriptor()

static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor ( )
inlinestatic

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

◆ GetMetadata()

::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata ( ) const
final

◆ GetReflection()

static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection ( )
inlinestatic

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

◆ has_lower_bound()

bool has_lower_bound ( ) const
inline

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

◆ has_name()

bool has_name ( ) const
inline

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

◆ has_upper_bound()

bool has_upper_bound ( ) const
inline

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

◆ InitAsDefaultInstance()

static void InitAsDefaultInstance ( )
static

◆ internal_default_instance()

static const LinearBooleanConstraint* internal_default_instance ( )
inlinestatic

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

◆ IsInitialized()

bool IsInitialized ( ) const
final

◆ literals() [1/2]

const ::PROTOBUF_NAMESPACE_ID::RepeatedField<::PROTOBUF_NAMESPACE_ID::int32 > & literals ( ) const
inline

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

◆ literals() [2/2]

PROTOBUF_NAMESPACE_ID::int32 literals ( int  index) const
inline

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

◆ literals_size()

int literals_size ( ) const
inline

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

◆ lower_bound()

PROTOBUF_NAMESPACE_ID::int64 lower_bound ( ) const
inline

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

◆ MergeFrom() [1/2]

void MergeFrom ( const ::PROTOBUF_NAMESPACE_ID::Message &  from)
final

◆ MergeFrom() [2/2]

void MergeFrom ( const LinearBooleanConstraint from)

◆ mutable_coefficients()

PROTOBUF_NAMESPACE_ID::RepeatedField<::PROTOBUF_NAMESPACE_ID::int64 > * mutable_coefficients ( )
inline

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

◆ mutable_literals()

PROTOBUF_NAMESPACE_ID::RepeatedField<::PROTOBUF_NAMESPACE_ID::int32 > * mutable_literals ( )
inline

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

◆ mutable_name()

std::string * mutable_name ( )
inline

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

◆ mutable_unknown_fields()

inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields ( )
inline

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

◆ name()

const std::string & name ( ) const
inline

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

◆ New() [1/2]

LinearBooleanConstraint* New ( ) const
inlinefinal

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

◆ New() [2/2]

LinearBooleanConstraint* New ( ::PROTOBUF_NAMESPACE_ID::Arena *  arena) const
inlinefinal

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

◆ operator=() [1/2]

LinearBooleanConstraint& operator= ( const LinearBooleanConstraint from)
inline

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

◆ operator=() [2/2]

LinearBooleanConstraint& operator= ( LinearBooleanConstraint &&  from)
inlinenoexcept

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

◆ release_name()

std::string * release_name ( )
inline

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

◆ set_allocated_name()

void set_allocated_name ( std::string *  name)
inline

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

◆ set_coefficients()

void set_coefficients ( int  index,
::PROTOBUF_NAMESPACE_ID::int64  value 
)
inline

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

◆ set_literals()

void set_literals ( int  index,
::PROTOBUF_NAMESPACE_ID::int32  value 
)
inline

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

◆ set_lower_bound()

void set_lower_bound ( ::PROTOBUF_NAMESPACE_ID::int64  value)
inline

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

◆ set_name() [1/4]

void set_name ( const char *  value)
inline

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

◆ set_name() [2/4]

void set_name ( const char *  value,
size_t  size 
)
inline

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

◆ set_name() [3/4]

void set_name ( const std::string &  value)
inline

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

◆ set_name() [4/4]

void set_name ( std::string &&  value)
inline

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

◆ set_upper_bound()

void set_upper_bound ( ::PROTOBUF_NAMESPACE_ID::int64  value)
inline

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

◆ Swap()

void Swap ( LinearBooleanConstraint other)
inline

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

◆ unknown_fields()

const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields ( ) const
inline

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

◆ upper_bound()

PROTOBUF_NAMESPACE_ID::int64 upper_bound ( ) const
inline

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

Member Data Documentation

◆ kIndexInFileMessages

constexpr int kIndexInFileMessages
staticconstexpr
Initial value:
=
0

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


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