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

Detailed Description

Definition at line 1225 of file sparse_containers.pb.h.

#include <sparse_containers.pb.h>

Inheritance diagram for operations_research::math_opt::LinearExpressionProto:

Classes

class  _Internal

Public Types

enum  : int { kIdsFieldNumber = 1 , kCoefficientsFieldNumber = 2 , kOffsetFieldNumber = 3 }
 nested types -------------------------------------------------— More...

Public Member Functions

 LinearExpressionProto ()
 ~LinearExpressionProto () PROTOBUF_FINAL
template<typename = void>
PROTOBUF_CONSTEXPR LinearExpressionProto (::google::protobuf::internal::ConstantInitialized)
 LinearExpressionProto (const LinearExpressionProto &from)
 LinearExpressionProto (LinearExpressionProto &&from) noexcept
LinearExpressionProtooperator= (const LinearExpressionProto &from)
LinearExpressionProtooperator= (LinearExpressionProto &&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 (LinearExpressionProto *PROTOBUF_NONNULL other)
void UnsafeArenaSwap (LinearExpressionProto *PROTOBUF_NONNULL other)
LinearExpressionProto *PROTOBUF_NONNULL New (::google::protobuf::Arena *PROTOBUF_NULLABLE arena=nullptr) const
 implements Message -------------------------------------------—
void CopyFrom (const LinearExpressionProto &from)
void MergeFrom (const LinearExpressionProto &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 ids_size () const
 repeated int64 ids = 1;
void clear_ids ()
::int64_t ids (int index) const
void set_ids (int index, ::int64_t value)
void add_ids (::int64_t value)
const ::google::protobuf::RepeatedField<::int64_t > & ids () const
::google::protobuf::RepeatedField<::int64_t > *PROTOBUF_NONNULL mutable_ids ()
int coefficients_size () const
 repeated double coefficients = 2;
void clear_coefficients ()
double coefficients (int index) const
void set_coefficients (int index, double value)
void add_coefficients (double value)
const ::google::protobuf::RepeatedField< double > & coefficients () const
::google::protobuf::RepeatedField< double > *PROTOBUF_NONNULL mutable_coefficients ()
void clear_offset ()
 double offset = 3;
double offset () const
void set_offset (double value)
template<typename>
PROTOBUF_CONSTEXPR LinearExpressionProto (::_pbi::ConstantInitialized)
template<typename>
PROTOBUF_CONSTEXPR LinearExpressionProto (::_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 LinearExpressionProtodefault_instance ()
static constexpr auto InternalGenerateClassData_ ()

Static Public Attributes

static constexpr int kIndexInFileMessages = 5

Protected Member Functions

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

Member Enumeration Documentation

◆ anonymous enum

anonymous enum : int

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

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

Enumerator
kIdsFieldNumber 
kCoefficientsFieldNumber 
kOffsetFieldNumber 

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

Constructor & Destructor Documentation

◆ LinearExpressionProto() [1/9]

operations_research::math_opt::LinearExpressionProto::LinearExpressionProto ( )
inline

Definition at line 1228 of file sparse_containers.pb.h.

◆ ~LinearExpressionProto()

operations_research::math_opt::LinearExpressionProto::~LinearExpressionProto ( )

@protoc_insertion_point(destructor:operations_research.math_opt.LinearExpressionProto)

Definition at line 1846 of file sparse_containers.pb.cc.

◆ LinearExpressionProto() [2/9]

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

◆ LinearExpressionProto() [3/9]

operations_research::math_opt::LinearExpressionProto::LinearExpressionProto ( const LinearExpressionProto & from)
inline

Definition at line 1241 of file sparse_containers.pb.h.

◆ LinearExpressionProto() [4/9]

operations_research::math_opt::LinearExpressionProto::LinearExpressionProto ( LinearExpressionProto && from)
inlinenoexcept

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

◆ LinearExpressionProto() [5/9]

operations_research::math_opt::LinearExpressionProto::LinearExpressionProto ( ::google::protobuf::Arena *PROTOBUF_NULLABLE arena)
explicitprotected

@protoc_insertion_point(arena_constructor:operations_research.math_opt.LinearExpressionProto)

Definition at line 1798 of file sparse_containers.pb.cc.

◆ LinearExpressionProto() [6/9]

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

@protoc_insertion_point(copy_constructor:operations_research.math_opt.LinearExpressionProto)

Definition at line 1817 of file sparse_containers.pb.cc.

◆ LinearExpressionProto() [7/9]

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

Definition at line 1349 of file sparse_containers.pb.h.

◆ LinearExpressionProto() [8/9]

template<typename>
PROTOBUF_CONSTEXPR operations_research::math_opt::LinearExpressionProto::LinearExpressionProto ( ::_pbi::ConstantInitialized )

Definition at line 178 of file sparse_containers.pb.cc.

◆ LinearExpressionProto() [9/9]

template<typename>
PROTOBUF_CONSTEXPR operations_research::math_opt::LinearExpressionProto::LinearExpressionProto ( ::_pbi::ConstantInitialized )

Definition at line 176 of file cp_model.pb.cc.

Member Function Documentation

◆ _InternalSerialize()

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

@protoc_insertion_point(serialize_to_array_start:operations_research.math_opt.LinearExpressionProto)

repeated int64 ids = 1;

repeated double coefficients = 2;

double offset = 3;

@protoc_insertion_point(serialize_to_array_end:operations_research.math_opt.LinearExpressionProto)

Definition at line 1982 of file sparse_containers.pb.cc.

◆ add_coefficients()

void operations_research::math_opt::LinearExpressionProto::add_coefficients ( double value)
inline

@protoc_insertion_point(field_add:operations_research.math_opt.LinearExpressionProto.coefficients)

Definition at line 2073 of file sparse_containers.pb.h.

◆ add_ids()

void operations_research::math_opt::LinearExpressionProto::add_ids ( ::int64_t value)
inline

@protoc_insertion_point(field_add:operations_research.math_opt.LinearExpressionProto.ids)

Definition at line 2027 of file sparse_containers.pb.h.

◆ ByteSizeLong()

size_t operations_research::math_opt::LinearExpressionProto::ByteSizeLong ( ) const
final

@protoc_insertion_point(message_byte_size_start:operations_research.math_opt.LinearExpressionProto)

Prevent compiler warnings about cached_has_bits being unused

repeated int64 ids = 1;

repeated double coefficients = 2;

double offset = 3;

Definition at line 2027 of file sparse_containers.pb.cc.

◆ Clear()

PROTOBUF_NOINLINE void operations_research::math_opt::LinearExpressionProto::Clear ( )

@protoc_insertion_point(message_clear_start:operations_research.math_opt.LinearExpressionProto)

Prevent compiler warnings about cached_has_bits being unused

Definition at line 1962 of file sparse_containers.pb.cc.

◆ clear_coefficients()

void operations_research::math_opt::LinearExpressionProto::clear_coefficients ( )
inline

Definition at line 2061 of file sparse_containers.pb.h.

◆ clear_ids()

void operations_research::math_opt::LinearExpressionProto::clear_ids ( )
inline

Definition at line 2015 of file sparse_containers.pb.h.

◆ clear_offset()

void operations_research::math_opt::LinearExpressionProto::clear_offset ( )
inline

double offset = 3;

Definition at line 2101 of file sparse_containers.pb.h.

◆ coefficients() [1/2]

const::google::protobuf::RepeatedField< double > & operations_research::math_opt::LinearExpressionProto::coefficients ( ) const
inline

@protoc_insertion_point(field_list:operations_research.math_opt.LinearExpressionProto.coefficients)

Definition at line 2078 of file sparse_containers.pb.h.

◆ coefficients() [2/2]

double operations_research::math_opt::LinearExpressionProto::coefficients ( int index) const
inline

@protoc_insertion_point(field_get:operations_research.math_opt.LinearExpressionProto.coefficients)

Definition at line 2065 of file sparse_containers.pb.h.

◆ coefficients_size()

int operations_research::math_opt::LinearExpressionProto::coefficients_size ( ) const
inline

repeated double coefficients = 2;

Definition at line 2058 of file sparse_containers.pb.h.

◆ CopyFrom()

void operations_research::math_opt::LinearExpressionProto::CopyFrom ( const LinearExpressionProto & from)

@protoc_insertion_point(class_specific_copy_from_start:operations_research.math_opt.LinearExpressionProto)

Definition at line 2090 of file sparse_containers.pb.cc.

◆ default_instance()

const LinearExpressionProto & operations_research::math_opt::LinearExpressionProto::default_instance ( )
inlinestatic

Definition at line 1276 of file sparse_containers.pb.h.

◆ descriptor()

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

Definition at line 1267 of file sparse_containers.pb.h.

◆ GetCachedSize()

int operations_research::math_opt::LinearExpressionProto::GetCachedSize ( ) const
inline

Definition at line 1335 of file sparse_containers.pb.h.

◆ GetClassData()

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

Definition at line 1910 of file sparse_containers.pb.cc.

◆ GetDescriptor()

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

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

◆ GetMetadata()

google::protobuf::Metadata operations_research::math_opt::LinearExpressionProto::GetMetadata ( ) const

Definition at line 2107 of file sparse_containers.pb.cc.

◆ GetReflection()

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

Definition at line 1273 of file sparse_containers.pb.h.

◆ ids() [1/2]

const::google::protobuf::RepeatedField<::int64_t > & operations_research::math_opt::LinearExpressionProto::ids ( ) const
inline

@protoc_insertion_point(field_list:operations_research.math_opt.LinearExpressionProto.ids)

Definition at line 2032 of file sparse_containers.pb.h.

◆ ids() [2/2]

int64_t operations_research::math_opt::LinearExpressionProto::ids ( int index) const
inline

@protoc_insertion_point(field_get:operations_research.math_opt.LinearExpressionProto.ids)

Definition at line 2019 of file sparse_containers.pb.h.

◆ ids_size()

int operations_research::math_opt::LinearExpressionProto::ids_size ( ) const
inline

repeated int64 ids = 1;

Definition at line 2012 of file sparse_containers.pb.h.

◆ InternalGenerateClassData_()

auto operations_research::math_opt::LinearExpressionProto::InternalGenerateClassData_ ( )
staticconstexpr

Definition at line 1882 of file sparse_containers.pb.cc.

◆ InternalNewImpl_()

auto operations_research::math_opt::LinearExpressionProto::InternalNewImpl_ ( )
staticconstexprprotected

Definition at line 1862 of file sparse_containers.pb.cc.

◆ IsInitialized()

bool operations_research::math_opt::LinearExpressionProto::IsInitialized ( ) const
inline

Definition at line 1311 of file sparse_containers.pb.h.

◆ MergeFrom()

void operations_research::math_opt::LinearExpressionProto::MergeFrom ( const LinearExpressionProto & from)
inline

Definition at line 1304 of file sparse_containers.pb.h.

◆ mutable_coefficients()

google::protobuf::RepeatedField< double > *PROTOBUF_NONNULL operations_research::math_opt::LinearExpressionProto::mutable_coefficients ( )
inline

@protoc_insertion_point(field_mutable_list:operations_research.math_opt.LinearExpressionProto.coefficients)

Definition at line 2083 of file sparse_containers.pb.h.

◆ mutable_ids()

google::protobuf::RepeatedField<::int64_t > *PROTOBUF_NONNULL operations_research::math_opt::LinearExpressionProto::mutable_ids ( )
inline

@protoc_insertion_point(field_mutable_list:operations_research.math_opt.LinearExpressionProto.ids)

Definition at line 2037 of file sparse_containers.pb.h.

◆ mutable_unknown_fields()

inline ::google::protobuf::UnknownFieldSet *PROTOBUF_NONNULL operations_research::math_opt::LinearExpressionProto::mutable_unknown_fields ( )
inline

Definition at line 1262 of file sparse_containers.pb.h.

◆ New()

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

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

Definition at line 1298 of file sparse_containers.pb.h.

◆ offset()

double operations_research::math_opt::LinearExpressionProto::offset ( ) const
inline

@protoc_insertion_point(field_get:operations_research.math_opt.LinearExpressionProto.offset)

Definition at line 2106 of file sparse_containers.pb.h.

◆ operator=() [1/2]

LinearExpressionProto & operations_research::math_opt::LinearExpressionProto::operator= ( const LinearExpressionProto & from)
inline

Definition at line 1244 of file sparse_containers.pb.h.

◆ operator=() [2/2]

LinearExpressionProto & operations_research::math_opt::LinearExpressionProto::operator= ( LinearExpressionProto && from)
inlinenoexcept

Definition at line 1248 of file sparse_containers.pb.h.

◆ PlacementNew_()

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

Definition at line 1857 of file sparse_containers.pb.cc.

◆ set_coefficients()

void operations_research::math_opt::LinearExpressionProto::set_coefficients ( int index,
double value )
inline

@protoc_insertion_point(field_set:operations_research.math_opt.LinearExpressionProto.coefficients)

Definition at line 2069 of file sparse_containers.pb.h.

◆ set_ids()

void operations_research::math_opt::LinearExpressionProto::set_ids ( int index,
::int64_t value )
inline

@protoc_insertion_point(field_set:operations_research.math_opt.LinearExpressionProto.ids)

Definition at line 2023 of file sparse_containers.pb.h.

◆ set_offset()

void operations_research::math_opt::LinearExpressionProto::set_offset ( double value)
inline

@protoc_insertion_point(field_set:operations_research.math_opt.LinearExpressionProto.offset)

Definition at line 2110 of file sparse_containers.pb.h.

◆ Swap()

void operations_research::math_opt::LinearExpressionProto::Swap ( LinearExpressionProto *PROTOBUF_NONNULL other)
inline

Definition at line 1282 of file sparse_containers.pb.h.

◆ unknown_fields()

const ::google::protobuf::UnknownFieldSet & operations_research::math_opt::LinearExpressionProto::unknown_fields ( ) const
inline

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

◆ UnsafeArenaSwap()

void operations_research::math_opt::LinearExpressionProto::UnsafeArenaSwap ( LinearExpressionProto *PROTOBUF_NONNULL other)
inline

Definition at line 1290 of file sparse_containers.pb.h.

◆ ::google::protobuf::Arena

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

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

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

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

Definition at line 1430 of file sparse_containers.pb.h.

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

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

Definition at line 1421 of file sparse_containers.pb.h.

◆ ::google::protobuf::MessageLite

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

Definition at line 1427 of file sparse_containers.pb.h.

◆ ::TableStruct_ortools_2fmath_5fopt_2fsparse_5fcontainers_2eproto

◆ swap

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

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

Member Data Documentation

◆ _impl_

Impl_ operations_research::math_opt::LinearExpressionProto::_impl_

Definition at line 1450 of file sparse_containers.pb.h.

◆ kIndexInFileMessages

int operations_research::math_opt::LinearExpressionProto::kIndexInFileMessages = 5
staticconstexpr

Definition at line 1280 of file sparse_containers.pb.h.


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