IMP logo
Public Member Functions
IMP::core::HierarchyCounter Struct Reference

Detailed Description

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

This is a good example of a simple HierarchyVisitor.

See also:
Hierarchy
+ Inheritance diagram for IMP::core::HierarchyCounter:

List of all members.

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

Member Function Documentation

unsigned int IMP::core::HierarchyCounter::get_count ( ) const

Return how many nodes have been visited.

bool IMP::core::HierarchyCounter::operator() ( Hierarchy  )
virtual

Increment the counter.

Implements IMP::core::HierarchyVisitor.


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

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