IMP
2.2.0
The Integrative Modeling Platform
|
A decorator for helping deal with a hierarchy. More...
#include <IMP/core/Hierarchy.h>
Public Types | |
typedef HierarchyTraits | DecoratorTraits |
Public Member Functions | |
Hierarchy (const IMP::kernel::ParticleAdaptor &d, const HierarchyTraits &tr=get_default_traits()) | |
Hierarchy (::IMP::kernel::Model *m,::IMP::kernel::ParticleIndex id, const HierarchyTraits &tr=get_default_traits()) | |
void | add_child (Hierarchy h) const |
void | add_child_at (Hierarchy h, unsigned int pos) |
void | clear_children () |
Hierarchy | get_child (unsigned int i) const |
kernel::ParticleIndex | get_child_index (unsigned int i) const |
int | get_child_index () const |
GenericHierarchies | get_children () const |
kernel::ParticleIndexes | get_children_indexes () const |
const DecoratorTraits & | get_decorator_traits () const |
unsigned int | get_number_of_children () const |
Hierarchy | get_parent () const |
HierarchyTraits | get_traits () |
void | remove_child (unsigned int i) |
void | remove_child (Hierarchy h) |
void | show (std::ostream &out=std::cout) const |
Public Member Functions inherited from IMP::kernel::Decorator | |
Model * | get_model () const |
Returns the Model containing the particle. | |
Particle * | get_particle () const |
ParticleIndex | get_particle_index () const |
operator Particle * () const | |
operator ParticleIndex () const | |
Particle * | operator-> () const |
Additional Inherited Members | |
Protected Member Functions inherited from IMP::kernel::Decorator | |
Decorator (Model *m, ParticleIndex pi) | |
Decorator (ParticleAdaptor p) | |
See HierarchyTraits for an example of how to define a custom hierarchy and Hierarchy for a hierarchy for molecules.
Definition at line 79 of file core/Hierarchy.h.
|
static |
Definition at line 98 of file core/Hierarchy.h.
int IMP::core::Hierarchy::get_child_index | ( | ) | const |
Return i such that get_parent().get_child(i) == this
|
static |
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 |
Definition at line 113 of file core/Hierarchy.h.
|
static |
Setup the particle so it can be used with this decorator.
Definition at line 99 of file core/Hierarchy.h.
|
static |
Setup the particle and add children.
Definition at line 101 of file core/Hierarchy.h.