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

Track how parts of the system were created. More...

#include <IMP/core/provenance.h>

Inheritance diagram for IMP::core::Provenance:

Detailed Description

Track how parts of the system were created.

Particles are linked with this decorator into a directed acyclic graph that tracks all IMP transformations of the system all the way back to raw inputs (such as PDB files).

Typically, part of an IMP::Model (usually an atom::Hierarchy particle) is decorated with Provenanced that points to the root of this graph.

Definition at line 31 of file provenance.h.

Public Member Functions

 Provenance (::IMP::Model *m, ::IMP::ParticleIndex id)
 Provenance (const IMP::ParticleAdaptor &d)
Provenance get_previous () const
void set_previous (Provenance p)
 Set the previous provenance.
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 Provenance setup_particle (IMP::ParticleAdaptor pa)
static Provenance setup_particle (Model *m, ParticleIndex pi)

Additional Inherited Members

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

Constructor & Destructor Documentation

◆ Provenance() [1/3]

IMP::core::Provenance::Provenance ( )

Definition at line 73 of file provenance.h.

◆ Provenance() [2/3]

IMP::core::Provenance::Provenance ( ::IMP::Model * m,
::IMP::ParticleIndex id )

Definition at line 73 of file provenance.h.

◆ Provenance() [3/3]

IMP::core::Provenance::Provenance ( const IMP::ParticleAdaptor & d)
explicit

Definition at line 73 of file provenance.h.

Member Function Documentation

◆ get_is_setup() [1/2]

bool IMP::core::Provenance::get_is_setup ( const IMP::ParticleAdaptor & p)
static

Definition at line 73 of file provenance.h.

◆ get_is_setup() [2/2]

bool IMP::core::Provenance::get_is_setup ( Model * m,
ParticleIndex pi )
static

Definition at line 40 of file provenance.h.

◆ get_previous()

Provenance IMP::core::Provenance::get_previous ( ) const
Returns
the previous provenance, or Provenance() if none exists.

Definition at line 45 of file provenance.h.

Here is the call graph for this function:

◆ set_previous()

void IMP::core::Provenance::set_previous ( Provenance p)

Set the previous provenance.

This can be used to show that a given part of the system was generated through multiple steps in order, for example by first being read from a PDB file, then sampled, filtered, and finally clustered.

Note
it is considered an error to try to set this more than once.

Definition at line 64 of file provenance.h.

Here is the call graph for this function:

◆ setup_particle() [1/2]

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

Definition at line 74 of file provenance.h.

◆ setup_particle() [2/2]

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

Definition at line 74 of file provenance.h.


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