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

Collaboration diagram for PSet1:

Collaboration graph
[legend]

List of all members.


Detailed Description

Set of single properties.

A set of single properties (PSet1) handles like an array of properties.

A property in the set may have several status:

Public Member Functions

Protected Member Functions

Protected Attributes

Related Functions

(Note that these are not member functions.)

Constructor & Destructor Documentation

PSet1 (  )  [inline]

default constructor

PSet1 ( const PSet1 P  )  [inline]

copy constructor

~PSet1 (  )  [inline]

destructor


Member Function Documentation

void copy ( const PSet1 P  )  [protected]

copy function

PSet1& operator= ( const PSet1 P  )  [inline]

copy operator

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:
num property number (see propdef.h)

void erase ( int  num  )  [inline]

erase a property

Parameters:
num property number (see propdef.h)

void clear (  ) 

clear all the properties

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:
num property number (see propdef.h)
Return values:
status keep flag
  • 0: don't keep
  • 1: keep

int& status ( int  num  )  [inline]

get the keep status of a property (non constant version)

Parameters:
num property number (see propdef.h)
Return values:
status keep flag
  • 0: don't keep
  • 1: 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:
num property number (see propdef.h)

void reset (  ) 

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

Parameters:
num property number (see propdef.h)
v _svector which data will be taken

bool exist ( int  num  )  const [inline]

checks if a property exists

Parameters:
num property number (see propdef.h)

int declared ( int  num  )  const [inline]

checks if a property is declared

Parameters:
num property number (see propdef.h)

vProp1* operator() ( int  num  )  const [inline]

get virtual access point (constant version)

Parameters:
num property number (see propdef.h)

vProp1* & operator() ( int  num  )  [inline]

get virtual access point (non constant version)

Parameters:
num property number (see propdef.h)

void* operator[] ( int  num  )  const [inline]

get the raw data pointer of a property (constant version)

Parameters:
num property number (see propdef.h)

void* & operator[] ( int  num  )  [inline]

get the raw data pointer of a property (non constant version)

Parameters:
num property number (see propdef.h)

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

svector<vProp1 *> vtab [protected]

array of virtual access

svector<void *> tab [protected]

array of raw pointers to data

svector<int> keep [protected]

array of flags for reset strategy


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