IMP logo
IMP Reference Guide  develop.7482b7c7af, 2026/12/05
The Integrative Modeling Platform
Creating and restraining bonds

A set of classes and functions for manipulating bonds. More...

Detailed Description

A set of classes and functions for manipulating bonds.

Classes

class  IMP::atom::Bond
 A decorator for wrapping a particle representing a molecular bond. More...
class  IMP::atom::Bonded
 A decorator for a particle which has bonds. More...
class  IMP::atom::BondedPairFilter
 A filter for bonds. More...
class  IMP::atom::BondEndpointsRefiner
 Return the endpoints of a bond. More...
class  IMP::atom::BondPairContainer
 A container that returns pairs of the endpoints of the bonds. More...
class  IMP::atom::BondSingletonScore
 Score the bond based on a UnaryFunction,. More...

Functions

Bond IMP::atom::create_bond (Bonded a, Bonded b, Bond o)
 Connect the two wrapped particles by a custom bond.
Bond IMP::atom::create_bond (Bonded a, Bonded b, Int t)
 Connect the two wrapped particles by a bond.
Bond IMP::atom::create_custom_bond (Bonded a, Bonded b, Float length, Float stiffness=-1)
 Connect the two wrapped particles by a custom bond.
void IMP::atom::destroy_bond (Bond b)
 Destroy the bond connecting two particles.
Bond IMP::atom::get_bond (Bonded a, Bonded b)
 Get the bond between two particles.

Function Documentation

◆ create_bond() [1/2]

Bond IMP::atom::create_bond ( Bonded a,
Bonded b,
Bond o )

Connect the two wrapped particles by a custom bond.

Create a bond by copying the information from the other bond

See also
Bond
Bonded

Definition at line 256 of file bond_decorators.h.

Here is the call graph for this function:

◆ create_bond() [2/2]

Bond IMP::atom::create_bond ( Bonded a,
Bonded b,
Int t )

Connect the two wrapped particles by a bond.

Parameters
[in]aThe first Particle as a Bonded
[in]bThe second Particle as a Bonded
[in]tThe type to use for the bond
Returns
Bond of the bond Particle.
See also
Bond
Bonded
Here is the call graph for this function:

◆ create_custom_bond()

Bond IMP::atom::create_custom_bond ( Bonded a,
Bonded b,
Float length,
Float stiffness = -1 )

Connect the two wrapped particles by a custom bond.

Parameters
[in]aThe first Particle as a Bonded
[in]bThe second Particle as a Bonded
[in]lengthThe length of the bond.
[in]stiffnessThe stiffness of the bond.
Returns
Bond of the bond Particle.
See also
Bond
Bonded

Definition at line 237 of file bond_decorators.h.

Here is the call graph for this function:

◆ destroy_bond()

void IMP::atom::destroy_bond ( Bond b)

Destroy the bond connecting two particles.

Parameters
[in]bThe bond.
See also
Bond
Bonded
Here is the call graph for this function:

◆ get_bond()

Bond IMP::atom::get_bond ( Bonded a,
Bonded b )

Get the bond between two particles.

Bond() is returned if the particles are not bonded.

See also
Bond
Bonded
Here is the call graph for this function: