#include <molecular_system.h>
Public Types | |
typedef System::Residue | Residue |
typedef Residue::Atom | Atom |
typedef std::map< std::pair < int, char >, Residue > | Residue_container |
typedef System::Model | Model |
typedef internal::Residues_iterator_from_chain < Self, true > | Residues_const_iterator |
typedef internal::Residues_iterator_from_chain < Self, false > | Residues_iterator |
typedef internal::Atoms_iterator_from_chain < Self, true > | Atoms_const_iterator |
typedef internal::Atoms_iterator_from_chain < Self, false > | Atoms_iterator |
Public Member Functions | |
template<class Line_format > | |
Molecular_chain (const Line_format &line_format, const std::string &line, const Model &mod) | |
Molecular_chain (char id, const Model &mod) | |
const Model & | model () const |
template<class Line_format > | |
Residue & | get_or_create_residue (const Line_format &line_format, const std::string &line) |
Residue & | get_or_create_residue (const std::string &resname, int ressn, char insc) |
const Residue & | get_residue (int ressn, char insc=' ') const |
const System::Atom | get_atom (int ressn, char insc, unsigned atom_sn) const |
size_t | number_of_residues () const |
size_t | number_of_atoms () const |
Residues_iterator | residues_begin () |
Residues_iterator | residues_end () |
Residues_const_iterator | residues_begin () const |
Residues_const_iterator | residues_end () const |
Atoms_iterator | atoms_begin () |
Atoms_iterator | atoms_end () |
Atoms_const_iterator | atoms_begin () const |
Atoms_const_iterator | atoms_end () const |
Static Public Member Functions | |
static const Residue & | dereference (typename Residue_container::const_iterator it) |
static Residue & | dereference (typename Residue_container::iterator it) |
A class representing a chain.
System | is a system (like ESBTL::Molecular_system for example). |
typedef Residue::Atom ESBTL::Molecular_chain< System >::Atom |
typedef System::Model ESBTL::Molecular_chain< System >::Model |
typedef System::Residue ESBTL::Molecular_chain< System >::Residue |
typedef std::map<std::pair<int,char>,Residue> ESBTL::Molecular_chain< System >::Residue_container |
ESBTL::Molecular_chain< System >::Molecular_chain | ( | const Line_format & | line_format, |
const std::string & | line, | ||
const Model & | mod | ||
) | [inline] |
ESBTL::Molecular_chain< System >::Molecular_chain | ( | char | id, |
const Model & | mod | ||
) | [inline] |
static Residue& ESBTL::Molecular_chain< System >::dereference | ( | typename Residue_container::iterator | it | ) | [inline, static] |
static const Residue& ESBTL::Molecular_chain< System >::dereference | ( | typename Residue_container::const_iterator | it | ) | [inline, static] |
const System::Atom ESBTL::Molecular_chain< System >::get_atom | ( | int | ressn, |
char | insc, | ||
unsigned | atom_sn | ||
) | const [inline] |
Residue& ESBTL::Molecular_chain< System >::get_or_create_residue | ( | const Line_format & | line_format, |
const std::string & | line | ||
) | [inline] |
Residue& ESBTL::Molecular_chain< System >::get_or_create_residue | ( | const std::string & | resname, |
int | ressn, | ||
char | insc | ||
) | [inline] |
const Residue& ESBTL::Molecular_chain< System >::get_residue | ( | int | ressn, |
char | insc = ' ' |
||
) | const [inline] |
const Model& ESBTL::Molecular_chain< System >::model | ( | ) | const [inline] |
size_t ESBTL::Molecular_chain< System >::number_of_atoms | ( | ) | const [inline] |
size_t ESBTL::Molecular_chain< System >::number_of_residues | ( | ) | const [inline] |