|
IMP Reference Guide
develop.7482b7c7af, 2026/12/05
The Integrative Modeling Platform
|
A simple functor to count the number of particles in a hierarchy. More...
#include <IMP/core/Hierarchy.h>
A simple functor to count the number of particles in a hierarchy.
This is a good example of a simple HierarchyVisitor.
Definition at line 434 of file core/Hierarchy.h.
Public Member Functions | |
| unsigned int | get_count () const |
| Return how many nodes have been visited. | |
| bool | operator() (Hierarchy) override |
| Increment the counter. | |
| void | show (std::ostream &out=std::cout) const |
| IMP::core::HierarchyCounter::HierarchyCounter | ( | ) |
Definition at line 435 of file core/Hierarchy.h.
| unsigned int IMP::core::HierarchyCounter::get_count | ( | ) | const |
Return how many nodes have been visited.
Definition at line 443 of file core/Hierarchy.h.
|
overridevirtual |
Increment the counter.
Implements IMP::core::HierarchyVisitor.
Definition at line 438 of file core/Hierarchy.h.