Google OR-Tools v9.12
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
operations_research::CommittableValue< T > Class Template Reference

#include <routing_filter_committables.h>

Public Member Functions

 CommittableValue (const T &value)
 
const T & Get () const
 
const T & GetCommitted () const
 
void Set (const T &value)
 
void SetAndCommit (const T &value)
 
void Revert ()
 
void Commit ()
 

Detailed Description

template<typename T>
class operations_research::CommittableValue< T >

A vector that allows to revert back to a previously committed state, get the set of changed indices, and get current and committed values.

Definition at line 33 of file routing_filter_committables.h.

Constructor & Destructor Documentation

◆ CommittableValue()

template<typename T>
operations_research::CommittableValue< T >::CommittableValue ( const T & value)
inlineexplicit

Definition at line 35 of file routing_filter_committables.h.

Member Function Documentation

◆ Commit()

template<typename T>
void operations_research::CommittableValue< T >::Commit ( )
inline

Definition at line 50 of file routing_filter_committables.h.

◆ Get()

template<typename T>
const T & operations_research::CommittableValue< T >::Get ( ) const
inline

Definition at line 38 of file routing_filter_committables.h.

◆ GetCommitted()

template<typename T>
const T & operations_research::CommittableValue< T >::GetCommitted ( ) const
inline

Definition at line 39 of file routing_filter_committables.h.

◆ Revert()

template<typename T>
void operations_research::CommittableValue< T >::Revert ( )
inline

Definition at line 48 of file routing_filter_committables.h.

◆ Set()

template<typename T>
void operations_research::CommittableValue< T >::Set ( const T & value)
inline

Definition at line 41 of file routing_filter_committables.h.

◆ SetAndCommit()

template<typename T>
void operations_research::CommittableValue< T >::SetAndCommit ( const T & value)
inline

Definition at line 43 of file routing_filter_committables.h.


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