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
Prop Class Template Reference
Detailed Description
template
class Prop< T >
Vector property.
Public Member Functions
- Prop (PSet &X, int num)
- Prop (PSet &X, int num, const T &value)
- ~Prop ()
- rsvector< T > & me ()
- const rsvector< T > & me () const
- Prop< T > & operator= (const Prop< T > &s)
Static Public Member Functions
Constructor & Destructor Documentation
constructor
Note:
- if the property does not exist, it is created.
- if the property is not declared, it is declared with the template type.
Parameters:X PSet the property belongs to num property number (see propdef.h)
| Prop | ( | PSet & | X, |
|---|---|---|---|
| int | num, | ||
| const T & | value | ||
| ) | [inline] |
constructor with default value assignment
Note:
- if the property does not exist, it is created and filled with default value
- if the property is not declared, it is declared with the template type.
Parameters:X PSet the property belongs to num property number (see propdef.h) value default value for the property
Member Function Documentation
get a property
Note:
- if the property does not exist, it is created.
- if the property is not declared, it is declared with the template type.
Parameters:X PSet the property belongs to num property number (see propdef.h) Return values: get raw _svector containing propertie's data ----- ---------------------------------------------------------------------------------------------------------------------
| static _svector& get | ( | PSet & | X, |
|---|---|---|---|
| int | num, | ||
| const T & | value | ||
| ) | [inline, static] |
get a property and assign a default value
Note:
- if the property does not exist, it is created and filled with default value
- if the property is not declared, it is declared with the template type.
Parameters:X PSet the property belongs to num property number (see propdef.h) value default value for the property Return values: get raw _svector containing propertie's data ----- ---------------------------------------------------------------------------------------------------------------------
| const rsvector& me | ( | | ) | const [inline] | | ------------------------------------------- | - | | - | ---------------- |
| Prop& operator= | ( | const Prop< T > & | s | ) | [inline] |
|---|
