IMP logo
Public Member Functions
IMP::core::HierarchyTraits Class Reference

Detailed Description

Define the type for a type of hierarchy.

The hierarchy class is identified by the passed string so two hierarchies created with the same initialization string will be the same.

This example shows how to make and use a custom hierarchy:

tr= IMP.core.HierarchyTraits("my hierarchy")
pd= IMP.core.Hierarchy.setup_particle(parent_particle, tr)
for p in children_particles:
pd.add_child(cd)
pd.show()
See also:
Hierarchy

Examples: custom hierarchy

List of all members.

Public Member Functions

 HierarchyTraits (std::string name)
 Create a HierarchyTraits with the given name.
ParticlesKey get_children_key () const
ParticleKey get_parent_key () const
bool operator== (const HierarchyTraits &o) const
void show (std::ostream &out=std::cout) const

Constructor & Destructor Documentation

IMP::core::HierarchyTraits::HierarchyTraits ( std::string  name)

Create a HierarchyTraits with the given name.


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

Generated on Tue May 22 2012 23:33:30 for IMP by doxygen 1.8.1