OR-Tools  9.6
SVector< T >

Detailed Description

template<typename T>
class util::SVector< T >

Definition at line 786 of file graph.h.

Public Member Functions

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

Constructor & Destructor Documentation

◆ SVector() [1/3]

SVector ( )
inline

Definition at line 788 of file graph.h.

◆ ~SVector()

~SVector ( )
inline

Definition at line 790 of file graph.h.

◆ SVector() [2/3]

SVector ( const SVector< T > &  other)
inline

Definition at line 793 of file graph.h.

◆ SVector() [3/3]

SVector ( SVector< T > &&  other)
inline

Definition at line 813 of file graph.h.

Member Function Documentation

◆ capacity()

int capacity ( ) const
inline

Definition at line 904 of file graph.h.

◆ clear()

void clear ( )
inline

Definition at line 852 of file graph.h.

◆ clear_and_dealloc()

void clear_and_dealloc ( )
inline

Definition at line 908 of file graph.h.

◆ data()

T* data ( ) const
inline

Definition at line 854 of file graph.h.

◆ grow()

void grow ( const T &  left = T(),
const T &  right = T() 
)
inline

Definition at line 885 of file graph.h.

◆ max_size()

int max_size ( ) const
inline

Definition at line 906 of file graph.h.

◆ operator=() [1/2]

SVector& operator= ( const SVector< T > &  other)
inline

Definition at line 794 of file graph.h.

◆ operator=() [2/2]

SVector& operator= ( SVector< T > &&  other)
inline

Definition at line 814 of file graph.h.

◆ operator[]() [1/2]

T& operator[] ( int  n)
inline

Definition at line 823 of file graph.h.

◆ operator[]() [2/2]

const T& operator[] ( int  n) const
inline

Definition at line 829 of file graph.h.

◆ reserve()

void reserve ( int  n)
inline

Definition at line 862 of file graph.h.

◆ resize()

void resize ( int  n)
inline

Definition at line 835 of file graph.h.

◆ size()

int size ( ) const
inline

Definition at line 902 of file graph.h.

◆ swap()

void swap ( SVector< T > &  x)
inline

Definition at line 856 of file graph.h.


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