[geos-commits] [SCM] GEOS branch main-perf-ng updated. 1389211d4d6994707e19b505302965a79bd768ef

git at osgeo.org git at osgeo.org
Wed Aug 14 15:20:40 PDT 2024


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GEOS".

The branch, main-perf-ng has been updated
       via  1389211d4d6994707e19b505302965a79bd768ef (commit)
      from  e01c69fa9bed5b53642e6e1b622021d3087751fb (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 1389211d4d6994707e19b505302965a79bd768ef
Author: Paul Ramsey <pramsey at cleverelephant.ca>
Date:   Wed Aug 14 15:20:04 2024 -0700

    Inline some accessor functions

diff --git a/include/geos/operation/relateng/RelateSegmentString.h b/include/geos/operation/relateng/RelateSegmentString.h
index 556ac4d37..f2e6caff4 100644
--- a/include/geos/operation/relateng/RelateSegmentString.h
+++ b/include/geos/operation/relateng/RelateSegmentString.h
@@ -123,11 +123,17 @@ public:
         bool isA, int elementId, int ringId,
         const Geometry* poly, const RelateGeometry* parent);
 
-    bool isA() const;
+    inline bool isA() const {
+        return m_isA;
+    }
 
-    const RelateGeometry* getGeometry() const;
+    inline const RelateGeometry* getGeometry() const {
+        return m_inputGeom;
+    }
 
-    const Geometry* getPolygonal() const;
+    inline const Geometry* getPolygonal() const {
+        return m_parentPolygonal;
+    }
 
     NodeSection* createNodeSection(std::size_t segIndex, const CoordinateXY intPt) const;
 
diff --git a/src/operation/relateng/RelateSegmentString.cpp b/src/operation/relateng/RelateSegmentString.cpp
index 5dfb5e716..41c0c4bbf 100644
--- a/src/operation/relateng/RelateSegmentString.cpp
+++ b/src/operation/relateng/RelateSegmentString.cpp
@@ -69,30 +69,6 @@ RelateSegmentString::createSegmentString(
 }
 
 
-/* public */
-bool
-RelateSegmentString::isA() const
-{
-    return m_isA;
-}
-
-
-/* public */
-const RelateGeometry*
-RelateSegmentString::getGeometry() const
-{
-    return m_inputGeom;
-}
-
-
-/* public */
-const Geometry*
-RelateSegmentString::getPolygonal() const
-{
-    return m_parentPolygonal;
-}
-
-
 /* public */
 NodeSection*
 RelateSegmentString::createNodeSection(std::size_t segIndex, const CoordinateXY intPt) const

-----------------------------------------------------------------------

Summary of changes:
 .../geos/operation/relateng/RelateSegmentString.h  | 12 ++++++++---
 src/operation/relateng/RelateSegmentString.cpp     | 24 ----------------------
 2 files changed, 9 insertions(+), 27 deletions(-)


hooks/post-receive
-- 
GEOS


More information about the geos-commits mailing list