Skip to content

Commit

Permalink
Updater Developer Notes
Browse files Browse the repository at this point in the history
  • Loading branch information
dr-jts committed Nov 8, 2024
1 parent feb4459 commit 4b3a02b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
8 changes: 4 additions & 4 deletions DEVELOPER-NOTES.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,10 @@ public:
* It lowers the number of heap allocations, because it allocates larger blocks of space to store multiple `HalfEdge` objects.
* It handles the lifecycle of the `HalfEdge` objects that make up the `EdgeGraph`, because when the `EdgeGraph` is deallocated, the `std::deque<>` and all its contents are also automatically deallocated.
### Use `pragma once` to limit header inclusion
Use `#pragma once` to limit header inclusion. It is simpler and faster.
### Use forward declarations in header files
Where possible, in header files use **forward declarations** rather than header includes.
Expand All @@ -106,10 +110,6 @@ rather than:
#include <geos/geom/Geometry.h>
```
### Use `pragma once` to limit header inclusion
Use `#pragma once` to limit header inclusion. It is simpler and faster.
### Use `using` to reduce namespace qualifiers
GEOS is organized into many nested namespaces to reflect the JTS package structure.
Expand Down
5 changes: 4 additions & 1 deletion web/content/project/development/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ When submitting bugs caused by particular geometries, you must
[WKB]({{< ref "../../specifications/wkb" >}}), so that we can re-produce
the failure cases.


## Contributing

To contribute fixes to outstanding issues, enhancements, and other smaller
Expand All @@ -37,3 +36,7 @@ is not a "smaller" change, please join the
[**geos-devel** mailing list](https://lists.osgeo.org/mailman/listinfo/geos-devel)
and describe your plans. **Join the list!** It is a great way to get
acquainted with what the development community is working on.

## Coding Style

For guidance on the coding style used in GEOS see the [**Developer Notes**](https://github.com/libgeos/geos/blob/main/DEVELOPER-NOTES.md).

0 comments on commit 4b3a02b

Please sign in to comment.