Google OR-Tools: util_intops::StrongVector< IntType, NativeType, Alloc

template<typename IntType, typename NativeType, typename Alloc = std::allocator<NativeType>>
class util_intops::StrongVector< IntType, NativeType, Alloc >

Definition at line 75 of file strong_vector.h.

#include <strong_vector.h>

operations_research::glop::StrictITIVector< ColIndex, Fractional > operations_research::glop::StrictITIVector< ColIndex, bool > operations_research::glop::StrictITIVector< ColIndex, ColIndex > operations_research::glop::StrictITIVector< ColIndex, RowIndex > operations_research::glop::StrictITIVector< ColIndex, VariableType > operations_research::glop::StrictITIVector< ColIndex, VariableStatus > operations_research::glop::StrictITIVector< RowIndex, Fractional > operations_research::glop::StrictITIVector< RowIndex, bool > operations_research::glop::StrictITIVector< RowIndex, RowIndex > operations_research::glop::StrictITIVector< RowIndex, ColIndex > operations_research::glop::StrictITIVector< RowIndex, ConstraintStatus > operations_research::glop::StrictITIVector< Index, Fractional > operations_research::glop::StrictITIVector< IndexType, ValueType > operations_research::glop::StrictITIVector< ColIndex, int32_t > operations_research::glop::StrictITIVector< EntryIndex, Fractional > operations_research::glop::StrictITIVector< EntryIndex, RowIndex > operations_research::glop::StrictITIVector< ColIndex, EntryIndex > operations_research::glop::StrictITIVector< RowIndex, std::string > operations_research::glop::StrictITIVector< ColIndex, std::string > operations_research::glop::StrictITIVector< RowIndex, int32_t > operations_research::glop::StrictITIVector< ColIndex, operations_research::glop::SparseColumn const * > operations_research::glop::StrictITIVector< IndexType, IndexType > operations_research::glop::StrictITIVector< ColIndex, operations_research::glop::SparseColumn > operations_research::glop::StrictITIVector< IntType, T, Alloc >

Public Types

