diff options
author | Josh Blum | 2013-03-28 01:13:21 -0700 |
---|---|---|
committer | Josh Blum | 2013-03-28 01:13:21 -0700 |
commit | 56a17f61079869830483709f5f6366923c735d7c (patch) | |
tree | dca3ccb2080e0c8f56472177d527064d8528797f /lib | |
parent | 3315ba892a865644ebfbd7d00d7a138a05bb76a8 (diff) | |
download | sandhi-56a17f61079869830483709f5f6366923c735d7c.tar.gz sandhi-56a17f61079869830483709f5f6366923c735d7c.tar.bz2 sandhi-56a17f61079869830483709f5f6366923c735d7c.zip |
gras: virtual destructors for all but Element #67
Diffstat (limited to 'lib')
-rw-r--r-- | lib/block.cpp | 5 | ||||
-rw-r--r-- | lib/element.cpp | 5 | ||||
-rw-r--r-- | lib/hier_block.cpp | 5 | ||||
-rw-r--r-- | lib/top_block.cpp | 5 |
4 files changed, 20 insertions, 0 deletions
diff --git a/lib/block.cpp b/lib/block.cpp index d2f0a0d..5bb959b 100644 --- a/lib/block.cpp +++ b/lib/block.cpp @@ -46,6 +46,11 @@ Block::Block(const std::string &name): this->set_buffer_affinity(-1); } +Block::~Block(void) +{ + //NOP +} + void ElementImpl::block_cleanup(void) { //wait for actor to chew through enqueued messages diff --git a/lib/element.cpp b/lib/element.cpp index 4adc92c..f291310 100644 --- a/lib/element.cpp +++ b/lib/element.cpp @@ -26,6 +26,11 @@ Element::Element(const std::string &name) if (GENESIS) std::cerr << "New element: " << to_string() << std::endl; } +Element::~Element(void) +{ + //NOP +} + ElementImpl::~ElementImpl(void) { if (this->executor) this->top_block_cleanup(); diff --git a/lib/hier_block.cpp b/lib/hier_block.cpp index b7ffe4c..4c0aef3 100644 --- a/lib/hier_block.cpp +++ b/lib/hier_block.cpp @@ -18,6 +18,11 @@ HierBlock::HierBlock(const std::string &name): (*this)->topology = boost::shared_ptr<Apology::Topology>(new Apology::Topology()); } +HierBlock::~HierBlock(void) +{ + //NOP +} + void ElementImpl::hier_block_cleanup(void) { this->topology->clear_all(); diff --git a/lib/top_block.cpp b/lib/top_block.cpp index 10d5ef2..5370920 100644 --- a/lib/top_block.cpp +++ b/lib/top_block.cpp @@ -30,6 +30,11 @@ TopBlock::TopBlock(const std::string &name): << std::flush; } +TopBlock::~TopBlock(void) +{ + //NOP +} + void ElementImpl::top_block_cleanup(void) { this->pre_post_all_set_prio(); |