#include <molecular_system.h>
Public Types | |
typedef System::Atom | Atom |
typedef std::map< unsigned, Atom > | Atom_container |
typedef System::Chain | Chain |
typedef internal::Atoms_iterator_from_residue < Self, true > | Atoms_const_iterator |
typedef internal::Atoms_iterator_from_residue < Self, false > | Atoms_iterator |
Public Member Functions | |
const Chain & | chain () const |
char | chain_identifier () const |
template<class Line_format > | |
Molecular_residue (const Line_format &line_format, const std::string &line, const Chain &ch) | |
Molecular_residue (const std::string &resname, int index, char insc, const Chain &ch) | |
template<class Line_format > | |
void | add_atom (const Line_format &line_format, const std::string &line) |
size_t | number_of_atoms () const |
const Atom & | get_atom (unsigned sn) 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 Atom & | dereference (typename Atom_container::const_iterator it) |
static Atom & | dereference (typename Atom_container::iterator it) |
Protected Attributes | |
Atom_container | atom_container_ |
A class representing a residue.
System | is a system (like ESBTL::Molecular_system for example). |
typedef System::Atom ESBTL::Molecular_residue< System >::Atom |
typedef std::map<unsigned,Atom> ESBTL::Molecular_residue< System >::Atom_container |
typedef System::Chain ESBTL::Molecular_residue< System >::Chain |
ESBTL::Molecular_residue< System >::Molecular_residue | ( | const Line_format & | line_format, |
const std::string & | line, | ||
const Chain & | ch | ||
) | [inline] |
ESBTL::Molecular_residue< System >::Molecular_residue | ( | const std::string & | resname, |
int | index, | ||
char | insc, | ||
const Chain & | ch | ||
) | [inline] |
void ESBTL::Molecular_residue< System >::add_atom | ( | const Line_format & | line_format, |
const std::string & | line | ||
) | [inline] |
const Chain& ESBTL::Molecular_residue< System >::chain | ( | ) | const [inline] |
char ESBTL::Molecular_residue< System >::chain_identifier | ( | ) | const [inline] |
static const Atom& ESBTL::Molecular_residue< System >::dereference | ( | typename Atom_container::const_iterator | it | ) | [inline, static] |
static Atom& ESBTL::Molecular_residue< System >::dereference | ( | typename Atom_container::iterator | it | ) | [inline, static] |
const Atom& ESBTL::Molecular_residue< System >::get_atom | ( | unsigned | sn | ) | const [inline] |
size_t ESBTL::Molecular_residue< System >::number_of_atoms | ( | ) | const [inline] |
Atom_container ESBTL::Molecular_residue< System >::atom_container_ [protected] |