OR-Tools  8.2
StrictITIVector< IntType, T >

Detailed Description

template<typename IntType, typename T>
class operations_research::glop::StrictITIVector< IntType, T >

Definition at line 252 of file lp_types.h.

Public Types

typedef IntType IndexType
 
typedef absl::StrongVector< IntType, T > ParentType
 
typedef ParentType::size_type size_type
 
typedef ParentType::allocator_type allocator_type
 
typedef ParentType::value_type value_type
 
typedef ParentType::difference_type difference_type
 
typedef ParentType::reference reference
 
typedef ParentType::const_reference const_reference
 
typedef ParentType::pointer pointer
 
typedef ParentType::const_pointer const_pointer
 
typedef ParentType::iterator iterator
 
typedef ParentType::const_iterator const_iterator
 
typedef ParentType::reverse_iterator reverse_iterator
 
typedef ParentType::const_reverse_iterator const_reverse_iterator
 

Public Member Functions

 StrictITIVector (std::initializer_list< T > init_list)
 
 StrictITIVector ()
 
 StrictITIVector (IntType size)
 
 StrictITIVector (IntType size, const T &v)
 
template<typename InputIteratorType >
 StrictITIVector (InputIteratorType first, InputIteratorType last)
 
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
 
void resize_down (IntType size)
 
void AssignToZero (IntType size)
 
const ParentTypeget () const
 
ParentTypemutable_get ()
 
reference operator[] (IndexType i)
 
const_reference operator[] (IndexType i) const
 
reference at (IndexType i)
 
const_reference at (IndexType i) const
 
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 > ilist)
 
iterator begin ()
 
const_iterator begin () const
 
iterator end ()
 
const_iterator end () const
 
reverse_iterator rbegin ()
 
const_reverse_iterator rbegin () const
 
reverse_iterator rend ()
 
const_reverse_iterator rend () const
 
size_type max_size () const
 
void resize (size_type new_size)
 
void resize (size_type new_size, const value_type &x)
 
bool empty () const
 
void reserve (size_type n)
 
void push_back (const value_type &x)
 
void push_back (value_type &&x)
 
template<typename... Args>
void emplace_back (Args &&... args)
 
template<typename... Args>
iterator emplace (const_iterator pos, Args &&... args)
 
void pop_back ()
 
void swap (StrongVector &x)
 
void clear ()
 
reference front ()
 
const_reference front () const
 
reference back ()
 
const_reference back () const
 
pointer data ()
 
const_pointer data () const
 
iterator erase (const_iterator pos)
 
iterator erase (const_iterator first, const_iterator last)
 
iterator insert (const_iterator pos, const value_type &x)
 
iterator insert (const_iterator pos, value_type &&x)
 
iterator insert (const_iterator pos, size_type n, const value_type &x)
 
template<typename IIt >
iterator insert (const_iterator pos, IIt first, IIt last)
 
iterator insert (const_iterator pos, std::initializer_list< value_type > ilist)
 

Member Typedef Documentation

◆ allocator_type

typedef ParentType::allocator_type allocator_type
inherited

Definition at line 82 of file strong_vector.h.

◆ const_iterator

typedef ParentType::const_iterator const_iterator
inherited

Definition at line 90 of file strong_vector.h.

◆ const_pointer

typedef ParentType::const_pointer const_pointer
inherited

Definition at line 88 of file strong_vector.h.

◆ const_reference

typedef ParentType::const_reference const_reference
inherited

Definition at line 86 of file strong_vector.h.

◆ const_reverse_iterator

typedef ParentType::const_reverse_iterator const_reverse_iterator
inherited

Definition at line 92 of file strong_vector.h.

◆ difference_type

typedef ParentType::difference_type difference_type
inherited

Definition at line 84 of file strong_vector.h.

◆ IndexType

typedef IntType IndexType

Definition at line 254 of file lp_types.h.

◆ iterator

typedef ParentType::iterator iterator
inherited

Definition at line 89 of file strong_vector.h.

◆ ParentType

typedef absl::StrongVector<IntType, T> ParentType

