diff options
author | Josh Blum | 2012-08-31 23:46:37 -0700 |
---|---|---|
committer | Josh Blum | 2012-08-31 23:46:37 -0700 |
commit | 0a988ab506d3489e13222e9c7ddff889c6371ee6 (patch) | |
tree | a67d1a57a37a54bc1a471d1db58cdac3c79841b3 /lib/hier_block.cpp | |
parent | f5284acf1321558e9409c9cae60045c14d5a52dd (diff) | |
download | sandhi-0a988ab506d3489e13222e9c7ddff889c6371ee6.tar.gz sandhi-0a988ab506d3489e13222e9c7ddff889c6371ee6.tar.bz2 sandhi-0a988ab506d3489e13222e9c7ddff889c6371ee6.zip |
added comments and some cleanup code
Diffstat (limited to 'lib/hier_block.cpp')
-rw-r--r-- | lib/hier_block.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/hier_block.cpp b/lib/hier_block.cpp index 47be7d0..3603612 100644 --- a/lib/hier_block.cpp +++ b/lib/hier_block.cpp @@ -32,6 +32,11 @@ HierBlock::HierBlock(const std::string &name): (*this)->topology = tsbe::Topology(config); } +void ElementImpl::hier_block_cleanup(void) +{ + this->children.clear(); +} + void HierBlock::connect(const Element &elem) { (*this)->topology.add_topology(elem->topology); |