GLYLIB
0.3.0b
|
Dealloction routines for structures relevant to analysis. More...
Functions | |
void | deallocateBondType (bond_type *btp) |
void | deallocateMolbond (molbond *mlb) |
void | deallocateBond (bond *bnd) |
void | deallocateBondset (bondset *bst) |
void | deallocateAtom (atom *atm) |
void | deallocateResidue (residue *res) |
void | deallocateMolecule (molecule *mol) |
Dealloction routines for structures relevant to analysis.
Begun on 20100304 by BLFoley
Notes regarding these functions:
If a structure does not contain any pointers, it can just be freed. Structures that contain pointers must have a deallocation function. Single-pointers to arrays of simple types (e.g. int) may be freed. Single-pointers to arrays of structures might need individual deallocation. Double-pointers Be very careful before freeing double-pointed structures -- they might point somewhere you don't want freed Freeing the top-level pointer should not interfere with data below
void deallocateAtom | ( | atom * | atm | ) |
Definition at line 308 of file deallocate_structures.c.
References deallocateBond(), deallocateMolbond(), atom::nb, atom::nmb, atom::nOD, and atom::typ.
Referenced by deallocateResidue().
void deallocateBond | ( | bond * | bnd | ) |
Definition at line 259 of file deallocate_structures.c.
References bond::typ.
Referenced by deallocateAtom(), and deallocateBondset().
void deallocateBondset | ( | bondset * | bst | ) |
Definition at line 265 of file deallocate_structures.c.
References deallocateBond(), and bondset::n.
void deallocateBondType | ( | bond_type * | btp | ) |
Definition at line 84 of file deallocate_structures.c.
Referenced by deallocateParameterSet().
void deallocateMolbond | ( | molbond * | mlb | ) |
Definition at line 282 of file deallocate_structures.c.
References molbond::typ.
Referenced by deallocateAssembly(), deallocateAtom(), and deallocateMolbondset().
void deallocateMolecule | ( | molecule * | mol | ) |
Definition at line 372 of file deallocate_structures.c.
References deallocateBoxinfo(), deallocateMolbondset(), deallocateResidue(), molecule::nBOX, molecule::nOD, molecule::nr, molecule::nrbs, and molecule::typ.
Referenced by deallocateDockinfo(), deallocateEnsemble(), deallocateFullAssembly(), and load_dlg_mol().
void deallocateResidue | ( | residue * | res | ) |
Definition at line 339 of file deallocate_structures.c.
References deallocateAtom(), deallocateMolbondset(), residue::na, residue::nbs, residue::nOD, and residue::typ.
Referenced by deallocateMolecule().