C++ Reference

C++ Reference: Routing

Detailed Description

The SequenceVarElement stores a partial representation of ranked interval variables in the underlying sequence variable.

This representation consists of three vectors:

  • the forward sequence. That is the list of interval variables ranked first in the sequence. The first element of the backward sequence is the first interval in the sequence variable.
  • the backward sequence. That is the list of interval variables ranked last in the sequence. The first element of the backward sequence is the last interval in the sequence variable.
  • The list of unperformed interval variables. Furthermore, if all performed variables are ranked, then by convention, the forward_sequence will contain all such variables and the backward_sequence will be empty.

Definition at line 4815 of file constraint_solver.h.

Public Member Functions

 SequenceVarElement ()
 
 SequenceVarElement (SequenceVar *const var)
 
void Reset (SequenceVar *const var)
 
SequenceVarElementClone ()
 
void Copy (const SequenceVarElement &element)
 
SequenceVarVar () const
 
void Store ()
 
void Restore ()
 
void LoadFromProto (const SequenceVarAssignment &sequence_var_assignment_proto)
 
void WriteToProto (SequenceVarAssignment *sequence_var_assignment_proto) const
 
const std::vector< int > & ForwardSequence () const
 
const std::vector< int > & BackwardSequence () const
 
const std::vector< int > & Unperformed () const
 
void SetSequence (const std::vector< int > &forward_sequence, const std::vector< int > &backward_sequence, const std::vector< int > &unperformed)
 
void SetForwardSequence (const std::vector< int > &forward_sequence)
 
void SetBackwardSequence (const std::vector< int > &backward_sequence)
 
void SetUnperformed (const std::vector< int > &unperformed)
 
bool Bound () const
 
std::string DebugString () const
 
bool operator== (const SequenceVarElement &element) const
 
bool operator!= (const SequenceVarElement &element) const
 
void Activate ()
 
void Deactivate ()
 
bool Activated () const
 

Constructor & Destructor Documentation

◆ SequenceVarElement() [1/2]

◆ SequenceVarElement() [2/2]

SequenceVarElement ( SequenceVar *const  var)
explicit

Member Function Documentation

◆ Activate()

void Activate ( )
inlineinherited

Definition at line 4643 of file constraint_solver.h.

◆ Activated()

bool Activated ( ) const
inlineinherited

Definition at line 4645 of file constraint_solver.h.

◆ BackwardSequence()

const std::vector< int > & BackwardSequence ( ) const

◆ Bound()

bool Bound ( ) const
inline

Definition at line 4838 of file constraint_solver.h.

◆ Clone()

SequenceVarElement * Clone ( )

◆ Copy()

void Copy ( const SequenceVarElement element)

◆ Deactivate()

void Deactivate ( )
inlineinherited

Definition at line 4644 of file constraint_solver.h.

◆ DebugString()

std::string DebugString ( ) const

◆ ForwardSequence()

const std::vector< int > & ForwardSequence ( ) const

◆ LoadFromProto()

void LoadFromProto ( const SequenceVarAssignment &  sequence_var_assignment_proto)

◆ operator!=()

bool operator!= ( const SequenceVarElement element) const
inline

Definition at line 4845 of file constraint_solver.h.

◆ operator==()

bool operator== ( const SequenceVarElement element) const

◆ Reset()

void Reset ( SequenceVar *const  var)

◆ Restore()

void Restore ( )

◆ SetBackwardSequence()

void SetBackwardSequence ( const std::vector< int > &  backward_sequence)

◆ SetForwardSequence()

void SetForwardSequence ( const std::vector< int > &  forward_sequence)

◆ SetSequence()

void SetSequence ( const std::vector< int > &  forward_sequence,
const std::vector< int > &  backward_sequence,
const std::vector< int > &  unperformed 
)

◆ SetUnperformed()

void SetUnperformed ( const std::vector< int > &  unperformed)

◆ Store()

void Store ( )

◆ Unperformed()

const std::vector< int > & Unperformed ( ) const

◆ Var()

SequenceVar * Var ( ) const
inline

Definition at line 4822 of file constraint_solver.h.

◆ WriteToProto()

void WriteToProto ( SequenceVarAssignment *  sequence_var_assignment_proto) const

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