C++ Reference
C++ Reference: Routing
Detailed Description
template<class T>
class operations_research::RevIntSet< T >
This is a special class to represent a 'residual' set of T.
T must be an integer type. You fill it at first, and then during search, you can efficiently remove an element, and query the removed elements.
Definition at line 2440 of file constraint_solveri.h.
Public Member Functions | |
| RevIntSet (int capacity) | |
| Capacity is the fixed size of the set (it cannot grow). More... | |
| RevIntSet (int capacity, int *shared_positions, int shared_positions_size) | |
| Capacity is the fixed size of the set (it cannot grow). More... | |
| ~RevIntSet () | |
| int | Size () const |
| int | Capacity () const |
| T | Element (int i) const |
| T | RemovedElement (int i) const |
| void | Insert (Solver *const solver, const T &elt) |
| void | Remove (Solver *const solver, const T &value_index) |
| void | Restore (Solver *const solver, const T &value_index) |
| void | Clear (Solver *const solver) |
| const_iterator | begin () const |
| const_iterator | end () const |
Public Attributes | |
| const typedef T * | const_iterator |
| Iterators on the indices. More... | |
Static Public Attributes | |
| static const int | kNoInserted = -1 |
Constructor & Destructor Documentation
◆ RevIntSet() [1/2]
|
inlineexplicit |
Capacity is the fixed size of the set (it cannot grow).
Definition at line 2445 of file constraint_solveri.h.
◆ RevIntSet() [2/2]
|
inline |
Capacity is the fixed size of the set (it cannot grow).
Definition at line 2457 of file constraint_solveri.h.
◆ ~RevIntSet()
|
inline |
Definition at line 2468 of file constraint_solveri.h.
Member Function Documentation
◆ begin()
|
inline |
Definition at line 2513 of file constraint_solveri.h.
◆ Capacity()
|
inline |
Definition at line 2476 of file constraint_solveri.h.
◆ Clear()
|
inline |
Definition at line 2509 of file constraint_solveri.h.
◆ Element()
|
inline |
Definition at line 2478 of file constraint_solveri.h.
◆ end()
|
inline |
Definition at line 2514 of file constraint_solveri.h.
◆ Insert()
|
inline |
Valid.
Definition at line 2490 of file constraint_solveri.h.
◆ Remove()
|
inline |
Definition at line 2499 of file constraint_solveri.h.
◆ RemovedElement()
|
inline |
Definition at line 2484 of file constraint_solveri.h.
◆ Restore()
|
inline |
Definition at line 2504 of file constraint_solveri.h.
◆ Size()
|
inline |
Definition at line 2474 of file constraint_solveri.h.
Member Data Documentation
◆ const_iterator
| const typedef T* const_iterator |
Iterators on the indices.
Definition at line 2512 of file constraint_solveri.h.
◆ kNoInserted
|
static |
Definition at line 2442 of file constraint_solveri.h.
The documentation for this class was generated from the following file: