Skip to content

Replace static classes by namespaces - #52

Merged
kmokstad merged 16 commits into
openfedem:mainfrom
kmokstad:namespaces
May 9, 2026
Merged

Replace static classes by namespaces#52
kmokstad merged 16 commits into
openfedem:mainfrom
kmokstad:namespaces

Conversation

@kmokstad

@kmokstad kmokstad commented May 9, 2026

Copy link
Copy Markdown

and with some extra functions in the FFaAppInfo namespace.
Includes #51.

kmokstad and others added 16 commits April 26, 2026 12:31
…ke option.

Add variable BUILD_FOUNDATION_TESTS to signal the test build and execution.
Add variable USE_FORTRAN_INTERFACE in the CMakeLists.txt file of FFlLib.
Build FFlLinkHandler_F.C in a separate library to simplify dependencies.
Add FFlVisEdge::getVertexIdx() and FFlVisEdgeRef::get[First|Second]VxIdx().
Add check for null pointer before dereferencing them.
new methods for positive and negative face directions, respectively.
Use a lambda for repetitive tasks in FFlVisFace::getElmFaceVertices().
Use array indices in the functor FFlVisFace::FFlVisFaceLess
to avoid the need for the static iterator variables.
Let FFlVisFace::setFaceVertices() return false if degenerated face.
FFlGroupPartCreator::joinFacesFromEdge() using FFlVisFace::nextEdge()
Remove the isIndexShape member - check shapeIndexes.empty() instead.
Add begin() and end() for iterating over the myLinkParts map.
Remove reference to vertex container as member,
using myWorkLink->getVertexes() instead when needed.
Move method setEdgeGeomStatus() to class FFlVisFace.
with the only use being inside the other relation operators.
The functor FFlVisEdgeEqual is then no longer needed.
Replace FFlVisEdgeRef::getEdge() by FFlVisEdgeRef::sameAs(),
which only compares the FFlVisEdge pointer members.
Use std::find_if() with a lambda when searching for matching edge
in neighboring faces in FFlGroupPartCreator::joinFacesFromEdge().
Some of the private methods are moved into anonymous namespace in
the implementation file while others are reimplemented as lambdas.
The unused method isLinesIntersecting() is removed completely.
methods into anonymous namespace in the implementation file
Add convenience lambdas buildSimple() and buildDouble().
Add functions getVersion(), getUser() and getDate() in FFaAppInfo.
@kmokstad
kmokstad merged commit 0489424 into openfedem:main May 9, 2026
1 check passed
@kmokstad
kmokstad deleted the namespaces branch May 9, 2026 06:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant