GLYLIB  0.3.0b
MEMORY_MANAGEMENT

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)

Detailed Description

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


Function Documentation

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().

Here is the call graph for this function:

Here is the caller graph for this function:

void deallocateBond ( bond bnd)

Definition at line 259 of file deallocate_structures.c.

References bond::typ.

Referenced by deallocateAtom(), and deallocateBondset().

Here is the caller graph for this function:

void deallocateBondset ( bondset bst)

Definition at line 265 of file deallocate_structures.c.

References deallocateBond(), and bondset::n.

Here is the call graph for this function:

void deallocateBondType ( bond_type btp)

Definition at line 84 of file deallocate_structures.c.

Referenced by deallocateParameterSet().

Here is the caller graph for this function:

void deallocateMolbond ( molbond mlb)

Definition at line 282 of file deallocate_structures.c.

References molbond::typ.

Referenced by deallocateAssembly(), deallocateAtom(), and deallocateMolbondset().

Here is the caller graph for this function:

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().

Here is the call graph for this function:

Here is the caller graph for this function:

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().

Here is the call graph for this function:

Here is the caller graph for this function:

 All Classes Files Functions Variables Typedefs Defines