#include <polymer.hpp>
Inheritance diagram for Polymer:
This class is a Sequence of objects that adhere to the MonomerConcept, (just like PolymerStructure), with the addition of methods thast allow iteration over atoms (as if the container were an AtomicStructure). This combination of features makes sense biochemically -- every polymer is a a chain of atoms, conceptually grouped into monomers.
More specifically, Polymer implements the ChainConcept and the AtomicStructureConcept. Thus, you can iterate over atoms and get/set the chain ID of a Polymer, but you cannot insert or delete individual atoms from a Polymer. As with the PolymerStructure, though, you may insert and delete monomer objects from a Polymer.
Reimplemented from PolymerStructure.
typedef base_type ::dictionary dictionary |
Reimplemented from PolymerStructure.
Reimplemented from PolymerStructure.
typedef base_type ::value_type value_type |
Reimplemented from PolymerStructure.
Reimplemented from PolymerStructure.
typedef base_type ::const_iterator const_iterator |
Reimplemented from PolymerStructure.
typedef base_type ::reverse_iterator reverse_iterator |
Reimplemented from PolymerStructure.
Reimplemented from PolymerStructure.
Reimplemented from PolymerStructure.
typedef base_type ::const_reference const_reference |
Reimplemented from PolymerStructure.
Reimplemented from PolymerStructure.
typedef base_type ::const_pointer const_pointer |
Reimplemented from PolymerStructure.
typedef base_type ::difference_type difference_type |
Reimplemented from PolymerStructure.
Reimplemented from PolymerStructure.
typedef base_type ::monomer_type monomer_type |
Reimplemented from PolymerStructure.
typedef base_type ::monomer_iterator monomer_iterator |
Reimplemented from PolymerStructure.
Reimplemented from PolymerStructure.
Reimplemented from PolymerStructure.
Reimplemented from PolymerStructure.
typedef base_type ::structure_id_type structure_id_type |
Reimplemented from PolymerStructure.
typedef base_type ::monomer_id_type monomer_id_type |
Reimplemented from PolymerStructure.
typedef monomer_type::atom_type atom_type |
The atom type (the type of the atom held by the monomer objects).
typedef atom_type::id_type atom_id_type |
THe atom ID type.
typedef UTILITY:: GroupedElementIterator<monomer_iterator, typename monomer_type::atom_iterator, monomer_type, atom_type> atom_iterator |
typedef boost::reverse_iterator<atom_iterator> reverse_atom_iterator |
typedef UTILITY:: GroupedElementIterator<const_monomer_iterator, typename monomer_type::const_atom_iterator, monomer_type const, atom_type const> const_atom_iterator |
typedef boost::reverse_iterator<const_atom_iterator> const_reverse_atom_iterator |
Polymer | ( | size_type | s = 0 , |
|
monomer_type const & | m = monomer_type() , |
|||
char | chain_id = ' ' , |
|||
structure_id_type | t = structure_id_type() | |||
) |
Polymer | ( | MonomerIterator | first, | |
MonomerIterator | last, | |||
char | chain_id = ' ' , |
|||
structure_id_type | t = structure_id_type() | |||
) |
Construct a Polymer from a range of monomer objects.
first | The start iterator of the monomer range. | |
last | The end iterator of the monomer range. | |
chain_id | The chain ID value. | |
t | The structure ID value (currently unused). |
virtual ~Polymer | ( | ) | [virtual] |
atom_iterator structure_begin | ( | ) |
Get an atom_iterator (start of range).
const_atom_iterator structure_begin | ( | ) | const |
Get an atom_iterator (start of range).
reverse_atom_iterator structure_rbegin | ( | ) |
Get a reverse_atom_iterator.
const_reverse_atom_iterator structure_rbegin | ( | ) | const |
Get a reverse_atom_iterator.
atom_iterator structure_end | ( | ) |
Get a reverse_atom_iterator (end of range).
const_atom_iterator structure_end | ( | ) | const |
Get an atom_iterator (end of range).
reverse_atom_iterator structure_rend | ( | ) |
Get a reverse_atom_iterator (end of range).
const_reverse_atom_iterator structure_rend | ( | ) | const |
Get a reverse_atom_iterator (end of range).
size_type num_atoms | ( | ) | const |
virtual std::ostream& print | ( | std::ostream & | os, | |
size_type | first_atom_num = 1 , |
|||
size_type | first_monomer_num = 1 | |||
) | const [virtual] |
Print the atoms in a Polymer to an output stream.
char chain_id | ( | ) | const |
Get the current chain ID value.
void set_chain_id | ( | char | chain_id | ) |
Set the current chain ID value.
void insert | ( | iterator | p, | |
InputIterator | i, | |||
InputIterator | j | |||
) |
Reimplemented from BTKSequence< MonomerType, StorageStrategy >.
virtual dictionary const& get_dictionary | ( | ) | const [virtual] |
Implements PolymerStructure.
virtual dictionary& get_dictionary | ( | ) | [virtual] |
Implements PolymerStructure.
void swap | ( | self_type & | b | ) |