I’ve been studying the message_source.{h,cc} code, and I’m confused on
one
issue. In gr_message_source.h, one of the member variables of the
gr_message
source class if a gr_message_sptr called d_msg. The .cc file makes use
of
the d_msg, yet nowhere do I find it being initialized to a value. What
data
is d_msg pointing to?
On Sat, Sep 09, 2006 at 02:40:03PM -0500, Michael F. wrote:
I’ve been studying the message_source.{h,cc} code, and I’m confused on one
issue. In gr_message_source.h, one of the member variables of the gr_message
source class if a gr_message_sptr called d_msg. The .cc file makes use of
the d_msg, yet nowhere do I find it being initialized to a value. What data
is d_msg pointing to?
It starts out as the equivalent of the NULL pointer. It’s a
boost::shared_ptr; its default constructor handles this.
Later it is then assigned a value on line 95.
Eric