OR-Tools  9.3
PathState

Detailed Description

Definition at line 3061 of file constraint_solveri.h.

Classes

class  Chain
 
struct  ChainBounds
 
class  ChainRange
 
class  NodeRange
 

Public Member Functions

int CommittedIndex (int node) const
 
ChainBounds CommittedPathRange (int path) const
 
 PathState (int num_nodes, std::vector< int > path_start, std::vector< int > path_end)
 
int NumNodes () const
 
int NumPaths () const
 
int Start (int path) const
 
int End (int path) const
 
int Path (int node) const
 
const std::vector< int > & ChangedPaths () const
 
const std::vector< int > & ChangedLoops () const
 
ChainRange Chains (int path) const
 
NodeRange Nodes (int path) const
 
void ChangePath (int path, const std::vector< ChainBounds > &chains)
 
void ChangePath (int path, const std::initializer_list< ChainBounds > &chains)
 
void ChangeLoops (const std::vector< int > &new_loops)
 
void Commit ()
 
void Revert ()
 
void SetInvalid ()
 
bool IsInvalid () const
 

Constructor & Destructor Documentation

◆ PathState()

PathState ( int  num_nodes,
std::vector< int >  path_start,
std::vector< int >  path_end 
)

Definition at line 2568 of file local_search.cc.

Member Function Documentation

◆ Chains()

PathState::ChainRange Chains ( int  path) const

Definition at line 2605 of file local_search.cc.

◆ ChangedLoops()

const std::vector< int > & ChangedLoops ( ) const
inline

Definition at line 3111 of file constraint_solveri.h.

◆ ChangedPaths()

const std::vector< int > & ChangedPaths ( ) const
inline

Definition at line 3109 of file constraint_solveri.h.

◆ ChangeLoops()

void ChangeLoops ( const std::vector< int > &  new_loops)

Definition at line 2628 of file local_search.cc.

◆ ChangePath() [1/2]

void ChangePath ( int  path,
const std::initializer_list< ChainBounds > &  chains 
)
inline

Definition at line 3127 of file constraint_solveri.h.

◆ ChangePath() [2/2]

void ChangePath ( int  path,
const std::vector< ChainBounds > &  chains 
)

Definition at line 2619 of file local_search.cc.

◆ Commit()

void Commit ( )

Definition at line 2635 of file local_search.cc.

◆ CommittedIndex()

int CommittedIndex ( int  node) const
inline

Definition at line 3082 of file constraint_solveri.h.

◆ CommittedPathRange()

ChainBounds CommittedPathRange ( int  path) const
inline

Definition at line 3083 of file constraint_solveri.h.

◆ End()

int End ( int  path) const
inline

Definition at line 3099 of file constraint_solveri.h.

◆ IsInvalid()

bool IsInvalid ( ) const
inline

Definition at line 3148 of file constraint_solveri.h.

◆ Nodes()

PathState::NodeRange Nodes ( int  path) const

Definition at line 2612 of file local_search.cc.

◆ NumNodes()

int NumNodes ( ) const
inline

Definition at line 3093 of file constraint_solveri.h.

◆ NumPaths()

int NumPaths ( ) const
inline

Definition at line 3095 of file constraint_solveri.h.

◆ Path()

int Path ( int  node) const
inline

Definition at line 3104 of file constraint_solveri.h.

◆ Revert()

void Revert ( )

Definition at line 2644 of file local_search.cc.

◆ SetInvalid()

void SetInvalid ( )
inline

Definition at line 3147 of file constraint_solveri.h.

◆ Start()

int Start ( int  path) const
inline

Definition at line 3097 of file constraint_solveri.h.


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