OR-Tools  8.2
StrongVector< IntType, T, Alloc >

Detailed Description

template<typename IntType, typename T, typename Alloc = std::allocator<T>>
class absl::StrongVector< IntType, T, Alloc >

Definition at line 76 of file strong_vector.h.

Public Types

typedef IntType IndexType
 
typedef std::vector< T, Alloc > 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

 StrongVector ()
 
 StrongVector (const allocator_type &a)
 
 StrongVector (size_type n)
 
 StrongVector (size_type n, const value_type &v, const allocator_type &a=allocator_type())
 
 StrongVector (std::initializer_list< value_type > il)
 
template<typename InputIteratorType >
 StrongVector (InputIteratorType first, InputIteratorType last, const allocator_type &a=allocator_type())
 
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 size () const
 
size_type max_size () const
 
void resize (size_type new_size)
 
void resize (size_type new_size, const value_type &x)
 
size_type capacity () const
 
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

Definition at line 82 of file strong_vector.h.

◆ const_iterator

typedef ParentType::const_iterator const_iterator

Definition at line 90 of file strong_vector.h.

◆ const_pointer

typedef ParentType::const_pointer const_pointer

Definition at line 88 of file strong_vector.h.

◆ const_reference

typedef ParentType::const_reference const_reference

Definition at line 86 of file strong_vector.h.

◆ const_reverse_iterator

typedef ParentType::const_reverse_iterator const_reverse_iterator

Definition at line 92 of file strong_vector.h.

◆ difference_type

typedef ParentType::difference_type difference_type

Definition at line 84 of file strong_vector.h.

◆ IndexType

typedef IntType IndexType

Definition at line 78 of file strong_vector.h.

◆ iterator

typedef ParentType::iterator iterator

Definition at line 89 of file strong_vector.h.

◆ ParentType

typedef std::vector<T, Alloc> ParentType

Definition at line 79 of file strong_vector.h.

◆ pointer

typedef ParentType::pointer pointer

Definition at line 87 of file strong_vector.h.

◆ reference

typedef ParentType::reference reference

Definition at line 85 of file strong_vector.h.

◆ reverse_iterator

typedef ParentType::reverse_iterator reverse_iterator

Definition at line 91 of file strong_vector.h.

◆ size_type

typedef ParentType::size_type size_type

Definition at line 81 of file strong_vector.h.

◆ value_type

typedef ParentType::value_type value_type

Definition at line 83 of file strong_vector.h.

Constructor & Destructor Documentation

◆ StrongVector() [1/6]

StrongVector ( )
inline

Definition at line 95 of file strong_vector.h.

◆ StrongVector() [2/6]

StrongVector ( const allocator_type a)
inlineexplicit

Definition at line 97 of file strong_vector.h.

◆ StrongVector() [3/6]

StrongVector ( size_type  n)
inlineexplicit

Definition at line 98 of file strong_vector.h.

◆ StrongVector() [4/6]

StrongVector ( size_type  n,
const value_type v,
const allocator_type a = allocator_type() 
)
inline

Definition at line 100 of file strong_vector.h.

◆ StrongVector() [5/6]

StrongVector ( std::initializer_list< value_type il)
inline

Definition at line 104 of file strong_vector.h.

◆ StrongVector() [6/6]

StrongVector ( InputIteratorType  first,
InputIteratorType  last,
const allocator_type a = allocator_type() 
)
inline

Definition at line 109 of file strong_vector.h.

Member Function Documentation

◆ assign() [1/3]

void assign ( InputIt  f,
InputIt  l 
)
inline

Definition at line 133 of file strong_vector.h.

◆ assign() [2/3]

void assign ( size_type  n,
const value_type val 
)
inline

Definition at line 131 of file strong_vector.h.

◆ assign() [3/3]

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

Definition at line 136 of file strong_vector.h.

◆ at() [1/2]

reference at ( IndexType  i)
inline

Definition at line 127 of file strong_vector.h.

◆ at() [2/2]

const_reference at ( IndexType  i) const
inline

Definition at line 128 of file strong_vector.h.

◆ back() [1/2]

reference back ( )
inline

Definition at line 174 of file strong_vector.h.

◆ back() [2/2]

