A decorator for helping deal with a hierarchy.
More...
#include <IMP/core/Hierarchy.h>
|
static Hierarchy | decorate_particle (::IMP::kernel::Particle *p, const HierarchyTraits &tr=get_default_traits()) |
|
static const DecoratorTraits & | get_default_decorator_traits () |
|
static const HierarchyTraits & | get_default_traits () |
| Get the default hierarchy traits.
|
|
static bool | get_is_setup (const IMP::kernel::ParticleAdaptor &p, const HierarchyTraits &tr=get_default_traits()) |
|
static bool | get_is_setup (kernel::Model *, kernel::ParticleIndex, HierarchyTraits=Hierarchy::get_default_traits()) |
|
static bool | particle_is_instance (IMP::kernel::Model *m, IMP::kernel::ParticleIndex pi, const HierarchyTraits &tr=get_default_traits()) |
|
static bool | particle_is_instance (::IMP::kernel::Particle *p, const HierarchyTraits &tr=get_default_traits()) |
|
static Hierarchy | setup_particle (IMP::kernel::ParticleAdaptor d, DecoratorTraits tr=get_default_decorator_traits()) |
|
static Hierarchy | setup_particle (kernel::Model *m, ParticleIndex pi, DecoratorTraits tr=get_default_decorator_traits()) |
|
static Hierarchy | setup_particle (IMP::kernel::ParticleAdaptor d, kernel::ParticleIndexes children, DecoratorTraits tr=get_default_decorator_traits()) |
|
static Hierarchy | setup_particle (kernel::Model *m, ParticleIndex pi, kernel::ParticleIndexes children, DecoratorTraits tr=get_default_decorator_traits()) |
|
static Hierarchy | setup_particle (kernel::Model *m, ParticleIndex pi, kernel::ParticlesTemp children, DecoratorTraits tr=get_default_decorator_traits()) |
|
static Hierarchy | setup_particle (IMP::kernel::ParticleAdaptor d, kernel::ParticlesTemp children, DecoratorTraits tr=get_default_decorator_traits()) |
|
static bool | get_is_setup (Particle *p) |
| Return true if the particle can be cast to the decorator. More...
|
|
See HierarchyTraits for an example of how to define a custom hierarchy and Hierarchy for a hierarchy for molecules.
- See Also
- HierarchyTraits
Definition at line 79 of file core/Hierarchy.h.
int IMP::core::Hierarchy::get_child_index |
( |
| ) |
const |
Check if the particle has the needed attributes for a cast to succeed
Definition at line 106 of file core/Hierarchy.h.
Hierarchy IMP::core::Hierarchy::get_parent |
( |
| ) |
const |
- Returns
- the parent particle, or Hierarchy() if it has no parent.
Definition at line 113 of file core/Hierarchy.h.
Setup the particle so it can be used with this decorator.
Definition at line 99 of file core/Hierarchy.h.
The documentation for this class was generated from the following file: