28 Commits

Author SHA1 Message Date
Denis Rouzaud
76f702e48a sipify 2024-12-05 13:19:50 +01:00
Nyall Dawson
391b61544e
Handle SIP_OUT with void functions 2024-09-10 11:46:47 +10:00
Nyall Dawson
3a578d6712 Header update 2024-08-13 20:28:55 +10:00
Nyall Dawson
28943f9c1b Remove a bunch of useless default constructor doxygen 2024-07-23 02:08:28 +10:00
Even Rouault
15ea5c46bc
Header files: remove all mentions of '\since QGIS 3.0' 2024-02-18 20:57:23 +01:00
Julien Cabieces
012b6a46db constify methods 2022-04-29 08:21:47 +10:00
Juergen E. Fischer
a6d4f92359 fix windows build after 37b3eaa869587475c572c04bb15bc4986d533ece 2021-11-13 04:22:49 +01:00
Nyall Dawson
c15ff5e391 Fix const 2021-11-09 14:58:44 +11:00
Nyall Dawson
37b3eaa869 Add method to find opposite edge in a QgsGraph 2021-11-09 14:58:44 +11:00
Nyall Dawson
c0b253a69b Add API to remove vertices or edges from QgsGraph
Useful when you've built a graph and want to perform multiple
different analysis on it after excluding routes without
having to rebuild the whole graph again

Eg. find the shortest path between two vertices, then remove all
these edge from this path and repeat to try to find the second-shortest
path which doesn't use any of the same edges from the shortest
path
2021-11-09 14:58:44 +11:00
Nyall Dawson
9b02c301a5 Raise IndexError when requesting invalid edge or vertex indices
from QgsGraph, instead of crashing
2021-11-09 14:58:44 +11:00
Juergen E. Fischer
c6008b7ee1 fix MSVC build: reverts fee62e4, dff05dd and e3a77b9484c effectivly
reverting 3fb0f66 (followup #45348)

Using --no-public-is-protected (default on Windows) also works on Linux
and fixes #45331 too
2021-10-21 23:03:48 +02:00
nirvn
ef84e48a09 Run sipify_all.sh 2021-10-12 16:34:05 +10:00
Denis Rouzaud
ec16736306 run sipify 2021-10-12 16:34:05 +10:00
Nyall Dawson
81b934d9d1 Rework API and improve memory handling of graph objects
Instead of QgsGraphBuilder::graph() taking the ownership of the graph
and leaving the QgsGraphBuilder in an unpredictable state, add an
explicit "takeGraph" method which takes the existing graph and
make the existing "graph" method just return a copy of the graph.

Also fix corresponding memory leaks in network analysis processing
algorithms.

Fixes #44079
2021-07-20 13:54:46 +10:00
Denis Rouzaud
ba8a445850 run sipify 2021-03-22 21:13:52 +01:00
Nyall Dawson
50b9beaad6 [sipify] Catch more class references and insert :py:class: annotations 2021-01-31 05:41:22 +10:00
Even Rouault
c70e180df1
QgsGraphBuilder: declare deleted copy constructor and assignment operators as the class has pointer member variables 2020-05-29 23:30:20 +02:00
Denis Rouzaud
711ec1de47 forward declaration of QgsProject 2018-10-08 13:01:16 -08:00
Nyall Dawson
2ed144ac59 Apply clang-tidy readability-avoid-const-params-in-decls fixit
Checks whether a function declaration has parameters that are
top level const.

const values in declarations do not affect the signature of a
function, so they should not be put there.
2018-06-05 10:19:13 +10:00
Nyall Dawson
4c3a9ef7be Ensure that class \brief comes before \since (#7081)
Otherwise it breaks the Python docstrings, which require
the brief to come first
2018-05-28 04:03:46 -08:00
Nyall Dawson
f8bc97030b Remove extra space added before first line of docstring 2018-05-28 08:22:11 +10:00
Nyall Dawson
ea0c1d8cbc Typo 2018-05-28 08:22:11 +10:00
Nyall Dawson
0e75f6ef85 Don't indent multiline versionadded/deprecated tags
Turns out there isn't any valid ones anyway - the only
multiline versionadded tags are due to incorrect ordering
of brief/since tags (which is fixed in a different PR)
2018-05-27 18:54:09 +10:00
Nyall Dawson
9f650fead9 Fix incorrect param docstring when doxygen \param has extra
trailing spaces or uses tabs
2018-05-27 18:54:09 +10:00
Nyall Dawson
3b5ada15f7 Move class since annotation to after brief
Lots of classes do this, but it messes with the python docstrings.

TODO: add a unit test preventing this behavior
2018-05-27 18:54:09 +10:00
Nyall Dawson
38850bdb94 [pyqgis] Ensure that multiline param tags are indented for additional lines 2018-05-27 18:54:09 +10:00
Denis Rouzaud
8b130f1c14 move auto generated sip file in dedicated folder (server+analysis) 2018-05-14 10:41:52 -04:00