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

A decorator for a particle which has bonds. More...

#include <IMP/atom/bond_decorators.h>

Inheritance diagram for IMP::atom::Bonded:

Detailed Description

A decorator for a particle which has bonds.

See also
Bond

Definition at line 89 of file bond_decorators.h.

Public Member Functions

 Bonded (::IMP::Model *m, ::IMP::ParticleIndex id)
 Bonded (const IMP::ParticleAdaptor &d)
Bond get_bond (unsigned int i) const
 Get a Bond of the ith bond.
ParticleIndexes get_bond_indexes () const
Bonded get_bonded (unsigned int i) const
 Get a Bonded of the ith bonded particle.
unsigned int get_number_of_bonds () const
void show (std::ostream &out=std::cout) const
Public Member Functions inherited from IMP::Decorator
bool get_is_valid () const
 Returns true if constructed with a non-default constructor.
Model * get_model () const
 Returns the Model containing the particle.
Particle * get_particle () const
 Returns the particle decorated by this decorator.
ParticleIndex get_particle_index () const
 Returns the particle index decorated by this decorator.
 operator Particle * () const
 operator ParticleIndex () const
Particle * operator-> () const

Static Public Member Functions

static bool get_is_setup (const IMP::ParticleAdaptor &p)
static bool get_is_setup (Model *m, ParticleIndex pi)
static Bonded setup_particle (IMP::ParticleAdaptor pa)
static Bonded setup_particle (Model *m, ParticleIndex pi)

Iterate through the bonds

BondIterator bonds_begin () const
BondIterator bonds_end () const

Iterate through the bondeds

BondedIterator bondeds_begin () const
BondedIterator bondeds_end () const

Additional Inherited Members

Protected Member Functions inherited from IMP::Decorator
 Decorator (Model *m, ParticleIndex pi)
 Decorator (ParticleAdaptor p)

Constructor & Destructor Documentation

◆ Bonded() [1/3]

IMP::atom::Bonded::Bonded ( )

Definition at line 112 of file bond_decorators.h.

◆ Bonded() [2/3]

IMP::atom::Bonded::Bonded ( ::IMP::Model * m,
::IMP::ParticleIndex id )

Definition at line 112 of file bond_decorators.h.

◆ Bonded() [3/3]

IMP::atom::Bonded::Bonded ( const IMP::ParticleAdaptor & d)
explicit

Definition at line 112 of file bond_decorators.h.

Member Function Documentation

◆ bondeds_begin()

BondedIterator IMP::atom::Bonded::bondeds_begin ( ) const

Definition at line 186 of file bond_decorators.h.

◆ bondeds_end()

BondedIterator IMP::atom::Bonded::bondeds_end ( ) const

Definition at line 189 of file bond_decorators.h.

◆ bonds_begin()

BondIterator IMP::atom::Bonded::bonds_begin ( ) const

Definition at line 169 of file bond_decorators.h.

◆ bonds_end()

BondIterator IMP::atom::Bonded::bonds_end ( ) const

Definition at line 172 of file bond_decorators.h.

◆ get_bond()

Bond IMP::atom::Bonded::get_bond ( unsigned int i) const

Get a Bond of the ith bond.

Returns
decorator of the ith child, or throw an exception if there is no such bond

Definition at line 134 of file bond_decorators.h.

Here is the call graph for this function:

◆ get_bond_indexes()

ParticleIndexes IMP::atom::Bonded::get_bond_indexes ( ) const

Definition at line 126 of file bond_decorators.h.

◆ get_bonded()

Bonded IMP::atom::Bonded::get_bonded ( unsigned int i) const

Get a Bonded of the ith bonded particle.

Returns
decorator of the ith child, or throw an exception if there is no such bond
Note
I don't entirely like having this here as it duplicates functionality available otherwise, however it is such a fundamental operation and kind of a pain to write. It also means that we could later pull the edge endpoints into the vertex if desired.

Definition at line 150 of file bond_decorators.h.

Here is the call graph for this function:

◆ get_is_setup() [1/2]

bool IMP::atom::Bonded::get_is_setup ( const IMP::ParticleAdaptor & p)
static

Definition at line 112 of file bond_decorators.h.

◆ get_is_setup() [2/2]

bool IMP::atom::Bonded::get_is_setup ( Model * m,
ParticleIndex pi )
static

Definition at line 115 of file bond_decorators.h.

◆ get_number_of_bonds()

unsigned int IMP::atom::Bonded::get_number_of_bonds ( ) const

Definition at line 121 of file bond_decorators.h.

◆ setup_particle() [1/2]

Bonded IMP::atom::Bonded::setup_particle ( IMP::ParticleAdaptor pa)
static
Returns
a Bonded object that decorates the particle specified by pa
See also
setup_particle(m, p)

Definition at line 113 of file bond_decorators.h.

◆ setup_particle() [2/2]

Bonded IMP::atom::Bonded::setup_particle ( Model * m,
ParticleIndex pi )
static
Returns
a Bonded object that decorates particle pi

Definition at line 113 of file bond_decorators.h.


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