Definition at line 255 of file lp_types.h.

◆ pointer

typedef ParentType::pointer pointer
inherited

Definition at line 87 of file strong_vector.h.

◆ reference

typedef ParentType::reference reference
inherited

Definition at line 85 of file strong_vector.h.

◆ reverse_iterator

typedef ParentType::reverse_iterator reverse_iterator
inherited

Definition at line 91 of file strong_vector.h.

◆ size_type

typedef ParentType::size_type size_type
inherited

Definition at line 81 of file strong_vector.h.

◆ value_type

typedef ParentType::value_type value_type
inherited

Definition at line 83 of file strong_vector.h.

Constructor & Destructor Documentation

◆ StrictITIVector() [1/5]

StrictITIVector ( std::initializer_list< T >  init_list)
inline

Definition at line 259 of file lp_types.h.

◆ StrictITIVector() [2/5]

StrictITIVector ( )
inline

Definition at line 262 of file lp_types.h.

◆ StrictITIVector() [3/5]

StrictITIVector ( IntType  size)
inlineexplicit

Definition at line 263 of file lp_types.h.

◆ StrictITIVector() [4/5]

StrictITIVector ( IntType  size,
const T &  v 
)
inline

Definition at line 264 of file lp_types.h.

◆ StrictITIVector() [5/5]

StrictITIVector ( InputIteratorType  first,
InputIteratorType  last 
)
inline

Definition at line 266 of file lp_types.h.

Member Function Documentation

◆ assign() [1/4]

void assign ( InputIt  f,
InputIt  l 
)
inlineinherited

Definition at line 133 of file strong_vector.h.

◆ assign() [2/4]

void assign ( IntType  size,
const T &  v 
)
inline

Definition at line 274 of file lp_types.h.

◆ assign() [3/4]

void assign ( size_type  n,
const value_type val 
)
inlineinherited

Definition at line 131 of file strong_vector.h.

◆ assign() [4/4]

void assign ( std::initializer_list< value_type ilist)
inlineinherited

Definition at line 136 of file strong_vector.h.

◆ AssignToZero()

void AssignToZero ( IntType  size)
inline

Definition at line 290 of file lp_types.h.

◆ at() [1/2]

reference at ( IndexType  i)
inlineinherited

Definition at line 127 of file strong_vector.h.

◆ at() [2/2]

const_reference at ( IndexType  i) const
inlineinherited

Definition at line 128 of file strong_vector.h.

◆ back() [1/2]

reference back ( )
inlineinherited

Definition at line 174 of file strong_vector.h.

◆ back() [2/2]

const_reference back ( ) const
inlineinherited

Definition at line 175 of file strong_vector.h.

◆ begin() [1/2]

iterator begin ( )
inlineinherited

Definition at line 138 of file strong_vector.h.

◆ begin() [2/2]

const_iterator begin ( ) const
inlineinherited

Definition at line 139 of file strong_vector.h.

◆ capacity()

IntType capacity ( ) const
inline

Definition at line 278 of file lp_types.h.

◆ clear()

void clear ( )
inlineinherited

Definition at line 170 of file strong_vector.h.

◆ data() [1/2]

pointer data ( )
inlineinherited

Definition at line 176 of file strong_vector.h.

◆ data() [2/2]

const_pointer data ( ) const
inlineinherited

Definition at line 177 of file strong_vector.h.

◆ emplace()

iterator emplace ( const_iterator  pos,
Args &&...  args 
)
inlineinherited

Definition at line 165 of file strong_vector.h.

◆ emplace_back()

void emplace_back ( Args &&...  args)
inlineinherited

Definition at line 161 of file strong_vector.h.

◆ empty()

bool empty ( ) const
inlineinherited

Definition at line 156 of file strong_vector.h.

◆ end() [1/2]

iterator end ( )
inlineinherited

Definition at line 140 of file strong_vector.h.

◆ end() [2/2]

const_iterator end ( ) const
inlineinherited

Definition at line 141 of file strong_vector.h.

◆ erase() [1/2]

