Bioplib
Protein Structure C Library
|
Create an array of pointers into a PDB linked list. More...
#include <math.h>
#include <stdlib.h>
#include "MathType.h"
#include "SysDefs.h"
#include "pdb.h"
#include "macros.h"
Go to the source code of this file.
Functions | |
PDB ** | blIndexPDB (PDB *pdb, int *natom) |
PDB ** | blIndexAtomNumbersPDB (PDB *pdb, int *indexSize) |
Create an array of pointers into a PDB linked list.
This code is NOT IN THE PUBLIC DOMAIN, but it may be copied according to the conditions laid out in the accompanying file COPYING.DOC.
The code may be modified as required, but any modifications must be documented so that the person responsible can be identified.
The code may not be sold commercially or included as part of a commercial product except as described in the file COPYING.DOC.
IndexPDB() creates an array of pointers to each PDB record in a linked list. This allows random access to atoms without having to step through the PDB linked list.
pdb.h must be included before using this routine.
Definition in file IndexPDB.c.
[in] | *pdb | PDB linked list |
[out] | *indexSize | Index size |
Creates an array of pointers to PDB from a linked list. This is used to allow array style access to items in the linked list by atom number: e.g. (indx[23])->x will give the x coordinate of atom number 23
Definition at line 156 of file IndexPDB.c.
[in] | *pdb | Pointer to the start of a PDB linked list. |
[out] | *natom | Number of atoms in the PDB linked list. |
Creates an array of pointers to PDB from a linked list. This is used to allow array style access to items in the linked list: e.g. (indx[23])->x will give the x coordinate of the 23rd item
Definition at line 117 of file IndexPDB.c.