IMP  2.1.1
The Integrative Modeling Platform
IMP::core::HierarchyCounter Struct Reference

A simple functor to count the number of particles in a hierarchy. More...

#include <IMP/core/Hierarchy.h>

+ Inheritance diagram for IMP::core::HierarchyCounter:

Public Member Functions

unsigned int get_count () const
 Return how many nodes have been visited.
 
bool operator() (Hierarchy)
 Increment the counter.
 
void show (std::ostream &out=std::cout) const
 

Detailed Description

This is a good example of a simple HierarchyVisitor.

See Also
Hierarchy

Definition at line 401 of file core/Hierarchy.h.


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