How fpom/pyddd works
Main Components
a. User Layer:
• Python Application Layer (where end users interact with the library)
• Two main classes: ddd and sdd
b. Binding Layer:
• Cython Interface (represented by ddd.pyx and ddd.pxd files)
• C++ Wrapper (dddwrap.h)
c. Core Library Layer:
• libDDD (external C++ library)
Component Relationships
[Python Layer] → [Binding Layer] → [C++ Layer]
Use the following specific elements:
• Rectangles: Python classes (ddd, sdd)
• Hexagons: Cython components (ddd.pyx, ddd.pxd)
• Diamonds: C++ components (dddwrap.h)
• Double rectangles: External library (libDDD)
Important Elements to Highlight
a. Build System:
• Pyproject.toml and setup.py connection to the build process
• G++ compiler requirement (v.11)
b. Runtime Dependencies:
• LibDDD.so dynamic library requirement
• LD_LIBRARY_PATH configuration
Additional Details
A notes section showing:
• Compiler requirements (G++ v.11)
• System requirements (Python 3, Cython)
• Installation paths for libDDD
• Testing components (test/test.py)
Key Aspects to Emphasize
a. Memory Management:
• How Python objects are wrapped/unwrapped to C++ objects
• Where garbage collection interfaces occur
b. Type System:
• How Python types map to C++ types through Cython
• Special type handling