IMP logo

Hierarchy.h File Reference

Decorator for helping deal with a hierarchy. More...

Include dependency graph for core/Hierarchy.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.


Data Structures

class  IMP::core::GenericHierarchies
class  IMP::core::GenericHierarchiesTemp
class  IMP::core::Hierarchy
 A decorator for helping deal with a hierarchy. More...
class  IMP::core::HierarchyCounter
 A simple functor to count the number of particles in a hierarchy. More...
struct  IMP::core::HierarchyPrinter< PD >
 A simple visitor which pretty-prints the hierarchy. More...
class  IMP::core::HierarchyTraits
 Define the type for a type of hierarchy. More...
class  IMP::core::HierarchyVisitor
 A visitor for traversal of a hierarchy. More...
class  IMP::core::ModifierVisitor
 A which applies a singleton modifier to each Particle in a hierarchy. More...

Namespaces

namespace  IMP
 The IMP kernel provides base classes and key shared functionality.
namespace  IMP::core
 This module contains basic functionality that is expected to be used by a wide variety of IMP users.

Functions

template<class HD , class F >
HD IMP::core::breadth_first_find (HD h, F f)
 Find the first node which matches some criteria.
template<class HD , class F >
IMP::core::breadth_first_traversal (HD d, F f)
 Apply the visitor to each particle, breadth first.
template<class HD , class F >
IMP::core::breadth_first_traversal_with_data (HD d, F f, typename F::result_type i)
 Apply functor F to each particle, traversing the hierarchy breadth first.
template<class HD , class F >
IMP::core::depth_first_traversal (HD d, F f)
 Apply functor F to each particle, traversing the hierarchy depth first.
template<class HD , class F >
IMP::core::depth_first_traversal_with_data (HD d, F f, typename F::result_type i)
 Apply functor F to each particle, traversing the hierarchy depth first.
template<class Out , class F >
Out IMP::core::gather (Hierarchy h, F f, Out out)
 Gather all the particles in the hierarchy which meet some criteria.
template<class Out , class K , class V >
Out IMP::core::gather_by_attribute (Hierarchy h, K k, V v, Out out)
 Gather all the particles in the hierarchy which match on an attribute.
template<class Out , class K0 , class V0 , class K1 , class V1 >
Out IMP::core::gather_by_attributes (Hierarchy h, K0 k0, V0 v0, K1 k1, V1 v1, Out out)
 Gather all the particles in the hierarchy which match on two attributes.
GenericHierarchiesTemp IMP::core::get_all_descendants (Hierarchy mhd)
 Get all the particles in the subtree.
GenericHierarchiesTemp IMP::core::get_internal (Hierarchy mhd)
 Get all the non-leaves of the bit of hierarchy.
GenericHierarchiesTemp IMP::core::get_leaves (Hierarchy mhd)
 Get all the leaves of the bit of hierarchy.
Hierarchy IMP::core::get_root (Hierarchy h)
 Return the root of the hierarchy.
template<class ND >
std::ostream & IMP::core::show (Hierarchy h, std::ostream &out=std::cout, unsigned int max_depth=std::numeric_limits< unsigned int >::max())
 Print the hierarchy using a given decorator as to display each node.

Detailed Description

Decorator for helping deal with a hierarchy.

Copyright 2007-2010 IMP Inventors. All rights reserved.


Generated on Mon Mar 8 23:05:39 2010 for IMP by doxygen 1.5.8