In GR 3.7, the shared pointer is usually blockname::sptr;
I can't really point you to a very good example, but when you call
top_block.connect(src, sink) in C++, you're giving it spointers :)
As I said, whenever you make a block, you actually get a shared
pointer to that instance, and not the object itself.
On 14.11.2013 15:39, M. Ranganathan
wrote:
Marcus,
Thanks for your reply. What will the shared pointer be
called. I see stuff like this in the code:
GR_SWIG_BLOCK_MAGIC2(uhd, usrp_source)
GR_SWIG_BLOCK_MAGIC2(uhd, usrp_sink)
GR_SWIG_BLOCK_MAGIC2(uhd, amsg_source)
Presumably, that generates a structure that is
registered as a global pointer. So in my mac, I want
something like
extern ....
At the risk of asking for too much help, can you give me
some guidance or point me to a fragment of code somewhere
that does this sort of thing.
Thanks,
Ranga
|