Google OR-Tools v9.15
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
util::internal::SVector< IndexT, T > Class Template Reference

Detailed Description

template<typename IndexT, typename T>
class util::internal::SVector< IndexT, T >

Definition at line 441 of file graph.h.

#include <graph.h>

Public Types

using value_type = T

Public Member Functions

 SVector ()
 ~SVector ()
 SVector (const SVector &other)
SVectoroperator= (const SVector &other)
 SVector (SVector &&other) noexcept
SVectoroperator= (SVector &&other) noexcept
T & operator[] (IndexT n)
const T & operator[] (IndexT n) const
void resize (IndexT n)
void clear ()
T * data () const
const T * begin () const
const T * end () const
void swap (SVector< IndexT, T > &x) noexcept
void reserve (IndexT n)
void grow (const T &left=T(), const T &right=T())
IndexT size () const
IndexT capacity () const
IndexT max_size () const
void clear_and_dealloc ()

Member Typedef Documentation

◆ value_type

template<typename IndexT, typename T>
using util::internal::SVector< IndexT, T >::value_type = T

Definition at line 443 of file graph.h.

Constructor & Destructor Documentation

◆ SVector() [1/3]

template<typename IndexT, typename T>
util::internal::SVector< IndexT, T >::SVector ( )
inline

Definition at line 445 of file graph.h.

◆ ~SVector()

template<typename IndexT, typename T>
util::internal::SVector< IndexT, T >::~SVector ( )
inline

Definition at line 447 of file graph.h.

◆ SVector() [2/3]

template<typename IndexT, typename T>
util::internal::SVector< IndexT, T >::SVector ( const SVector< IndexT, T > & other)
inline

Definition at line 450 of file graph.h.

◆ SVector() [3/3]

template<typename IndexT, typename T>
util::internal::SVector< IndexT, T >::SVector ( SVector< IndexT, T > && other)
inlinenoexcept

Definition at line 470 of file graph.h.

Member Function Documentation

◆ begin()

template<typename IndexT, typename T>
const T * util::internal::SVector< IndexT, T >::begin ( ) const
inline

Definition at line 513 of file graph.h.

◆ capacity()

template<typename IndexT, typename T>
IndexT util::internal::SVector< IndexT, T >::capacity ( ) const
inline

Definition at line 565 of file graph.h.

◆ clear()

template<typename IndexT, typename T>
void util::internal::SVector< IndexT, T >::clear ( )
inline

Definition at line 509 of file graph.h.

◆ clear_and_dealloc()

template<typename IndexT, typename T>
void util::internal::SVector< IndexT, T >::clear_and_dealloc ( )
inline

Definition at line 569 of file graph.h.

◆ data()

template<typename IndexT, typename T>
T * util::internal::SVector< IndexT, T >::data ( ) const
inline

Definition at line 511 of file graph.h.

◆ end()

template<typename IndexT, typename T>
const T * util::internal::SVector< IndexT, T >::end ( ) const
inline

Definition at line 514 of file graph.h.

◆ grow()

template<typename IndexT, typename T>
void util::internal::SVector< IndexT, T >::grow ( const T & left = T(),
const T & right = T() )
inline

Definition at line 546 of file graph.h.

◆ max_size()

template<typename IndexT, typename T>
IndexT util::internal::SVector< IndexT, T >::max_size ( ) const
inline

Definition at line 567 of file graph.h.

◆ operator=() [1/2]

template<typename IndexT, typename T>
SVector & util::internal::SVector< IndexT, T >::operator= ( const SVector< IndexT, T > & other)
inline

Definition at line 451 of file graph.h.

◆ operator=() [2/2]

template<typename IndexT, typename T>
SVector & util::internal::SVector< IndexT, T >::operator= ( SVector< IndexT, T > && other)
inlinenoexcept

Definition at line 471 of file graph.h.

◆ operator[]() [1/2]

template<typename IndexT, typename T>
T & util::internal::SVector< IndexT, T >::operator[] ( IndexT n)
inline

Definition at line 480 of file graph.h.

◆ operator[]() [2/2]

template<typename IndexT, typename T>
const T & util::internal::SVector< IndexT, T >::operator[] ( IndexT n) const
inline

Definition at line 486 of file graph.h.

◆ reserve()

template<typename IndexT, typename T>
void util::internal::SVector< IndexT, T >::reserve ( IndexT n)
inline

Definition at line 522 of file graph.h.

◆ resize()

template<typename IndexT, typename T>
void util::internal::SVector< IndexT, T >::resize ( IndexT n)
inline

Definition at line 492 of file graph.h.

◆ size()

template<typename IndexT, typename T>
IndexT util::internal::SVector< IndexT, T >::size ( ) const
inline

Definition at line 563 of file graph.h.

◆ swap()

template<typename IndexT, typename T>
void util::internal::SVector< IndexT, T >::swap ( SVector< IndexT, T > & x)
inlinenoexcept

Definition at line 516 of file graph.h.


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