![]() |
OR-Tools
8.1
|
Definition at line 4854 of file constraint_solver.h.
Public Member Functions | |
| AssignmentContainer () | |
| E * | Add (V *var) |
| E * | FastAdd (V *var) |
| Adds element without checking its presence in the container. More... | |
| E * | AddAtPosition (V *var, int position) |
| Advanced usage: Adds element at a given position; position has to have been allocated with AssignmentContainer::Resize() beforehand. More... | |
| void | Clear () |
| void | Resize (size_t size) |
| Advanced usage: Resizes the container, potentially adding elements with null variables. More... | |
| bool | Empty () const |
| void | CopyIntersection (const AssignmentContainer< V, E > &container) |
| Copies the elements of 'container' which are already in the calling container. More... | |
| void | Copy (const AssignmentContainer< V, E > &container) |
| Copies all the elements of 'container' to this container, clearing its previous content. More... | |
| bool | Contains (const V *const var) const |
| E * | MutableElement (const V *const var) |
| E * | MutableElementOrNull (const V *const var) |
| const E & | Element (const V *const var) const |
| const E * | ElementPtrOrNull (const V *const var) const |
| const std::vector< E > & | elements () const |
| E * | MutableElement (int index) |
| const E & | Element (int index) const |
| int | Size () const |
| void | Store () |
| void | Restore () |
| bool | AreAllElementsBound () const |
| bool | operator== (const AssignmentContainer< V, E > &container) const |
| Returns true if this and 'container' both represent the same V* -> E map. More... | |
| bool | operator!= (const AssignmentContainer< V, E > &container) const |
|
inline |
Definition at line 4856 of file constraint_solver.h.
|
inline |
Definition at line 4857 of file constraint_solver.h.
|
inline |
Advanced usage: Adds element at a given position; position has to have been allocated with AssignmentContainer::Resize() beforehand.
Definition at line 4874 of file constraint_solver.h.
|
inline |
Definition at line 4965 of file constraint_solver.h.
|
inline |
2x speedup on OR-tools.
Definition at line 4878 of file constraint_solver.h.
|
inline |
Definition at line 4919 of file constraint_solver.h.
|
inline |
Copies all the elements of 'container' to this container, clearing its previous content.
Definition at line 4912 of file constraint_solver.h.
|
inline |
Copies the elements of 'container' which are already in the calling container.
Definition at line 4890 of file constraint_solver.h.
|
inline |
Definition at line 4936 of file constraint_solver.h.
|
inline |
Definition at line 4951 of file constraint_solver.h.
|
inline |
Definition at line 4942 of file constraint_solver.h.
|
inline |
Definition at line 4949 of file constraint_solver.h.
|
inline |
Definition at line 4887 of file constraint_solver.h.
|
inline |
Adds element without checking its presence in the container.
Definition at line 4867 of file constraint_solver.h.
|
inline |
Definition at line 4923 of file constraint_solver.h.
|
inline |
Definition at line 4950 of file constraint_solver.h.
|
inline |
Definition at line 4929 of file constraint_solver.h.
|
inline |
Definition at line 4994 of file constraint_solver.h.
|
inline |
Returns true if this and 'container' both represent the same V* -> E map.
Runs in linear time; requires that the == operator on the type E is well defined.
We may not have any work to do
The == should be order-independent
Do not use the hash_map::== operator! It compares both content and how the map is hashed (e.g., number of buckets). This is not what we want.
Definition at line 4975 of file constraint_solver.h.
|
inline |
Advanced usage: Resizes the container, potentially adding elements with null variables.
Definition at line 4886 of file constraint_solver.h.
|
inline |
Definition at line 4958 of file constraint_solver.h.
|
inline |
Definition at line 4952 of file constraint_solver.h.
|
inline |
Definition at line 4953 of file constraint_solver.h.