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


PSet1 Class Reference

List of all members.


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:

Public Member Functions

Protected Member Functions

Protected Attributes

(Note that these are not member functions.)


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)


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


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