PIGALE 1.3.9 Documentation (original) (raw)

SourceForge Logo

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

List of all members.


Detailed Description

template

class svector< T >

Dynamic vector with elements of type T.

Public Member Functions

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)


Generated on Thu Jan 31 16:52:08 2008 for Pigale by doxygen 1.5.4