iterator erase ( const_iterator  first,
const_iterator  last 
)
inlineinherited

Definition at line 180 of file strong_vector.h.

◆ erase() [2/2]

iterator erase ( const_iterator  pos)
inlineinherited

Definition at line 179 of file strong_vector.h.

◆ front() [1/2]

reference front ( )
inlineinherited

Definition at line 172 of file strong_vector.h.

◆ front() [2/2]

const_reference front ( ) const
inlineinherited

Definition at line 173 of file strong_vector.h.

◆ get()

const ParentType& get ( ) const
inlineinherited

Definition at line 115 of file strong_vector.h.

◆ insert() [1/5]

iterator insert ( const_iterator  pos,
const value_type x 
)
inlineinherited

Definition at line 183 of file strong_vector.h.

◆ insert() [2/5]

iterator insert ( const_iterator  pos,
IIt  first,
IIt  last 
)
inlineinherited

Definition at line 193 of file strong_vector.h.

◆ insert() [3/5]

iterator insert ( const_iterator  pos,
size_type  n,
const value_type x 
)
inlineinherited

Definition at line 189 of file strong_vector.h.

◆ insert() [4/5]

iterator insert ( const_iterator  pos,
std::initializer_list< value_type ilist 
)
inlineinherited

Definition at line 196 of file strong_vector.h.

◆ insert() [5/5]

iterator insert ( const_iterator  pos,
value_type &&  x 
)
inlineinherited

Definition at line 186 of file strong_vector.h.

◆ max_size()

size_type max_size ( ) const
inlineinherited

Definition at line 148 of file strong_vector.h.

◆ mutable_get()

ParentType* mutable_get ( )
inlineinherited

Definition at line 122 of file strong_vector.h.

◆ operator[]() [1/2]

reference operator[] ( IndexType  i)
inlineinherited

Definition at line 125 of file strong_vector.h.

◆ operator[]() [2/2]

const_reference operator[] ( IndexType  i) const
inlineinherited

Definition at line 126 of file strong_vector.h.

◆ pop_back()

void pop_back ( )
inlineinherited

Definition at line 168 of file strong_vector.h.

◆ push_back() [1/2]

void push_back ( const value_type x)
inlineinherited

Definition at line 158 of file strong_vector.h.

◆ push_back() [2/2]

void push_back ( value_type &&  x)
inlineinherited

Definition at line 159 of file strong_vector.h.

◆ rbegin() [1/2]

reverse_iterator rbegin ( )
inlineinherited

Definition at line 142 of file strong_vector.h.

◆ rbegin() [2/2]

const_reverse_iterator rbegin ( ) const
inlineinherited

Definition at line 143 of file strong_vector.h.

◆ rend() [1/2]

reverse_iterator rend ( )
inlineinherited

Definition at line 144 of file strong_vector.h.

◆ rend() [2/2]

const_reverse_iterator rend ( ) const
inlineinherited

Definition at line 145 of file strong_vector.h.

◆ reserve() [1/2]

void reserve ( IntType  size)
inline

Definition at line 272 of file lp_types.h.

◆ reserve() [2/2]

void reserve ( size_type  n)
inlineinherited

Definition at line 157 of file strong_vector.h.

◆ resize() [1/4]

void resize ( IntType  size)
inline

Definition at line 269 of file lp_types.h.

◆ resize() [2/4]

void resize ( IntType  size,
const T &  v 
)
inline

Definition at line 270 of file lp_types.h.

◆ resize() [3/4]

void resize ( size_type  new_size)
inlineinherited

Definition at line 150 of file strong_vector.h.

◆ resize() [4/4]

void resize ( size_type  new_size,
const value_type x 
)
inlineinherited

Definition at line 151 of file strong_vector.h.

◆ resize_down()

void resize_down ( IntType  size)
inline

Definition at line 282 of file lp_types.h.

◆ size()

IntType size ( ) const
inline

Definition at line 276 of file lp_types.h.

◆ swap()

void swap ( StrongVector< IntType, T, Alloc > &  x)
inlineinherited

Definition at line 169 of file strong_vector.h.


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