#include <occurrences.hh>
Public Member Functions | |
Occurrences (Tree root) | |
Count the number of occurrences of each subtree of root. | |
int | getCount (Tree t) |
Get the number of occurrences of t. | |
Private Member Functions | |
Tree | specificKey (Tree root) |
Creates a specific property key for occurrences count in root. | |
void | countOccurrences (Tree t) |
Increment the occurrences count of t and its subtrees. | |
void | setCount (Tree t, int c) |
Set the number of occurrences of t. |
Definition at line 32 of file occurrences.hh.