#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< 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) |
| typedef std::vector<Model>::const_iterator dsrpdb::PDB::Const_models_iterator |
| typedef std::vector<Model>::iterator dsrpdb::PDB::Models_iterator |
| dsrpdb::PDB::PDB | ( | std::istream & | in, | |
| bool | print_errors = false | |||
| ) |
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.
| dsrpdb::PDB::PDB | ( | ) |
Construct a empty PDB.
| void dsrpdb::PDB::write | ( | std::ostream & | out | ) | const |
| const Model& dsrpdb::PDB::model | ( | unsigned int | i | ) | const |
| Model& dsrpdb::PDB::model | ( | unsigned int | i | ) |
get the ith model
| void dsrpdb::PDB::new_model | ( | const Model & | m | ) |
| size_t dsrpdb::PDB::number_of_models | ( | ) | const |
| Header_iterator dsrpdb::PDB::header_begin | ( | ) | const |
| Header_iterator dsrpdb::PDB::header_end | ( | ) | const |
| void dsrpdb::PDB::set_header | ( | It | b, | |
| It | e | |||
| ) | [inline] |