A decorator for helping deal with a generalized hierarchy.
More...
#include <IMP/core/Hierarchy.h>
A decorator for helping deal with a generalized hierarchy.
See HierarchyTraits for an example of how to define a custom hierarchy and IMP::atom::Hierarchy for a hierarchy for molecules.
- See also
- HierarchyTraits
Definition at line 86 of file core/Hierarchy.h.
|
| static TriggerKey | get_changed_key () |
| | The key used to signal to the Model that the Hierarchy has changed.
|
| 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::ParticleAdaptor &p, const HierarchyTraits &tr=get_default_traits()) |
| static bool | get_is_setup (Model *, ParticleIndex, HierarchyTraits=Hierarchy::get_default_traits()) |
| static Hierarchy | setup_particle (IMP::ParticleAdaptor d, DecoratorTraits tr=get_default_decorator_traits()) |
| static Hierarchy | setup_particle (IMP::ParticleAdaptor d, ParticleIndexes children, DecoratorTraits tr=get_default_decorator_traits()) |
| static Hierarchy | setup_particle (IMP::ParticleAdaptor d, ParticlesTemp children, DecoratorTraits tr=get_default_decorator_traits()) |
| static Hierarchy | setup_particle (Model *m, ParticleIndex pi, DecoratorTraits tr=get_default_decorator_traits()) |
| static Hierarchy | setup_particle (Model *m, ParticleIndex pi, ParticleIndexes children, DecoratorTraits tr=get_default_decorator_traits()) |
| static Hierarchy | setup_particle (Model *m, ParticleIndex pi, ParticlesTemp children, DecoratorTraits tr=get_default_decorator_traits()) |
◆ DecoratorTraits
◆ Hierarchy() [1/3]
| IMP::core::Hierarchy::Hierarchy |
( |
| ) |
|
◆ Hierarchy() [2/3]
◆ Hierarchy() [3/3]
◆ add_child()
| void IMP::core::Hierarchy::add_child |
( |
Hierarchy | h | ) |
const |
◆ add_child_at()
| void IMP::core::Hierarchy::add_child_at |
( |
Hierarchy | h, |
|
|
unsigned int | pos ) |
◆ clear_children()
| void IMP::core::Hierarchy::clear_children |
( |
| ) |
|
◆ get_changed_key()
| TriggerKey IMP::core::Hierarchy::get_changed_key |
( |
| ) |
|
|
static |
◆ get_child()
| Hierarchy IMP::core::Hierarchy::get_child |
( |
unsigned int | i | ) |
const |
◆ get_child_index() [1/2]
| int IMP::core::Hierarchy::get_child_index |
( |
| ) |
const |
◆ get_child_index() [2/2]
| ParticleIndex IMP::core::Hierarchy::get_child_index |
( |
unsigned int | i | ) |
const |
◆ get_children()
| GenericHierarchies IMP::core::Hierarchy::get_children |
( |
| ) |
const |
◆ get_children_indexes()
◆ get_decorator_traits()
| const DecoratorTraits & IMP::core::Hierarchy::get_decorator_traits |
( |
| ) |
const |
◆ get_default_decorator_traits()
| const DecoratorTraits & IMP::core::Hierarchy::get_default_decorator_traits |
( |
| ) |
|
|
static |
◆ get_default_traits()
Get the default hierarchy traits.
◆ get_is_setup() [1/2]
◆ get_is_setup() [2/2]
Check if the particle has the needed attributes for a cast to succeed
Definition at line 123 of file core/Hierarchy.h.
◆ get_number_of_children()
| unsigned int IMP::core::Hierarchy::get_number_of_children |
( |
| ) |
const |
◆ get_parent()
| Hierarchy IMP::core::Hierarchy::get_parent |
( |
| ) |
const |
- Returns
- the parent particle, or Hierarchy() if it has no parent.
Definition at line 134 of file core/Hierarchy.h.
◆ get_traits()
◆ remove_child() [1/2]
| void IMP::core::Hierarchy::remove_child |
( |
Hierarchy | h | ) |
|
◆ remove_child() [2/2]
| void IMP::core::Hierarchy::remove_child |
( |
unsigned int | i | ) |
|
◆ setup_particle() [1/6]
| Hierarchy IMP::core::Hierarchy::setup_particle |
( |
IMP::ParticleAdaptor | d, |
|
|
DecoratorTraits | tr = get_default_decorator_traits() ) |
|
static |
◆ setup_particle() [2/6]
◆ setup_particle() [3/6]
| Hierarchy IMP::core::Hierarchy::setup_particle |
( |
IMP::ParticleAdaptor | d, |
|
|
ParticlesTemp | children, |
|
|
DecoratorTraits | tr = get_default_decorator_traits() ) |
|
static |
◆ setup_particle() [4/6]
| Hierarchy IMP::core::Hierarchy::setup_particle |
( |
Model * | m, |
|
|
ParticleIndex | pi, |
|
|
DecoratorTraits | tr = get_default_decorator_traits() ) |
|
static |
◆ setup_particle() [5/6]
◆ setup_particle() [6/6]
| Hierarchy IMP::core::Hierarchy::setup_particle |
( |
Model * | m, |
|
|
ParticleIndex | pi, |
|
|
ParticlesTemp | children, |
|
|
DecoratorTraits | tr = get_default_decorator_traits() ) |
|
static |
The documentation for this class was generated from the following file: