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

rsvector Class Template Reference

Inheritance diagram for rsvector:

Inheritance graph
[legend]
Collaboration diagram for rsvector:

Collaboration graph
[legend]

List of all members.


Detailed Description

template<class T>
class rsvector< T >

Reference to a dynamic vector with elements of type T.

The fundamental reason why such a template has been written is the impossibility, in C++, to derive a class from "reference to XXX". Hence, we have to build a template base classe that won't be more than "reference to svector<T>".

Public Member Functions

Protected Attributes


Constructor & Destructor Documentation

rsvector ( _svector s  )  [inline]

~rsvector (  )  [inline]


Member Function Documentation

T& operator[] ( int  i  )  [inline]

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

T& operator() ( int  i  )  [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() ( tedge  i  )  [inline]

T& operator() ( tvertex  i  )  [inline]

T& operator() ( tbrin  i  )  [inline]

T* begin (  )  [inline]

T* origin (  )  [inline]

T* end (  )  [inline]

const T* begin (  )  const [inline]

const T* origin (  )  const [inline]

const T* end (  )  const [inline]

void clear (  )  [inline]

void fill ( int  from,
int  to,
char  byte = 0 
) [inline]

void Tswap ( _svector s  )  [inline]

rsvector& operator= ( const _svector s  )  [inline]

rsvector& operator= ( const rsvector< T > &  s  )  [inline]

rsvector& operator= ( const svector< T > &  s  )  [inline]

int starti (  )  const [inline]

int stopi (  )  const [inline]

operator svector< T > & (  )  [inline]

void resize ( int  a,
int  b 
) [inline]

const T* pinit (  )  const [inline]

void definit ( const T &  value  )  [inline]

void getinit ( T &  value  )  [inline]

int empty (  )  const [inline]

int InRange ( int  index  )  [inline]

void SetName ( const char *  txt  )  [inline]

const char* GetName (  )  const [inline]

int n (  )  const [inline]

void DeletePack ( int  i  )  [inline]

void SwapIndex ( int  a,
int  b 
) [inline]

svector<T>& vector (  )  [inline]

bool operator== ( const _svector v  )  const [inline]

bool operator== ( const rsvector< T > &  v  )  const [inline]

bool operator== ( const svector< T > &  v  )  const [inline]

bool operator!= ( const _svector v  )  const [inline]

bool operator!= ( const rsvector< T > &  v  )  const [inline]

bool operator!= ( const svector< T > &  v  )  const [inline]


Member Data Documentation

_svector& v [protected]


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