yanera_model_build.c File Reference


Detailed Description

After loading the XML file the models are only in memory in the same manner as the XML file. Second contrast models are incomplete.

This file builds complete models for each data set, adds any common components, converts function layer to postfix expressions, whetever needs to be done to calculate the profiles completely.

Definition in file yanera_model_build.c.

Go to the source code of this file.

Functions

void yanera_complete_models (yanera_container *yanera)
 Fills in all models with the base model.
void copyModel (yanera_model *destination, yanera_model *source)
 Makes a copy of a yanera_model.
void modifyModel (yanera_model *destination, yanera_model *source)
 Alters models to reflect differences from first, base model.
void modifyComponents (yanera_model *destination, yanera_layer *component)
 Connects common components with their layers.


Function Documentation

void yanera_complete_models ( yanera_container yanera  ) 

Parameters:
yanera The yanera_container to fill in the complete models.
Fills in all models with the base model, then modifies them according to the XML file.

First step is to modify the base model by the extra models. Second step is to connect the extra model to the common components, if any. The last step is to convert any function expressions form infix to postfix.

Definition at line 28 of file yanera_model_build.c.

void copyModel ( yanera_model destination,
yanera_model source 
)

Parameters:
destination A newly allocated yanera_model.
source A newly allocated yanera_model.
This function does not copy the slabs of the model. It is not likely this function will be called after slabs are created.

Definition at line 97 of file yanera_model_build.c.

void modifyModel ( yanera_model destination,
yanera_model source 
)

Parameters:
destination The yanera_model that will be modified.
source The yanera_model that has the differences.
Alters models to reflect differences from first, base model.

Definition at line 138 of file yanera_model_build.c.

void modifyComponents ( yanera_model destination,
yanera_layer component 
)

Parameters:
destination The yanera_model that will be modified.
component The yanera_layer specifying component parts.
Connects common components with their layers.

Definition at line 304 of file yanera_model_build.c.


Generated on Thu May 29 10:56:33 2008 by  doxygen 1.5.5