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
PSet1 Class Reference
Detailed Description
Set of single properties.
A set of single properties ([PSet1](classPSet1.html "Set of single properties.")) handles like an array of properties.
A property in the set may have several status:
- it may be declared (means a typing has been provided for the property)
- it may exist (there is a
[svector](classsvector.html "Dynamic vector with elements of type T.")corresponding to the property)
Public Member Functions
- PSet1 ()
- PSet1 (const PSet1 &P)
- ~PSet1 ()
- PSet1 & operator= (const PSet1 &P)
- void Tswap (PSet1 &P)
- void reg (int num, vProp1 *pAccess, void *pv)
- void reg (int num, vProp1 *pAccess)
- void dereg (int num)
- void erase (int num)
- void clear ()
- void KeepClear ()
- int status (int num) const
- int & status (int num)
- void Keep (int num)
- void reset ()
- void import (int num, const void *p, int size)
- void swload (int num, _svector &v)
- bool exist (int num) const
- int declared (int num) const
- vProp1 * operator() (int num) const
- vProp1 *& operator() (int num)
- void * operator[] (int num) const
- void *& operator[] (int num)
- int PStart () const
- int PEnd () const
- void affiche (T_STD ostream &out=T_STD cout) const
Protected Member Functions
Protected Attributes
Related Functions
(Note that these are not member functions.)
- T_STD ostream & operator<< (T_STD ostream &out, const PSet1 &X)
Constructor & Destructor Documentation
Member Function Documentation
| void copy | ( | const PSet1 & | P | ) | [protected] |
|---|
| void Tswap | ( | PSet1 & | P | ) | [inline] |
|---|
exchange the content of two property sets.
Parameters:
| P | property set to exchange content with. |
|---|
| void reg | ( | int | num, |
|---|---|---|---|
| vProp1 * | pAccess, | ||
| void * | pv | ||
| ) | [inline] |
register a property
Parameters:
| num | property number (see propdef.h) |
|---|---|
| pAccess | virtual access point |
| pv | pointer to the data |
| void reg | ( | int | num, |
|---|---|---|---|
| vProp1 * | pAccess | ||
| ) | [inline] |
register a property (declaration only)
Parameters:
| num | property number (see propdef.h) |
|---|---|
| pAccess | virtual access point |
| void dereg | ( | int | num | ) | [inline] |
|---|
deregister a property
Parameters:
| void erase | ( | int | num | ) | [inline] |
|---|
erase a property
Parameters:
| void KeepClear | ( | | ) | [inline] | | -------------- | - | | - | ---------- |
clear the keep flag for all the properties.
| int status | ( | int | num | ) | const [inline] |
|---|
get the keep status of a property (constant version)
Parameters:
Return values:
| status | keep flag 0: don't keep1: keep |
|---|
| int& status | ( | int | num | ) | [inline] |
|---|
get the keep status of a property (non constant version)
Parameters:
Return values:
| status | keep flag 0: don't keep1: keep the returned value may be used as a left value to set the keep flag. |
|---|
| void Keep | ( | int | num | ) | [inline] |
|---|
set the keep status of a property
Parameters:
clear all the properties with no keep flag set.
| void import | ( | int | num, |
|---|---|---|---|
| const void * | p, | ||
| int | size | ||
| ) | [inline] |
import a property from a buffer
Parameters:
| num | property number (see propdef.h) |
|---|---|
| p | pointer to the raw buffer |
| size | size of the buffer |
| void swload | ( | int | num, |
|---|---|---|---|
| _svector & | v | ||
| ) | [inline] |
loads a property by exchange with a raw [_svector](class%5F%5Fsvector.html "Simple dynamic scalar vector [start:finish-1].")
Parameters:
| bool exist | ( | int | num | ) | const [inline] |
|---|
checks if a property exists
Parameters:
| int declared | ( | int | num | ) | const [inline] |
|---|
checks if a property is declared
Parameters:
| vProp1* operator() | ( | int | num | ) | const [inline] |
|---|
get virtual access point (constant version)
Parameters:
| vProp1* & operator() | ( | int | num | ) | [inline] |
|---|
get virtual access point (non constant version)
Parameters:
| void* operator[] | ( | int | num | ) | const [inline] |
|---|
get the raw data pointer of a property (constant version)
Parameters:
| void* & operator[] | ( | int | num | ) | [inline] |
|---|
get the raw data pointer of a property (non constant version)
Parameters:
| int PStart | ( | | ) | const [inline] | | ---------- | - | | - | ---------------- |
first index for property numbers
should actualy be 0
| int PEnd | ( | | ) | const [inline] | | -------- | - | | - | ---------------- |
last index for property numbers
should be PSET_SIZE-1
| void affiche | ( | T_STD ostream & | out = T_STD cout | ) | const [inline] |
|---|
printing function (debugging purpose)
Friends And Related Function Documentation
| T_STD ostream & operator<< | ( | T_STD ostream & | out, |
|---|---|---|---|
| const PSet1 & | X | ||
| ) | [related] |
stream printing of a property set
Member Data Documentation
array of raw pointers to data
array of flags for reset strategy
