summaryrefslogtreecommitdiff
path: root/lib/hier_block.cpp
diff options
context:
space:
mode:
authorJosh Blum2012-08-31 23:46:37 -0700
committerJosh Blum2012-08-31 23:46:37 -0700
commit0a988ab506d3489e13222e9c7ddff889c6371ee6 (patch)
treea67d1a57a37a54bc1a471d1db58cdac3c79841b3 /lib/hier_block.cpp
parentf5284acf1321558e9409c9cae60045c14d5a52dd (diff)
downloadsandhi-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.cpp5
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);