16 #ifndef TORC_GENERIC_PRUNING_HPP
17 #define TORC_GENERIC_PRUNING_HPP
47 #endif // TORC_GENERIC_PRUNING_HPP
void prune(RootSharedPtr &inRootPtr)
Prune all unused cells and libraries from the given root.
void collectCells(ViewSharedPtr &inViewPtr, CellUsageMap &inoutCellUsageMap)
Recursively collect and count all cells used in the given view. The CellUsageMap must already be ini...
boost::shared_ptr< View > ViewSharedPtr
std::map< CellSharedPtr, int > CellUsageMap
A map from cell shared pointer to usage count.
boost::shared_ptr< Root > RootSharedPtr