OR-Tools  8.2
PathState

Detailed Description

Definition at line 3049 of file constraint_solveri.h.

Classes

class  Chain
 
class  ChainRange
 
class  NodeRange
 

Public Member Functions

 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< std::pair< int, int > > & ChangedArcs () const
 
const std::vector< int > & ChangedPaths () const
 
ChainRange Chains (int path) const
 
NodeRange Nodes (int path) const
 
void ChangeNext (int node, int new_next)
 
void CutChains ()
 
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 2559 of file local_search.cc.

Member Function Documentation

◆ Chains()

PathState::ChainRange Chains ( int  path) const

Definition at line 2597 of file local_search.cc.

◆ ChangedArcs()

const std::vector< std::pair< int, int > > & ChangedArcs ( ) const
inline

Definition at line 3087 of file constraint_solveri.h.

◆ ChangedPaths()

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

Definition at line 3092 of file constraint_solveri.h.

◆ ChangeNext()

void ChangeNext ( int  node,
int  new_next 
)
inline

Definition at line 3102 of file constraint_solveri.h.

◆ Commit()

void Commit ( )

Definition at line 2752 of file local_search.cc.

◆ CutChains()

void CutChains ( )

Definition at line 2716 of file local_search.cc.

◆ End()

int End ( int  path) const
inline

Definition at line 3077 of file constraint_solveri.h.

◆ IsInvalid()

bool IsInvalid ( ) const
inline

Definition at line 3118 of file constraint_solveri.h.

◆ Nodes()

PathState::NodeRange Nodes ( int  path) const

Definition at line 2604 of file local_search.cc.

◆ NumNodes()

int NumNodes ( ) const
inline

Definition at line 3071 of file constraint_solveri.h.

◆ NumPaths()

int NumPaths ( ) const
inline

Definition at line 3073 of file constraint_solveri.h.

◆ Path()

int Path ( int  node) const
inline

Definition at line 3082 of file constraint_solveri.h.

◆ Revert()

void Revert ( )

Definition at line 2761 of file local_search.cc.

◆ SetInvalid()

void SetInvalid ( )
inline

Definition at line 3117 of file constraint_solveri.h.

◆ Start()

int Start ( int  path) const
inline

Definition at line 3075 of file constraint_solveri.h.


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