summaryrefslogtreecommitdiff
path: root/lib/element_impl.hpp
diff options
context:
space:
mode:
authorJosh Blum2013-04-10 00:21:31 -0700
committerJosh Blum2013-04-10 00:21:31 -0700
commitfb55fd6737902ed6270c2518bdc81a6971f9b3a1 (patch)
treec31dcb488f97f4c016ad326c726d5f42bcb6bca0 /lib/element_impl.hpp
parentca4819c56e7f085c1358cd75a9f4635ce3ae2f1f (diff)
downloadsandhi-fb55fd6737902ed6270c2518bdc81a6971f9b3a1.tar.gz
sandhi-fb55fd6737902ed6270c2518bdc81a6971f9b3a1.tar.bz2
sandhi-fb55fd6737902ed6270c2518bdc81a6971f9b3a1.zip
gras: formalize the weak container api w/ docs
address issue #69, we now have a set_container call, which is now formally part of the api. Anyone can call set_container for custom container types. GRAS supports shared ptr and pyobject out of the box.
Diffstat (limited to 'lib/element_impl.hpp')
-rw-r--r--lib/element_impl.hpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/element_impl.hpp b/lib/element_impl.hpp
index 869006e..3148d93 100644
--- a/lib/element_impl.hpp
+++ b/lib/element_impl.hpp
@@ -29,6 +29,7 @@ struct ElementImpl
std::string name;
long unique_id;
std::string id;
+ boost::shared_ptr<WeakContainer> weak_self;
//top block stuff
SharedThreadGroup thread_group;