C++ Reference

C++ Reference: Graph

SVector< T >

Detailed Description

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

Definition at line 174 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 774 of file graph.h.

◆ ~SVector()

~SVector ( )
inline

Definition at line 776 of file graph.h.

◆ SVector() [2/3]

SVector ( const SVector< T > &  other)
inline

Definition at line 779 of file graph.h.

◆ SVector() [3/3]

SVector ( SVector< T > &&  other)
inline

Definition at line 801 of file graph.h.

Member Function Documentation

◆ capacity()

int capacity ( ) const
inline

Definition at line 892 of file graph.h.

◆ clear()

void clear ( )
inline

Definition at line 840 of file graph.h.

◆ clear_and_dealloc()

void clear_and_dealloc ( )
inline

Definition at line 896 of file graph.h.

◆ data()

T* data ( ) const
inline

Definition at line 842 of file graph.h.

◆ grow()

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

Definition at line 873 of file graph.h.

◆ max_size()

int max_size ( ) const
inline

Definition at line 894 of file graph.h.

◆ operator=() [1/2]

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

Definition at line 780 of file graph.h.

◆ operator=() [2/2]

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

Definition at line 802 of file graph.h.

◆ operator[]() [1/2]

T& operator[] ( int  n)
inline

Definition at line 811 of file graph.h.

◆ operator[]() [2/2]

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

Definition at line 817 of file graph.h.

◆ reserve()

void reserve ( int  n)
inline

Definition at line 850 of file graph.h.

◆ resize()

void resize ( int  n)
inline

Definition at line 823 of file graph.h.

◆ size()

int size ( ) const
inline

Definition at line 890 of file graph.h.

◆ swap()

void swap ( SVector< T > &  x)
inline

Definition at line 844 of file graph.h.


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