diff options
author | Josh Blum | 2012-08-28 23:05:41 -0700 |
---|---|---|
committer | Josh Blum | 2012-08-28 23:05:41 -0700 |
commit | ac3857575c4c762f9a18ee18889740d4360a9aa8 (patch) | |
tree | 4526f5647f2e2d93c21d12ae3c524fb7991745b3 /include/gnuradio/element.hpp | |
parent | 4044977deba6d64124763836d875b4da2b70eeaf (diff) | |
download | sandhi-ac3857575c4c762f9a18ee18889740d4360a9aa8.tar.gz sandhi-ac3857575c4c762f9a18ee18889740d4360a9aa8.tar.bz2 sandhi-ac3857575c4c762f9a18ee18889740d4360a9aa8.zip |
token work w/ messages to implement finite runs
Diffstat (limited to 'include/gnuradio/element.hpp')
-rw-r--r-- | include/gnuradio/element.hpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/gnuradio/element.hpp b/include/gnuradio/element.hpp index 71dc359..ad2e1e8 100644 --- a/include/gnuradio/element.hpp +++ b/include/gnuradio/element.hpp @@ -30,6 +30,7 @@ struct GR_RUNTIME_API Element : boost::shared_ptr<ElementImpl> //! Create an empty element Element(void); + //! Creates a new element given the name Element(const std::string &name); /*! @@ -40,10 +41,16 @@ struct GR_RUNTIME_API Element : boost::shared_ptr<ElementImpl> Element(const boost::shared_ptr<T> &elem) { *this = *elem; + weak_self = elem; } + //! for internal use only + boost::weak_ptr<Element> weak_self; + + //! An integer ID that is unique across the process long unique_id(void) const; + //! Get the name of this element std::string name(void) const; void set_output_signature(const gnuradio::IOSignature &sig); |