The Complete SPRLIB & ANNLIB

connect_layers

- connect maps in two successive layers (LOCAL)

SYNOPSIS

int connect_layers (layer, prev_layer, recipe)

ARGUMENTS

LAYER *layer A pointer to the LAYER structure of layer L.
LAYER *prev_layer A pointer to the LAYER structure of layer L-1.
LAYER_RECIPE recipe The recipe containing the construction parameters of the links between layer and prev_layer.

RETURNS

TRUE if an error occured, FALSE if not.

FUNCTION

This function is called by the create_sharednet function after all layer, map and unit structures have been created. For each MAP structure i in layer, it checks via the corresponding recipe.Connected[i][j] field whether it should be connected to map j in prev_layer. If so, it calls the connect_maps function and adds a pointer to map j to the array ConnectedMap[] in map i. After a map i has been connected to all maps necessary, the ConnectedMap[] array is filled out with NULL values to a length prev_layer->NumMaps.

SEE ALSO

create_sharednet

This document was generated using api2html on Thu Mar 5 09:00:00 MET DST 1998