Public Types | Public Member Functions | Static Public Member Functions
ESBTL::Molecular_chain< System > Class Template Reference

#include <molecular_system.h>

List of all members.

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 Modelmodel () const
template<class Line_format >
Residueget_or_create_residue (const Line_format &line_format, const std::string &line)
Residueget_or_create_residue (const std::string &resname, int ressn, char insc)
const Residueget_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 Residuedereference (typename Residue_container::const_iterator it)
static Residuedereference (typename Residue_container::iterator it)

Detailed Description

template<class System>
class ESBTL::Molecular_chain< System >

A class representing a chain.

Template Parameters:
Systemis a system (like ESBTL::Molecular_system for example).

Member Typedef Documentation

template<class System>
typedef Residue::Atom ESBTL::Molecular_chain< System >::Atom
template<class System>
typedef System::Model ESBTL::Molecular_chain< System >::Model
template<class System>
typedef System::Residue ESBTL::Molecular_chain< System >::Residue
template<class System>
typedef std::map<std::pair<int,char>,Residue> ESBTL::Molecular_chain< System >::Residue_container

Constructor & Destructor Documentation

template<class System>
template<class Line_format >
ESBTL::Molecular_chain< System >::Molecular_chain ( const Line_format &  line_format,
const std::string &  line,
const Model mod 
) [inline]
template<class System>
ESBTL::Molecular_chain< System >::Molecular_chain ( char  id,
const Model mod 
) [inline]

Member Function Documentation

template<class System>
static Residue& ESBTL::Molecular_chain< System >::dereference ( typename Residue_container::iterator  it) [inline, static]
template<class System>
static const Residue& ESBTL::Molecular_chain< System >::dereference ( typename Residue_container::const_iterator  it) [inline, static]
template<class System>
const System::Atom ESBTL::Molecular_chain< System >::get_atom ( int  ressn,
char  insc,
unsigned  atom_sn 
) const [inline]
template<class System>
template<class Line_format >
Residue& ESBTL::Molecular_chain< System >::get_or_create_residue ( const Line_format &  line_format,
const std::string &  line 
) [inline]
template<class System>
Residue& ESBTL::Molecular_chain< System >::get_or_create_residue ( const std::string &  resname,
int  ressn,
char  insc 
) [inline]
template<class System>
const Residue& ESBTL::Molecular_chain< System >::get_residue ( int  ressn,
char  insc = ' ' 
) const [inline]
template<class System>
const Model& ESBTL::Molecular_chain< System >::model ( ) const [inline]
template<class System>
size_t ESBTL::Molecular_chain< System >::number_of_atoms ( ) const [inline]
template<class System>
size_t ESBTL::Molecular_chain< System >::number_of_residues ( ) const [inline]

The documentation for this class was generated from the following file: