Google OR-Tools v9.15
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
operations_research::math_opt::AtomicConstraintStorage< ConstraintData > Class Template Reference

Detailed Description

template<typename ConstraintData>
class operations_research::math_opt::AtomicConstraintStorage< ConstraintData >

Definition at line 70 of file atomic_constraint_storage.h.

#include <atomic_constraint_storage.h>

Classes

struct  Diff

Public Types

using IdType = typename ConstraintData::IdType
using ProtoType = typename ConstraintData::ProtoType
using UpdatesProtoType = typename ConstraintData::UpdatesProtoType

Public Member Functions

IdType AddConstraint (ConstraintData constraint)
void AddConstraints (const google::protobuf::Map< int64_t, ProtoType > &constraints)
template<typename DiffIter>
void Delete (IdType id, const iterator_range< DiffIter > &diffs)
void DeleteVariable (VariableId variable_id)
int64_t size () const
IdType next_id () const
void ensure_next_id_at_least (const IdType minimum)
bool contains (const IdType id) const
const absl::flat_hash_set< IdType > & RelatedConstraints (const VariableId variable_id) const
std::vector< IdTypeConstraints () const
std::vector< IdTypeSortedConstraints () const
google::protobuf::Map< int64_t, ProtoTypeProto () const
const ConstraintData & data (const IdType id) const
bool diff_is_empty (const Diff &diff) const
ConstraintData::UpdatesProtoType Update (const Diff &diff) const
void AdvanceCheckpointInDiff (Diff &diff) const

Member Typedef Documentation

◆ IdType

template<typename ConstraintData>
using operations_research::math_opt::AtomicConstraintStorage< ConstraintData >::IdType = typename ConstraintData::IdType

Definition at line 72 of file atomic_constraint_storage.h.

◆ ProtoType

template<typename ConstraintData>
using operations_research::math_opt::AtomicConstraintStorage< ConstraintData >::ProtoType = typename ConstraintData::ProtoType

Definition at line 73 of file atomic_constraint_storage.h.

◆ UpdatesProtoType

template<typename ConstraintData>
using operations_research::math_opt::AtomicConstraintStorage< ConstraintData >::UpdatesProtoType = typename ConstraintData::UpdatesProtoType

Definition at line 74 of file atomic_constraint_storage.h.

Member Function Documentation

◆ AddConstraint()

template<typename ConstraintData>
AtomicConstraintStorage< ConstraintData >::IdType operations_research::math_opt::AtomicConstraintStorage< ConstraintData >::AddConstraint ( ConstraintData constraint)

Definition at line 192 of file atomic_constraint_storage.h.

◆ AddConstraints()

template<typename ConstraintData>
void operations_research::math_opt::AtomicConstraintStorage< ConstraintData >::AddConstraints ( const google::protobuf::Map< int64_t, ProtoType > & constraints)

Definition at line 205 of file atomic_constraint_storage.h.

◆ AdvanceCheckpointInDiff()

template<typename ConstraintData>
void operations_research::math_opt::AtomicConstraintStorage< ConstraintData >::AdvanceCheckpointInDiff ( Diff & diff) const

Definition at line 274 of file atomic_constraint_storage.h.

◆ Constraints()

template<typename ConstraintData>
std::vector< typename AtomicConstraintStorage< ConstraintData >::IdType > operations_research::math_opt::AtomicConstraintStorage< ConstraintData >::Constraints ( ) const

Definition at line 251 of file atomic_constraint_storage.h.

◆ contains()

template<typename ConstraintData>
bool operations_research::math_opt::AtomicConstraintStorage< ConstraintData >::contains ( const IdType id) const
inline

Definition at line 119 of file atomic_constraint_storage.h.

◆ data()

template<typename ConstraintData>
const ConstraintData & operations_research::math_opt::AtomicConstraintStorage< ConstraintData >::data ( const IdType id) const
inline

Definition at line 146 of file atomic_constraint_storage.h.

◆ Delete()

template<typename ConstraintData>
template<typename DiffIter>
void operations_research::math_opt::AtomicConstraintStorage< ConstraintData >::Delete ( IdType id,
const iterator_range< DiffIter > & diffs )

Definition at line 219 of file atomic_constraint_storage.h.

◆ DeleteVariable()

template<typename ConstraintData>
void operations_research::math_opt::AtomicConstraintStorage< ConstraintData >::DeleteVariable ( VariableId variable_id)

Definition at line 237 of file atomic_constraint_storage.h.

◆ diff_is_empty()

template<typename ConstraintData>
bool operations_research::math_opt::AtomicConstraintStorage< ConstraintData >::diff_is_empty ( const Diff & diff) const
inline

Definition at line 268 of file atomic_constraint_storage.h.

◆ ensure_next_id_at_least()

template<typename ConstraintData>
void operations_research::math_opt::AtomicConstraintStorage< ConstraintData >::ensure_next_id_at_least ( const IdType minimum)
inline

Definition at line 114 of file atomic_constraint_storage.h.

◆ next_id()

template<typename ConstraintData>
IdType operations_research::math_opt::AtomicConstraintStorage< ConstraintData >::next_id ( ) const
inline

Definition at line 111 of file atomic_constraint_storage.h.

◆ Proto()

template<typename ConstraintData>
google::protobuf::Map< int64_t, ProtoType > operations_research::math_opt::AtomicConstraintStorage< ConstraintData >::Proto ( ) const
inline

Definition at line 136 of file atomic_constraint_storage.h.

◆ RelatedConstraints()

template<typename ConstraintData>
const absl::flat_hash_set< IdType > & operations_research::math_opt::AtomicConstraintStorage< ConstraintData >::RelatedConstraints ( const VariableId variable_id) const
inline

Definition at line 121 of file atomic_constraint_storage.h.

◆ size()

template<typename ConstraintData>
int64_t operations_research::math_opt::AtomicConstraintStorage< ConstraintData >::size ( ) const
inline

Definition at line 108 of file atomic_constraint_storage.h.

◆ SortedConstraints()

template<typename ConstraintData>
std::vector< typename AtomicConstraintStorage< ConstraintData >::IdType > operations_research::math_opt::AtomicConstraintStorage< ConstraintData >::SortedConstraints ( ) const

Definition at line 261 of file atomic_constraint_storage.h.

◆ Update()

template<typename ConstraintData>
ConstraintData::UpdatesProtoType operations_research::math_opt::AtomicConstraintStorage< ConstraintData >::Update ( const Diff & diff) const

Definition at line 282 of file atomic_constraint_storage.h.


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