#include <PDB.h>
See pdb_split.cc for an example manipulating a PDB by splitting it into parts.
pdb_align.cc, pdb_align_points.cc, pdb_distance.cc, and pdb_split.cc.
Definition at line 36 of file PDB.h.
Public Types | |
typedef std::vector< std::string >::const_iterator | Header_iterator |
typedef std::vector< Model >::const_iterator | Const_models_iterator |
typedef std::vector< Model >::iterator | Models_iterator |
Public Member Functions | |
PDB (std::istream &in, bool print_errors=false) | |
PDB () | |
void | write (std::ostream &out) const |
const Model & | model (unsigned int i) const |
Model & | model (unsigned int i) |
void | new_model (const Model &m) |
size_t | number_of_models () const |
Header_iterator | header_begin () const |
Header_iterator | header_end () const |
template<class It> | |
void | set_header (It b, It e) |
Const_models_iterator | models_begin () const |
Const_models_iterator | models_end () const |
Models_iterator | models_begin () |
Models_iterator | models_end () |
Protected Attributes | |
std::vector< std::string > | header_ |
std::vector< Model > | models_ |
|
iterator for models
|
|
non-const iterator for models
|
|
Read a pdb file from the stream. The optional bool controls whether errors (such as unparsable PDB lines). Set it to false to disable printing errors. |
|
Construct a empty PDB.
|
|
iterator through the lines of the header
|
|
end iterator
|
|
get the ith model
|
|
get the ith model
|
|
set a model
|
|
how many models are there?
|
|
Set the header.
Definition at line 67 of file PDB.h. References header_. |
|
Write a pdb file to the stream.
|