
A set of vector properties (PSet) handles like an array of vector properties. All the vector properties in a same set have the same index bound.
A vector property in the set may have several status:
svector corresponding to the property) | PSet | ( | int | a, | |
| int | b | |||
| ) | [inline] |
Property set with vectors indexed within two bounds.
| a | start index for properties | |
| b | last index for properties |
| PSet | ( | int | n | ) | [inline] |
Property set with vectors of a specified size (indexed from 0).
| n | size of the properties (indexed from 0 to n-1) |
| PSet | ( | ) | [inline] |
default constructor
The Property set will have to be resized before any use.
| ~PSet | ( | ) | [inline] |
destructor
| void copy | ( | const PSet & | P | ) | [protected] |
copy function
| void link | ( | int | num | ) | [inline, protected] |
add in the double linked list of existing properties
| void unlink | ( | int | num | ) | [inline, protected] |
remove from the double linked list of existing properties
register a property
| num | property number (see propdef.h) | |
| pAccess | virtual access point | |
| pv | property vector |
| void reg | ( | int | num, | |
| vProp * | pAccess | |||
| ) | [inline] |
register a property (declaration only)
| num | property number (see propdef.h) | |
| pAccess | virtual access point |
| void dereg | ( | int | num | ) | [inline] |
| void Tswap | ( | PSet & | P | ) | [inline] |
exchange the content of two property sets.
| P | property set to exchange content with. |
| void load | ( | int | num, | |
| const _svector & | v | |||
| ) | [inline] |
| void swload | ( | int | num, | |
| _svector & | v | |||
| ) | [inline] |
| int start | ( | ) | const [inline] |
starting index for properties
| int finish | ( | ) | const [inline] |
ending index for properties
| void erase | ( | int | num | ) | [inline] |
| void clear | ( | ) |
clear all the properties
| void KeepClear | ( | ) | [inline] |
clear the keep flag for all the properties.
| void reset | ( | ) |
clear all the properties with no keep flag set.
| bool exist | ( | int | num | ) | const [inline] |
| int declared | ( | int | num | ) | const [inline] |
| int defined | ( | int | num | ) | const [inline] |
| void resize | ( | int | a, | |
| int | b | |||
| ) |
resize the property set
| a | start index for properties | |
| b | last index for properties |
| void SwapIndex | ( | int | a, | |
| int | b | |||
| ) |
Tswap two elements in all the existing properties.
| a | index of first element | |
| b | index of second element |
| void CopyIndex | ( | int | a, | |
| int | b | |||
| ) |
copy an element into another one in all the existing properties
| a | index of source element | |
| b | index of target element |
| 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
| vProp* operator() | ( | int | num | ) | const [inline] |
| vProp* & operator() | ( | int | num | ) | [inline] |
| _svector* operator[] | ( | int | num | ) | const [inline] |
| _svector* & operator[] | ( | int | num | ) | [inline] |
| int status | ( | int | num | ) | const [inline] |
get the keep status of a property (non constant version)
| num | property number (see propdef.h) |
| status | keep flag
|
| int& status | ( | int | num | ) | [inline] |
get the keep status of a property (constant version)
| num | property number (see propdef.h) |
| status | keep flag
|
| void Keep | ( | int | num | ) | [inline] |
| tstring Value | ( | int | PNum, | |
| int | index, | |||
| int * | rc = 0 | |||
| ) | [inline] |
get the value of an element as a string
| void affiche | ( | T_STD ostream & | out = T_STD cout |
) | const [inline] |
printing function (debugging purpose)
| out | output stream |
| T_STD ostream & operator<< | ( | T_STD ostream & | out, | |
| const PSet & | X | |||
| ) | [related] |
stream printing of a property set
int _start [protected] |
index of first element in vector properties
int _finish [protected] |
index of last element in vector properties
1.5.4