typedef std::vector< NativeType, Alloc > ParentType
typedef ParentType::size_type size_type
typedef ParentType::allocator_type allocator_type
typedef ParentType::value_type value_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 (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 ParentTypeget () const
ParentTypemutable_get ()
reference operator[] (IntType i)
const_reference operator[] (IntType i) const
reference at (IntType i)
const_reference at (IntType i) const
IntType start_index () const
IntType end_index () const
bool IsValidSize () const
StrongIntRange< IntType > index_range () const
value_typedata ()
const value_typedata () const
StrongVectoroperator= (const StrongVector &x)
StrongVectoroperator= (StrongVector &&x)=default
StrongVectoroperator= (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)

Friends

template<typename H>
AbslHashValue (H h, const StrongVector &v)
bool operator== (const StrongVector &x, const StrongVector &y)
bool operator!= (const StrongVector &x, const StrongVector &y)
bool operator< (const StrongVector &x, const StrongVector &y)
bool operator> (const StrongVector &x, const StrongVector &y)
bool operator<= (const StrongVector &x, const StrongVector &y)
bool operator>= (const StrongVector &x, const StrongVector &y)
void swap (StrongVector &x, StrongVector &y) noexcept

◆ allocator_type

template<typename IntType, typename NativeType, typename Alloc = std::allocator<NativeType>>

◆ const_iterator

template<typename IntType, typename NativeType, typename Alloc = std::allocator<NativeType>>

◆ const_pointer

template<typename IntType, typename NativeType, typename Alloc = std::allocator<NativeType>>

◆ const_reference

template<typename IntType, typename NativeType, typename Alloc = std::allocator<NativeType>>

◆ const_reverse_iterator

template<typename IntType, typename NativeType, typename Alloc = std::allocator<NativeType>>

◆ iterator

template<typename IntType, typename NativeType, typename Alloc = std::allocator<NativeType>>

◆ ParentType

template<typename IntType, typename NativeType, typename Alloc = std::allocator<NativeType>>

◆ pointer

template<typename IntType, typename NativeType, typename Alloc = std::allocator<NativeType>>

◆ reference

template<typename IntType, typename NativeType, typename Alloc = std::allocator<NativeType>>

◆ reverse_iterator

template<typename IntType, typename NativeType, typename Alloc = std::allocator<NativeType>>

◆ size_type

template<typename IntType, typename NativeType, typename Alloc = std::allocator<NativeType>>

◆ value_type

template<typename IntType, typename NativeType, typename Alloc = std::allocator<NativeType>>

template<typename IntType, typename NativeType, typename Alloc = std::allocator<NativeType>>

◆ StrongVector() [2/10]

template<typename IntType, typename NativeType, typename Alloc = std::allocator<NativeType>>

◆ StrongVector() [3/10]

template<typename IntType, typename NativeType, typename Alloc = std::allocator<NativeType>>

◆ StrongVector() [4/10]

template<typename IntType, typename NativeType, typename Alloc = std::allocator<NativeType>>

◆ StrongVector() [5/10]

template<typename IntType, typename NativeType, typename Alloc = std::allocator<NativeType>>

◆ StrongVector() [6/10]

template<typename IntType, typename NativeType, typename Alloc = std::allocator<NativeType>>

◆ StrongVector() [7/10]

template<typename IntType, typename NativeType, typename Alloc = std::allocator<NativeType>>

util_intops::StrongVector< IntType, NativeType, Alloc >::StrongVector ( const StrongVector< IntType, NativeType, Alloc > & x)
inline

◆ StrongVector() [8/10]

template<typename IntType, typename NativeType, typename Alloc = std::allocator<NativeType>>

util_intops::StrongVector< IntType, NativeType, Alloc >::StrongVector ( StrongVector< IntType, NativeType, Alloc > && x)
default

◆ StrongVector() [9/10]

template<typename IntType, typename NativeType, typename Alloc = std::allocator<NativeType>>

◆ StrongVector() [10/10]

template<typename IntType, typename NativeType, typename Alloc = std::allocator<NativeType>>

template<typename InputIteratorType>

util_intops::StrongVector< IntType, NativeType, Alloc >::StrongVector ( InputIteratorType first,
InputIteratorType last,
const allocator_type & a = allocator_type() )
inline

◆ ~StrongVector()

template<typename IntType, typename NativeType, typename Alloc = std::allocator<NativeType>>

◆ assign() [1/3]

template<typename IntType, typename NativeType, typename Alloc = std::allocator<NativeType>>

template<typename InputIt>

◆ assign() [2/3]

template<typename IntType, typename NativeType, typename Alloc = std::allocator<NativeType>>

◆ assign() [3/3]

template<typename IntType, typename NativeType, typename Alloc = std::allocator<NativeType>>

◆ at() [1/2]

template<typename IntType, typename NativeType, typename Alloc = std::allocator<NativeType>>

◆ at() [2/2]

template<typename IntType, typename NativeType, typename Alloc = std::allocator<NativeType>>

◆ data() [1/2]

template<typename IntType, typename NativeType, typename Alloc = std::allocator<NativeType>>

◆ data() [2/2]

template<typename IntType, typename NativeType, typename Alloc = std::allocator<NativeType>>

◆ emplace()

template<typename IntType, typename NativeType, typename Alloc = std::allocator<NativeType>>

template<typename... Args>

◆ emplace_back()

template<typename IntType, typename NativeType, typename Alloc = std::allocator<NativeType>>

template<typename... Args>

◆ end_index()

template<typename IntType, typename NativeType, typename Alloc = std::allocator<NativeType>>

◆ get()

template<typename IntType, typename NativeType, typename Alloc = std::allocator<NativeType>>

◆ index_range()

template<typename IntType, typename NativeType, typename Alloc = std::allocator<NativeType>>

◆ insert() [1/4]

template<typename IntType, typename NativeType, typename Alloc = std::allocator<NativeType>>

◆ insert() [2/4]

template<typename IntType, typename NativeType, typename Alloc = std::allocator<NativeType>>

template<typename SIT>

◆ insert() [3/4]

template<typename IntType, typename NativeType, typename Alloc = std::allocator<NativeType>>

◆ insert() [4/4]

template<typename IntType, typename NativeType, typename Alloc = std::allocator<NativeType>>

◆ IsValidSize()

template<typename IntType, typename NativeType, typename Alloc = std::allocator<NativeType>>

◆ mutable_get()

template<typename IntType, typename NativeType, typename Alloc = std::allocator<NativeType>>

◆ operator=() [1/3]

template<typename IntType, typename NativeType, typename Alloc = std::allocator<NativeType>>

◆ operator=() [2/3]

template<typename IntType, typename NativeType, typename Alloc = std::allocator<NativeType>>

◆ operator=() [3/3]

template<typename IntType, typename NativeType, typename Alloc = std::allocator<NativeType>>

◆ operator[]() [1/2]

template<typename IntType, typename NativeType, typename Alloc = std::allocator<NativeType>>

◆ operator[]() [2/2]

template<typename IntType, typename NativeType, typename Alloc = std::allocator<NativeType>>

◆ push_back() [1/2]

template<typename IntType, typename NativeType, typename Alloc = std::allocator<NativeType>>

◆ push_back() [2/2]

template<typename IntType, typename NativeType, typename Alloc = std::allocator<NativeType>>

◆ reserve() [1/2]

template<typename IntType, typename NativeType, typename Alloc = std::allocator<NativeType>>

◆ reserve() [2/2]

template<typename IntType, typename NativeType, typename Alloc = std::allocator<NativeType>>

◆ resize() [1/4]

template<typename IntType, typename NativeType, typename Alloc = std::allocator<NativeType>>

◆ resize() [2/4]

template<typename IntType, typename NativeType, typename Alloc = std::allocator<NativeType>>

◆ resize() [3/4]

template<typename IntType, typename NativeType, typename Alloc = std::allocator<NativeType>>

◆ resize() [4/4]

template<typename IntType, typename NativeType, typename Alloc = std::allocator<NativeType>>

◆ start_index()

template<typename IntType, typename NativeType, typename Alloc = std::allocator<NativeType>>

◆ swap()

template<typename IntType, typename NativeType, typename Alloc = std::allocator<NativeType>>

◆ AbslHashValue

template<typename IntType, typename NativeType, typename Alloc = std::allocator<NativeType>>

template<typename H>

H AbslHashValue ( H h,
const StrongVector< IntType, NativeType, Alloc > & v )
friend

◆ operator!=

template<typename IntType, typename NativeType, typename Alloc = std::allocator<NativeType>>

bool operator!= ( const StrongVector< IntType, NativeType, Alloc > & x,
const StrongVector< IntType, NativeType, Alloc > & y )
friend

◆ operator<

template<typename IntType, typename NativeType, typename Alloc = std::allocator<NativeType>>

bool operator< ( const StrongVector< IntType, NativeType, Alloc > & x,
const StrongVector< IntType, NativeType, Alloc > & y )
friend

◆ operator<=

template<typename IntType, typename NativeType, typename Alloc = std::allocator<NativeType>>

bool operator<= ( const StrongVector< IntType, NativeType, Alloc > & x,
const StrongVector< IntType, NativeType, Alloc > & y )
friend

◆ operator==

template<typename IntType, typename NativeType, typename Alloc = std::allocator<NativeType>>

bool operator== ( const StrongVector< IntType, NativeType, Alloc > & x,
const StrongVector< IntType, NativeType, Alloc > & y )
friend

◆ operator>

template<typename IntType, typename NativeType, typename Alloc = std::allocator<NativeType>>

bool operator> ( const StrongVector< IntType, NativeType, Alloc > & x,
const StrongVector< IntType, NativeType, Alloc > & y )
friend

◆ operator>=

template<typename IntType, typename NativeType, typename Alloc = std::allocator<NativeType>>

bool operator>= ( const StrongVector< IntType, NativeType, Alloc > & x,
const StrongVector< IntType, NativeType, Alloc > & y )
friend

◆ swap

template<typename IntType, typename NativeType, typename Alloc = std::allocator<NativeType>>

void swap ( StrongVector< IntType, NativeType, Alloc > & x,
StrongVector< IntType, NativeType, Alloc > & y )
friend

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