hashDefault.h File Reference

This file is the default hash used by the labeled stream, if the user does not implement one */. More...

#include <stdio.h>
#include <string.h>

Include dependency graph for hashDefault.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

int hashDefault (char *label, int image)
 used when we cant read a hash from lib associated with outputport
void mlsHashDefault (char *label, int image, int destArray[])
 Similar to default hash, but the result is a set of destinations, not a single one.


Detailed Description

This file is the default hash used by the labeled stream, if the user does not implement one */.

Definition in file hashDefault.h.


Function Documentation

int hashDefault char *  label,
int  numDestinations
 

used when we cant read a hash from lib associated with outputport

Hash is used by the labeled stream after the getLabel extracts the label from the message. After hashing the label, we have the destination of the message.

Parameters:
label the label of the message, extracted by getLabel
image the number of destinations valid
Returns:
the destination instance, something >=0 and < image

Definition at line 12 of file hashDefault.c.

Referenced by loadOPLSData().

void mlsHashDefault char *  label,
int  numDestinations,
int  destArray[]
 

Similar to default hash, but the result is a set of destinations, not a single one.

The array size is given by the the image parameter.

Parameters:
label the label of the message, extracted by getLabel
image the number of destinations valid
destArray a "boolean" array, where each positions says if a destination is valid or not. \ The array size is given by the image parameter. Void allocates it.

Definition at line 31 of file hashDefault.c.

Referenced by loadOPMLSData().


Generated on Tue Jan 17 19:23:57 2006 for Void by  doxygen 1.4.6