IMP logo

IMP::atom::Bonded Class Reference
[Creating and restraining bonds]


Detailed Description

A decorator for a particle which has bonds.

See also:
Bond
Inheritance diagram for IMP::atom::Bonded:

Inheritance graph
[legend]

Public Member Functions

 Bonded (::IMP::Particle *p)
Bond get_bond (unsigned int i) const
 Get a Bond of the ith bond.
Bonded get_bonded (unsigned int i) const
 Get a Bonded of the ith bonded particle.
unsigned int get_number_of_bonds () const
Iterate through the bondeds
BondedIterator bondeds_begin () const
BondedIterator bondeds_end () const
Iterate through the bonds
BondIterator bonds_begin () const
BondIterator bonds_end () const

Static Public Member Functions

static Bonded decorate_particle (::IMP::Particle *p)
static bool particle_is_instance (Particle *p)
 return true if it is a bonded particle
static Bonded setup_particle (Particle *p)

Related Functions

(Note that these are not member functions.)

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

Member Function Documentation

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

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.

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


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

Generated on Mon Mar 8 23:08:48 2010 for IMP by doxygen 1.5.8