summaryrefslogtreecommitdiff
path: root/gr-qtgui/lib/vector_sink_f_impl.h
Commit message (Collapse)AuthorAgeFilesLines
* qtgui: Replace pyqwidget() with qwidget()David Winter2021-09-031-6/+0
| | | | | | | | | | | | | | | | | | | | | | | | | Previously, two versions of the `qtwidget` functions existed, `qwidget()` and `pyqwidget()`, with the only difference being that `qwidget()` returned a pointer to the `QWidget` object managed by the corresponding block, while `pyqwidget()` returned that same pointer, but as an integer (Or `PyLong` in this case). While `qwidget()` is used by C++ code accessing the widgets, `pyqwidget()` is only used for the python interface. This makes these two methods redundant, thus this commit entirely removes `pyqwidget()`, and modifies the `qwidget()` python wrapper to behave like `pyqwidget()`. Note that we can be fairly confident that this change will not effect potential users of `qwidget()`, because any invocation on the objects previously returned by `qwidget()` would cause a segmentation fault. This commit also fixes a memory leak: Internally, the `pyqwidget()` functions were returning a PyLong `PyObject *`, which was then upwrapped in a pybind trampoline without decrementing the reference count of that python object. Signed-off-by: David Winter <david.winter@analog.com>
* qtgui: Remove manual memory managementThomas Habets2021-02-261-6/+17
| | | | Signed-off-by: Thomas Habets <thomas@habets.se>
* modernization: `override` instead of virtual in all compilation unitsMarcus Müller2020-11-031-42/+42
|
* Add `override` for common virtual function overridesThomas Habets2020-11-031-2/+2
| | | | | | | | | | Mostly done with: ``` find -name "*_impl.h" | xargs sed -i -r '/(void forecast|int work|int general_work|bool check_topology)\(/{:back /\)/b nxt;N;b back;:nxt s/\)$|\)(;)/) override\1/g}' ``` Then I removed an incorrect `work` that this found.
* Update license header to SPDX formatdevnulling2020-01-271-13/+1
|
* Fix all formatting issuesMartin Braun2020-01-101-1/+1
| | | | | This fixes every leftover file in the GNU Radio source tree to match our clang-format definition.
* Use 'const' on more member variablesThomas Habets2019-12-041-1/+1
|
* Tree: clang-format without the include sortingMarcus Müller2019-08-091-93/+89
|
* Change vector length variables to unsigned typeSebastian Müller2018-11-011-3/+3
|
* Merge remote-tracking branch 'origin/next' into merge_nextMarcus Müller2018-08-311-12/+13
|\
| * Use unsigned integers where dealing with indicesMarcus Müller2018-08-281-12/+12
| | | | | | | | | | This is to improve quality of warnings when trying to pass negative indices.
| * cleanup: add missing includes + reorder qtgui includes correctlyAndrej Rode2018-03-041-0/+1
| |
* | qtgui: remove unnecessary call to pmt::intern at runtimeMarcus Müller2018-02-231-1/+3
|/ | | | | | | | | | | | | | typical usage: message_port_pub(pmt::mp("out_port"), …) which is bad, as it implies hashing of a string, allocation of memory, deallocation, finding the hashed string in the table of interned strings and returning a unique pointer (which for reasons of PMT awesomeness isn't even unique) to the interned port name. Replacing all these port name ad hoc ::mp() calls by reusing one, private, port name member.
* qtgui: Added a 'vector sink'.Martin Braun2014-08-261-0/+142
This is a sink similar to the freq sink, which takes vectors as input and plots them as-is.