IMP logo
IMP Reference Guide  develop.7482b7c7af, 2026/12/05
The Integrative Modeling Platform
IMP::atom::CHARMMResidueTopology Class Reference

The topology of a single residue in a model. More...

#include <IMP/atom/charmm_topology.h>

Inheritance diagram for IMP::atom::CHARMMResidueTopology:

Detailed Description

The topology of a single residue in a model.

Each CHARMMResidueTopology object can represent an 'unknown' residue (containing no atoms or bonds) or is a copy of an existing CHARMMIdealResidueTopology. Optionally, patches can be applied to residues (see CHARMMPatch::apply()) to add N- or C-termini, disulfide bridges, sidechain modifications, etc.

Definition at line 456 of file charmm_topology.h.

Public Member Functions

 CHARMMResidueTopology (CHARMMIdealResidueTopology *ideal)
 Construct residue topology as a copy of an existing topology.
 CHARMMResidueTopology (ResidueType type)
 Create an empty topology, containing no atoms or bonds.
bool get_patched () const
virtual std::string get_type_name () const override
virtual ::IMP::VersionInfo get_version_info () const override
 Get information about the module and version of the object.
void set_patched (bool patched)
Public Member Functions inherited from IMP::atom::CHARMMIdealResidueTopology
 CHARMMIdealResidueTopology (ResidueType type)
 CHARMMIdealResidueTopology (std::string type)
std::string get_default_first_patch () const
std::string get_default_last_patch () const
void remove_atom (std::string name)
 Remove the named atom.
void set_default_first_patch (std::string patch)
void set_default_last_patch (std::string patch)
Public Member Functions inherited from IMP::atom::CHARMMResidueTopologyBase
void add_angle (const CHARMMAngle &bond)
void add_atom (const CHARMMAtomTopology &atom)
void add_bond (const CHARMMBond &bond)
void add_dihedral (const CHARMMDihedral &bond)
void add_improper (const CHARMMDihedral &bond)
void add_internal_coordinate (const CHARMMInternalCoordinate &ic)
const CHARMMAngle & get_angle (unsigned int index) const
const CHARMMAtomTopology & get_atom (AtomType type) const
const CHARMMAtomTopology & get_atom (std::string name) const
const CHARMMAtomTopology & get_atom (unsigned int i) const
const CHARMMBond & get_bond (unsigned int index) const
const CHARMMDihedral & get_dihedral (unsigned int index) const
const CHARMMDihedral & get_improper (unsigned int index) const
const CHARMMInternalCoordinate & get_internal_coordinate (unsigned int index) const
unsigned int get_number_of_angles () const
unsigned int get_number_of_atoms () const
unsigned int get_number_of_bonds () const
unsigned int get_number_of_dihedrals () const
unsigned int get_number_of_impropers () const
unsigned int get_number_of_internal_coordinates () const
std::string get_type () const
Public Member Functions inherited from IMP::Object
CheckLevel get_check_level () const
 get_derived_object (self)
 Return this object cast to the most derived subclass.
LogLevel get_log_level () const
void set_check_level (CheckLevel l)
void set_log_level (LogLevel l)
 Set the logging level used in this object.
const std::string & get_name () const
 Get the (not necessarily unique) name of this object.
void set_name (std::string name)
void set_was_used (bool tf) const
void show (std::ostream &out=std::cout) const
virtual void clear_caches ()

Additional Inherited Members

Protected Member Functions inherited from IMP::atom::CHARMMResidueTopologyBase
 CHARMMResidueTopologyBase (std::string type)
Protected Member Functions inherited from IMP::Object
 Object (std::string name)
 Construct an object with the given name.
virtual void do_destroy ()
Protected Attributes inherited from IMP::atom::CHARMMResidueTopologyBase
CHARMMAngles angles_
Vector< CHARMMAtomTopology > atoms_
CHARMMBonds bonds_
CHARMMDihedrals dihedrals_
CHARMMDihedrals impropers_
CHARMMInternalCoordinates internal_coordinates_

Constructor & Destructor Documentation

◆ CHARMMResidueTopology() [1/2]

IMP::atom::CHARMMResidueTopology::CHARMMResidueTopology ( ResidueType type)

Create an empty topology, containing no atoms or bonds.

Definition at line 461 of file charmm_topology.h.

◆ CHARMMResidueTopology() [2/2]

IMP::atom::CHARMMResidueTopology::CHARMMResidueTopology ( CHARMMIdealResidueTopology * ideal)

Construct residue topology as a copy of an existing topology.

Definition at line 465 of file charmm_topology.h.

◆ ~CHARMMResidueTopology()

virtual IMP::atom::CHARMMResidueTopology::~CHARMMResidueTopology ( )
virtual

Definition at line 496 of file charmm_topology.h.

Member Function Documentation

◆ get_patched()

bool IMP::atom::CHARMMResidueTopology::get_patched ( ) const

Definition at line 493 of file charmm_topology.h.

◆ get_type_name()

virtual std::string IMP::atom::CHARMMResidueTopology::get_type_name ( ) const
overridevirtual

Reimplemented from IMP::atom::CHARMMIdealResidueTopology.

Definition at line 496 of file charmm_topology.h.

◆ get_version_info()

virtual ::IMP::VersionInfo IMP::atom::CHARMMResidueTopology::get_version_info ( ) const
overridevirtual

Get information about the module and version of the object.

Reimplemented from IMP::atom::CHARMMIdealResidueTopology.

Definition at line 496 of file charmm_topology.h.

Here is the call graph for this function:

◆ set_patched()

void IMP::atom::CHARMMResidueTopology::set_patched ( bool patched)

Definition at line 494 of file charmm_topology.h.


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