template<typename IntType, typename T, typename Alloc = std::allocator<T>>
class operations_research::glop::StrictITIVector< IntType, T, Alloc >
Wrapper around a StrongVector to allow (and enforce) creation/resize/assign to use the index type for the size.
- Todo
- (user): This should probably move to StrongVector, but note that this version is stricter and does not allow any other size types.
Definition at line 286 of file lp_types.h.
|
| | StrictITIVector ()=default |
| | StrictITIVector (IntType size) |
| | StrictITIVector (const Alloc &a) |
| | StrictITIVector (IntType n, const T &v, const Alloc &a=Alloc()) |
| | StrictITIVector (std::initializer_list< T > init_list, const Alloc &a=Alloc()) |
| template<typename InputIteratorType> |
| | StrictITIVector (InputIteratorType first, InputIteratorType last, const Alloc &a=Alloc()) |
| void | resize (IntType size) |
| void | resize (IntType size, const T &v) |
| void | reserve (IntType size) |
| void | assign (IntType size, const T &v) |
| IntType | size () const |
| IntType | capacity () const |
| View | view () |
| ConstView | const_view () const |
| ConstView | view () const |
| StrictITIVector & | operator= (ConstView data) |
| void | resize_down (IntType size) |
| void | AssignToZero (IntType size) |
| | StrongVector () |
| | StrongVector (const allocator_type &a) |
| | StrongVector (size_type n) |
| | StrongVector (IntType n) |
| | StrongVector (size_type n, const value_type &v, const allocator_type &a=allocator_type()) |
| | StrongVector (IntType n, const value_type &v, const allocator_type &a=allocator_type()) |
| | StrongVector (const StrongVector &x) |
| | StrongVector (StrongVector &&x)=default |
| | StrongVector (std::initializer_list< value_type > l, const allocator_type &a=allocator_type()) |
| template<typename InputIteratorType> |
| | StrongVector (InputIteratorType first, InputIteratorType last, const allocator_type &a=allocator_type()) |
| | ~StrongVector () |
| const ParentType & | get () const |
| ParentType * | mutable_get () |
| reference | operator[] (IntType i) |
| | – Modified methods ----------------------------------------------------—
|
| const_reference | operator[] (IntType i) const |
| reference | at (IntType i) |
| const_reference | at (IntType i) const |
| IntType | start_index () const |
| | – Extension methods ---------------------------------------------------—
|
| IntType | end_index () const |
| bool | IsValidSize () const |
| | Returns true if the vector is fully addressable by the index type.
|
| StrongIntRange< IntType > | index_range () const |
| value_type * | data () |
| | – Pass-through methods to STL vector ----------------------------------—
|
| const value_type * | data () const |
| StrongVector & | operator= (const StrongVector &x) |
| StrongVector & | operator= (StrongVector &&x)=default |
| StrongVector & | operator= (std::initializer_list< value_type > l) |
| void | swap (StrongVector &x) noexcept |
| void | assign (size_type n, const value_type &val) |
| template<typename InputIt> |
| void | assign (InputIt f, InputIt l) |
| void | assign (std::initializer_list< value_type > l) |
| template<typename... Args> |
| iterator | emplace (const_iterator pos, Args &&... args) |
| template<typename... Args> |
| reference | emplace_back (Args &&... args) |
| iterator | insert (const_iterator pos, const value_type &x) |
| iterator | insert (const_iterator pos, value_type &&x) |
| void | insert (const_iterator pos, size_type n, const value_type &x) |
| template<typename SIT> |
| void | insert (const_iterator pos, SIT first, SIT last) |
| void | push_back (const value_type &val) |
| void | push_back (value_type &&val) |
| void | reserve (size_type n) |
| void | reserve (IntType n) |
| void | resize (size_type new_size) |
| void | resize (IntType new_size) |
| void | resize (size_type new_size, const value_type &x) |
| void | resize (IntType new_size, const value_type &x) |