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

Detailed Description

Definition at line 49 of file diff.h.

#include <diff.h>

Public Member Functions

 Diff ()=default
void Advance (const std::array< int64_t, kNumElements > &checkpoints)
int64_t checkpoint (const ElementType e) const
const absl::flat_hash_set< int64_t > & deleted_elements (const ElementType e) const
void DeleteElement (const ElementType e, int64_t id)
template<typename AttrType>
const AttrKeyHashSet< AttrKeyFor< AttrType > > & modified_keys (const AttrType a) const
template<typename AttrType>
void SetModified (const AttrType a, const AttrKeyFor< AttrType > attr_key)
template<typename AttrType>
void EraseKeysForAttr (const AttrType a, absl::Span< const AttrKeyFor< AttrType > > keys)

Constructor & Destructor Documentation

◆ Diff()

operations_research::math_opt::Diff::Diff ( )
default

Member Function Documentation

◆ Advance()

void operations_research::math_opt::Diff::Advance ( const std::array< int64_t, kNumElements > & checkpoints)

Definition at line 23 of file diff.cc.

◆ checkpoint()

int64_t operations_research::math_opt::Diff::checkpoint ( const ElementType e) const
inline

Definition at line 70 of file diff.h.

◆ deleted_elements()

const absl::flat_hash_set< int64_t > & operations_research::math_opt::Diff::deleted_elements ( const ElementType e) const
inline

Definition at line 76 of file diff.h.

◆ DeleteElement()

void operations_research::math_opt::Diff::DeleteElement ( const ElementType e,
int64_t id )
inline

Definition at line 85 of file diff.h.

◆ EraseKeysForAttr()

template<typename AttrType>
void operations_research::math_opt::Diff::EraseKeysForAttr ( const AttrType a,
absl::Span< const AttrKeyFor< AttrType > > keys )
inline

Definition at line 117 of file diff.h.

◆ modified_keys()

template<typename AttrType>
const AttrKeyHashSet< AttrKeyFor< AttrType > > & operations_research::math_opt::Diff::modified_keys ( const AttrType a) const
inline

Definition at line 98 of file diff.h.

◆ SetModified()

template<typename AttrType>
void operations_research::math_opt::Diff::SetModified ( const AttrType a,
const AttrKeyFor< AttrType > attr_key )
inline

Definition at line 105 of file diff.h.


The documentation for this class was generated from the following files:
  • ortools/math_opt/elemental/diff.h
  • ortools/math_opt/elemental/diff.cc