![]() |
OR-Tools
8.2
|
The SequenceVarElement stores a partial representation of ranked interval variables in the underlying sequence variable.
This representation consists of three vectors:
Definition at line 4815 of file constraint_solver.h.
Public Member Functions | |
SequenceVarElement () | |
SequenceVarElement (SequenceVar *const var) | |
void | Reset (SequenceVar *const var) |
SequenceVarElement * | Clone () |
void | Copy (const SequenceVarElement &element) |
SequenceVar * | Var () 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 |
Definition at line 245 of file constraint_solver/assignment.cc.
|
explicit |
Definition at line 247 of file constraint_solver/assignment.cc.
|
inlineinherited |
Definition at line 4643 of file constraint_solver.h.
|
inlineinherited |
Definition at line 4645 of file constraint_solver.h.
const std::vector< int > & BackwardSequence | ( | ) | const |
Definition at line 350 of file constraint_solver/assignment.cc.
|
inline |
Definition at line 4838 of file constraint_solver.h.
SequenceVarElement * Clone | ( | ) |
Definition at line 256 of file constraint_solver/assignment.cc.
void Copy | ( | const SequenceVarElement & | element | ) |
Definition at line 262 of file constraint_solver/assignment.cc.
|
inlineinherited |
Definition at line 4644 of file constraint_solver.h.
std::string DebugString | ( | ) | const |
Definition at line 318 of file constraint_solver/assignment.cc.
const std::vector< int > & ForwardSequence | ( | ) | const |
Definition at line 346 of file constraint_solver/assignment.cc.
void LoadFromProto | ( | const SequenceVarAssignment & | sequence_var_assignment_proto | ) |
Definition at line 282 of file constraint_solver/assignment.cc.
|
inline |
Definition at line 4845 of file constraint_solver.h.
bool operator== | ( | const SequenceVarElement & | element | ) | const |
Definition at line 329 of file constraint_solver/assignment.cc.
void Reset | ( | SequenceVar *const | var | ) |
Definition at line 249 of file constraint_solver/assignment.cc.
void Restore | ( | ) |
Definition at line 278 of file constraint_solver/assignment.cc.
void SetBackwardSequence | ( | const std::vector< int > & | backward_sequence | ) |
Definition at line 372 of file constraint_solver/assignment.cc.
void SetForwardSequence | ( | const std::vector< int > & | forward_sequence | ) |
Definition at line 367 of file constraint_solver/assignment.cc.
void SetSequence | ( | const std::vector< int > & | forward_sequence, |
const std::vector< int > & | backward_sequence, | ||
const std::vector< int > & | unperformed | ||
) |
Definition at line 358 of file constraint_solver/assignment.cc.
void SetUnperformed | ( | const std::vector< int > & | unperformed | ) |
Definition at line 377 of file constraint_solver/assignment.cc.
void Store | ( | ) |
Definition at line 274 of file constraint_solver/assignment.cc.
const std::vector< int > & Unperformed | ( | ) | const |
Definition at line 354 of file constraint_solver/assignment.cc.
|
inline |
Definition at line 4822 of file constraint_solver.h.
void WriteToProto | ( | SequenceVarAssignment * | sequence_var_assignment_proto | ) | const |
Definition at line 303 of file constraint_solver/assignment.cc.