22#ifndef INCLUDED_GR_RUNTIME_SPTR_MAGIC_H
23#define INCLUDED_GR_RUNTIME_SPTR_MAGIC_H
26#include <boost/shared_ptr.hpp>
39 static boost::shared_ptr<gr::basic_block> fetch_initial_sptr(
gr::basic_block* p);
50boost::shared_ptr<T> get_initial_sptr(T* p)
52 return boost::dynamic_pointer_cast<T, gr::basic_block>(
53 detail::sptr_magic::fetch_initial_sptr(p));
Definition: sptr_magic.h:37
The abstract base class for all signal processing blocks.
Definition: basic_block.h:60
Hierarchical container class for gr::block's and gr::hier_block2's.
Definition: hier_block2.h:46
#define GR_RUNTIME_API
Definition: gnuradio-runtime/include/gnuradio/api.h:30
Definition: sptr_magic.h:33
Include this header to use the message passing features.
Definition: basic_block.h:45