const_reference back ( ) const
inline

Definition at line 175 of file strong_vector.h.

◆ begin() [1/2]

iterator begin ( )
inline

Definition at line 138 of file strong_vector.h.

◆ begin() [2/2]

const_iterator begin ( ) const
inline

Definition at line 139 of file strong_vector.h.

◆ capacity()

size_type capacity ( ) const
inline

Definition at line 155 of file strong_vector.h.

◆ clear()

void clear ( )
inline

Definition at line 170 of file strong_vector.h.

◆ data() [1/2]

pointer data ( )
inline

Definition at line 176 of file strong_vector.h.

◆ data() [2/2]

const_pointer data ( ) const
inline

Definition at line 177 of file strong_vector.h.

◆ emplace()

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

Definition at line 165 of file strong_vector.h.

◆ emplace_back()

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

Definition at line 161 of file strong_vector.h.

◆ empty()

bool empty ( ) const
inline

Definition at line 156 of file strong_vector.h.

◆ end() [1/2]

iterator end ( )
inline

Definition at line 140 of file strong_vector.h.

◆ end() [2/2]

const_iterator end ( ) const
inline

Definition at line 141 of file strong_vector.h.

◆ erase() [1/2]

iterator erase ( const_iterator  first,
const_iterator  last 
)
inline

Definition at line 180 of file strong_vector.h.

◆ erase() [2/2]

iterator erase ( const_iterator  pos)
inline

Definition at line 179 of file strong_vector.h.

◆ front() [1/2]

reference front ( )
inline

Definition at line 172 of file strong_vector.h.

◆ front() [2/2]

const_reference front ( ) const
inline

Definition at line 173 of file strong_vector.h.

◆ get()

const ParentType & get ( ) const
inline

Definition at line 115 of file strong_vector.h.

◆ insert() [1/5]

iterator insert ( const_iterator  pos,
const value_type x 
)
inline

Definition at line 183 of file strong_vector.h.

◆ insert() [2/5]

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

Definition at line 193 of file strong_vector.h.

◆ insert() [3/5]

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

Definition at line 189 of file strong_vector.h.

◆ insert() [4/5]

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

Definition at line 196 of file strong_vector.h.

◆ insert() [5/5]

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

Definition at line 186 of file strong_vector.h.

◆ max_size()

size_type max_size ( ) const
inline

Definition at line 148 of file strong_vector.h.

◆ mutable_get()

ParentType * mutable_get ( )
inline

Definition at line 122 of file strong_vector.h.

◆ operator[]() [1/2]

reference operator[] ( IndexType  i)
inline

Definition at line 125 of file strong_vector.h.

◆ operator[]() [2/2]

const_reference operator[] ( IndexType  i) const
inline

Definition at line 126 of file strong_vector.h.

◆ pop_back()

void pop_back ( )
inline

Definition at line 168 of file strong_vector.h.

◆ push_back() [1/2]

void push_back ( const value_type x)
inline

Definition at line 158 of file strong_vector.h.

◆ push_back() [2/2]

void push_back ( value_type &&  x)
inline

Definition at line 159 of file strong_vector.h.

◆ rbegin() [1/2]

reverse_iterator rbegin ( )
inline

Definition at line 142 of file strong_vector.h.

◆ rbegin() [2/2]

const_reverse_iterator rbegin ( ) const
inline

Definition at line 143 of file strong_vector.h.

◆ rend() [1/2]

reverse_iterator rend ( )
inline

Definition at line 144 of file strong_vector.h.

◆ rend() [2/2]

const_reverse_iterator rend ( ) const
inline

Definition at line 145 of file strong_vector.h.

◆ reserve()

void reserve ( size_type  n)
inline

Definition at line 157 of file strong_vector.h.

◆ resize() [1/2]

void resize ( size_type  new_size)
inline

Definition at line 150 of file strong_vector.h.

◆ resize() [2/2]

void resize ( size_type  new_size,
const value_type x 
)
inline

Definition at line 151 of file strong_vector.h.

◆ size()

size_type size ( ) const
inline

Definition at line 147 of file strong_vector.h.

◆ swap()

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

Definition at line 169 of file strong_vector.h.


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