PIGALE 1.3.9 Documentation (original) (raw)
P.I.G.A.L.E.
1.3.9
Public Implementation of a Graph Algorithm
Library and Editor
H. de Fraysseix P. Ossona de Mendez
svector Class Template Reference
Detailed Description
template
class svector< T >
Dynamic vector with elements of type T.
Public Member Functions
- svector ()
- svector (int a, int b)
- svector (int a, int b, const T &value)
- svector (int n)
- svector (const svector &v)
- svector (int a, int b, const T *p)
- ~svector ()
- svector & operator= (const svector &v)
- T & operator[] (int i)
- const T & operator[] (int i) const
- T & operator[] (tbrin i)
- const T & operator[] (tbrin i) const
- T & operator[] (tedge i)
- const T & operator[] (tedge i) const
- T & operator[] (tvertex i)
- const T & operator[] (tvertex i) const
- T & operator() (int i)
- T & operator() (tedge i)
- T & operator() (tvertex i)
- T & operator() (tbrin i)
- T * begin ()
- const T * begin () const
- T * end ()
- const T * end () const
- T * origin ()
- const T * origin () const
- const T * pinit () const
- void definit (const T &value)
- void getinit (T &value) const
- void DeletePack (int i)
- void Tswap (svector< T > &v)
- void SwapIndex (int a, int b)
- svector & vector ()
Static Public Member Functions
Private Member Functions
Constructor & Destructor Documentation
| svector | ( | int | a, |
|---|---|---|---|
| int | b, | ||
| const T & | value | ||
| ) | [inline] |
| svector | ( | int | a, |
|---|---|---|---|
| int | b, | ||
| const T * | p | ||
| ) | [inline] |
Member Function Documentation
| const _svector& me | ( | | ) | const [inline, private] | | ---------------------------------------------- | - | | - | ------------------------- |
| T& operator[] | ( | int | i | ) | [inline] |
|---|
access to element with index i (should exist)
| const T& operator[] | ( | int | i | ) | const [inline] |
|---|
| T& operator[] | ( | tbrin | i | ) | [inline] |
|---|
| const T& operator[] | ( | tbrin | i | ) | const [inline] |
|---|
| T& operator[] | ( | tedge | i | ) | [inline] |
|---|
| const T& operator[] | ( | tedge | i | ) | const [inline] |
|---|
| T& operator[] | ( | tvertex | i | ) | [inline] |
|---|
| const T& operator[] | ( | tvertex | i | ) | const [inline] |
|---|
| T& operator() | ( | int | i | ) | [inline] |
|---|
access to element with index i (resizes vector when necessary)
| T& operator() | ( | tedge | i | ) | [inline] |
|---|
| T& operator() | ( | tvertex | i | ) | [inline] |
|---|
| T& operator() | ( | tbrin | i | ) | [inline] |
|---|
pointer to first element
Reimplemented from _svector.
| const T* begin | ( | | ) | const [inline] | | --------------- | - | | - | ---------------- |
pointer after last element (first invalid index)
Reimplemented from _svector.
| const T* end | ( | | ) | const [inline] | | ------------- | - | | - | ---------------- |
pointer to origin element (index 0)
Reimplemented from _svector.
| const T* origin | ( | | ) | const [inline] | | ---------------- | - | | - | ---------------- |
static explicit conversion method from untyped vector
| const T* pinit | ( | | ) | const [inline] | | --------------- | - | | - | ---------------- |
pointer to default value
Reimplemented from _svector.
| void definit | ( | const T & | value | ) | [inline] |
|---|
| void getinit | ( | T & | value | ) | const [inline] |
|---|
| void DeletePack | ( | int | i | ) | [inline] |
|---|
deletes element with index i, by shifting all elements right to it to the left
| void Tswap | ( | svector< T > & | v | ) | [inline] |
|---|
| void SwapIndex | ( | int | a, |
|---|---|---|---|
| int | b | ||
| ) | [inline] |
swaps two elements
Reimplemented from _svector.
alias for the vector (for use in derived classes)
