|
From: | Marcus Müller |
Subject: | Re: [Discuss-gnuradio] Implementing feedback loops |
Date: | Mon, 9 Oct 2017 02:30:12 -0700 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 |
Hi Vipin,
Indeed!
Do class member variables of custom GRC block retain their state across two different calls of the function?Yes! As said, this is bog-normal C++ or Python. What would be the sense in having a member variable if it wasn't persistent?
Does the custom block class’ object gets created once during initialization and only the general work function gets called multiple times for processing.Exactly.
That's not a state, that's parameterization of the function, if you will. Not quite sure what to recommend here – on one hand, it looks
like you're actually very intensely consider what you're doing on
a level that most software developers simply wouldn't think about
(since the language takes care of that for them), but that on the
other hand might be an indication of you not being overly used to
writing procedural and object-oriented code at all. But that is
really just a hunch! Marcus On 10/08/2017 09:17 AM, Vipin Sharma
wrote:
|
[Prev in Thread] | Current Thread | [Next in Thread] |