Open
Graph Drawing
Framework

 v. 2022.02 (Dogwood)
 

Minisat::Internal::vec< T > Class Template Reference

#include <ogdf/lib/minisat/mtl/Vec.h>

Public Member Functions

 vec ()
 
 vec (int size)
 
 vec (int size, const T &pad)
 
 ~vec ()
 
void capacity (int min_cap)
 
int capacity (void) const
 
void clear (bool dealloc=false)
 
void copyTo (vec< T > &copy) const
 
void growTo (int size)
 
void growTo (int size, const T &pad)
 
T & last (void)
 
const T & last (void) const
 
void moveTo (vec< T > &dest)
 
 operator T* (void)
 
T & operator[] (int index)
 
const T & operator[] (int index) const
 
void pop (void)
 
void push (const T &elem)
 
void push (void)
 
void push_ (const T &elem)
 
void shrink (int nelems)
 
void shrink_ (int nelems)
 
int size (void) const
 

Private Member Functions

 vec (vec< T > &other)
 
vec< T > & operator= (vec< T > &other)
 

Static Private Member Functions

static int imax (int x, int y)
 
static void nextCap (int &cap)
 

Private Attributes

int cap
 
T * data
 
int sz
 

Detailed Description

template<class T>
class Minisat::Internal::vec< T >

Definition at line 38 of file Vec.h.

Constructor & Destructor Documentation

◆ vec() [1/4]

template<class T >
Minisat::Internal::vec< T >::vec ( vec< T > &  other)
inlineprivate

Definition at line 45 of file Vec.h.

◆ vec() [2/4]

template<class T >
Minisat::Internal::vec< T >::vec ( )
inline

Definition at line 54 of file Vec.h.

◆ vec() [3/4]

template<class T >
Minisat::Internal::vec< T >::vec ( int  size)
inlineexplicit

Definition at line 55 of file Vec.h.

◆ vec() [4/4]

template<class T >
Minisat::Internal::vec< T >::vec ( int  size,
const T &  pad 
)
inline

Definition at line 56 of file Vec.h.

◆ ~vec()

template<class T >
Minisat::Internal::vec< T >::~vec ( )
inline

Definition at line 57 of file Vec.h.

Member Function Documentation

◆ capacity() [1/2]

template<class T >
void Minisat::Internal::vec< T >::capacity ( int  min_cap)

Definition at line 96 of file Vec.h.

◆ capacity() [2/2]

template<class T >
int Minisat::Internal::vec< T >::capacity ( void  ) const
inline

Definition at line 66 of file Vec.h.

◆ clear()

template<class T >
void Minisat::Internal::vec< T >::clear ( bool  dealloc = false)

Definition at line 121 of file Vec.h.

◆ copyTo()

template<class T >
void Minisat::Internal::vec< T >::copyTo ( vec< T > &  copy) const
inline

Definition at line 90 of file Vec.h.

◆ growTo() [1/2]

template<class T >
void Minisat::Internal::vec< T >::growTo ( int  size)

Definition at line 113 of file Vec.h.

◆ growTo() [2/2]

template<class T >
void Minisat::Internal::vec< T >::growTo ( int  size,
const T &  pad 
)

Definition at line 105 of file Vec.h.

◆ imax()

template<class T >
static int Minisat::Internal::vec< T >::imax ( int  x,
int  y 
)
inlinestaticprivate

Definition at line 48 of file Vec.h.

◆ last() [1/2]

template<class T >
T& Minisat::Internal::vec< T >::last ( void  )
inline

Definition at line 83 of file Vec.h.

◆ last() [2/2]

template<class T >
const T& Minisat::Internal::vec< T >::last ( void  ) const
inline

Definition at line 82 of file Vec.h.

◆ moveTo()

template<class T >
void Minisat::Internal::vec< T >::moveTo ( vec< T > &  dest)
inline

Definition at line 91 of file Vec.h.

◆ nextCap()

template<class T >
static void Minisat::Internal::vec< T >::nextCap ( int &  cap)
inlinestaticprivate

Definition at line 50 of file Vec.h.

◆ operator T*()

template<class T >
Minisat::Internal::vec< T >::operator T* ( void  )
inline

Definition at line 60 of file Vec.h.

◆ operator=()

template<class T >
vec<T>& Minisat::Internal::vec< T >::operator= ( vec< T > &  other)
inlineprivate

Definition at line 44 of file Vec.h.

◆ operator[]() [1/2]

template<class T >
T& Minisat::Internal::vec< T >::operator[] ( int  index)
inline

Definition at line 87 of file Vec.h.

◆ operator[]() [2/2]

template<class T >
const T& Minisat::Internal::vec< T >::operator[] ( int  index) const
inline

Definition at line 86 of file Vec.h.

◆ pop()

template<class T >
void Minisat::Internal::vec< T >::pop ( void  )
inline

Definition at line 76 of file Vec.h.

◆ push() [1/2]

template<class T >
void Minisat::Internal::vec< T >::push ( const T &  elem)
inline

Definition at line 74 of file Vec.h.

◆ push() [2/2]

template<class T >
void Minisat::Internal::vec< T >::push ( void  )
inline

Definition at line 73 of file Vec.h.

◆ push_()

template<class T >
void Minisat::Internal::vec< T >::push_ ( const T &  elem)
inline

Definition at line 75 of file Vec.h.

◆ shrink()

template<class T >
void Minisat::Internal::vec< T >::shrink ( int  nelems)
inline

Definition at line 64 of file Vec.h.

◆ shrink_()

template<class T >
void Minisat::Internal::vec< T >::shrink_ ( int  nelems)
inline

Definition at line 65 of file Vec.h.

◆ size()

template<class T >
int Minisat::Internal::vec< T >::size ( void  ) const
inline

Definition at line 63 of file Vec.h.

Member Data Documentation

◆ cap

template<class T >
int Minisat::Internal::vec< T >::cap
private

Definition at line 41 of file Vec.h.

◆ data

template<class T >
T* Minisat::Internal::vec< T >::data
private

Definition at line 39 of file Vec.h.

◆ sz

template<class T >
int Minisat::Internal::vec< T >::sz
private

Definition at line 40 of file Vec.h.


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