 |
Bsoft
2.1.0
Bernard's software package
|
Go to the documentation of this file.
14 #define MAXLINK 10 // Maximum number of links per component
int comp_type_kill(Bcomptype *type)
Deallocates memory for one component type.
int model_associate_mass(Bmodel *model, Bstring &associate_type, double mass)
Associates a mass with a component type.
int model_check(Bmodel *model, Bstring path)
Checks model properties.
int model_count_component_types(Bmodel *model)
Counts the number of components for each type.
int model_change_type(Bmodel *model, Bstring &change_type)
Change a component type name.
int model_component_count(Bmodel *model)
Counts the total number of components.
Bcomponent * component_add(Bcomponent **comp, Bstring &id)
Adds a component to a linked list.
Blink * link_add(Blink **link, Bcomponent *comp1, Bcomponent *comp2, double length, double radius)
Adds a component link to a linked list.
int link_copy(Blink *fromlink, Blink *tolink)
Copies all elements from one link to another.
Bmodel * model_copy(Bmodel *model)
Copies a model.
int comp_type_list_kill(Bcomptype *type)
Deallocates memory for a list of component types.
double length(vector< T > v)
Blink * link_find(Blink *link, Bcomponent *comp1, Bcomponent *comp2)
Finds a link in a link list.
Bmodel * model_init(Bstring &id)
Initializes a model structure.
int component_list_kill(Bcomponent *comp)
Deallocates memory for a list of components.
Bcomptype * model_add_type_by_filename(Bmodel *model, Bstring &filename, int num)
Add a type to a model if the type with the given file name does not exist already.
Classes for color objects.
int link_index(Bcomponent *comp, Bcomponent *comp2)
Returns the index of a linked component.
Bmodel * model_list_copy(Bmodel *model)
Copies a model.
Bcomptype * model_add_type_by_id_and_filename(Bmodel *model, Bstring &id, Bstring &filename, int num)
Add a type to a model if the type with the given id and file name does not exist already.
long model_set_density(Bmodel *model, double density)
Set the density of selected components to a specific value.
int model_kill(Bmodel *model)
Deallocates all memory in the list.
Bcomptype * model_get_type(Bmodel *model, Bstring &id)
Return the type corresponding to an identifier.
long model_set_fom(Bmodel *model, double fom)
Set the FOM of selected components to a specific value.
Header file for the string class.
int component_kill(Bcomponent *comp)
Deallocates memory for one component.
int model_set_map_filenames(Bmodel *model, Bstring &mapfile)
Sets all the map file names of selected models.
int write_model(Bstring &filename, Bmodel *model)
Writes model parameters.
Bcomptype * component_type_add(Bcomptype **type, Bstring &id)
Adds a component type to a linked list.
Bcomponent * comp[MAXLINK]
int poly_list_kill(Bpolygon *poly)
Deallocates memory for a list of polygons.
Bmodel * model_add(Bmodel **model, Bstring &id)
Adds a model to a linked list.
Bcomptype * model_add_type_by_id(Bmodel *model, Bstring &id)
Add a type to a model if the identifier does not exist already.
Bmodel * read_model(Bstring &filename)
Bcomponent * component_find(Bcomponent *comp, Bstring &id)
Finds a component in a component list.
int comp_associated_links_kill(Bcomponent *comp, Blink **link)
Deallocates memory for links associated with a component.
int model_set_type(Bmodel *model, Bstring &set_type)
Reset the component types.
int model_set_comptype_filenames(Bmodel *model, Bstring &filename)
Sets the filenames of all selected component types to the given string.
int component_type_copy(Bcomptype *fromct, Bcomptype *toct)
Copies all elements from one component to another.
int component_copy(Bcomponent *fromcomp, Bcomponent *tocomp)
Copies all elements from one component to another.
long model_set_component_radius(Bmodel *model, double comprad)
Set the display radius for all components to a specific value.
int model_link_list_kill(Bmodel *model)
Deallocates memory for a list of component links.
int model_associate(Bmodel *model, Bstring &associate_type, Bstring &associate_file)
Associates a model file with a component type.
Bcomponent * link[MAXLINK]
long component_count(Bcomponent *comp)
Counts the total number of components.
int link_kill(Blink **link_list, Bcomponent *comp, int i)
Deletes a link.
Bcomponent * neighbor[MAXLINK]