HGuillemet
HGuillemet
```C++ struct B { int x; virtual void f() { } virtual ~B() { }; }; struct D: public B { int y; }; ``` ```Java infoMap .put(new Info("B").virtualize()) .put(new...
This PR adds a mechanism to copy declarations from one class to another. It is used automatically when a virtual inheritance towards a polymorphic class, that we cannot transpose to...
See https://github.com/bytedeco/javacpp/pull/649#issuecomment-1426844810 [This lines](https://github.com/bytedeco/javacpp/blob/5f81c237cf1a2a6f2100dc39ae58d3c7d6dd07e1/src/main/java/org/bytedeco/javacpp/tools/Parser.java#L2332-L2333) and [this lines](https://github.com/bytedeco/javacpp/blob/5f81c237cf1a2a6f2100dc39ae58d3c7d6dd07e1/src/main/java/org/bytedeco/javacpp/tools/Parser.java#L3948-L3949) are not useful anymore with this PR. But you may want to keep them for compatibility.
Parser generates code for pairs and not for vectors for vectors of pairs. Example for `std::vector`: ``` public class XPairVector extends Pointer { static { Loader.load(); } /** Pointer cast...
It would be nice to generalize [this logic](https://github.com/bytedeco/javacpp/blob/0afb7b44236a402990e2e8b8291fc57e15624965/src/main/java/org/bytedeco/javacpp/tools/Parser.java#L1367-L1420) for, eg, containers or arrays. Currently, if we must map a `std::vector`, we need to add an info `new Info("std::shared_ptr").pointerTypes("M")`. While this...
```c++ namespace ns { struct M; using MPtr = std::shared_ptr; } static public void f(ns::MPtr x) {} ``` In this example, `f` is parsed correctly as: ```Java public static native...
The JNI code for method `name` of `Module` in Pytorch contains: ``` signed char* rptr; StringAdapter< char > radapter(ptr->name()); rptr = radapter; ``` If we add an `Info` `virtualize()` on...
In the JNI code, the `address` field of Java objects is interpreted as a pointer to a C++ object using a C-style cast. This always works when the effective class...
GIven this C++ function: ```c++ class M { public: virtual void f(bool b = true) { } }; ``` The parser generates two methods: ```Java public native void f(@Cast("bool") boolean...
Included in this PR: * Update to PyTorch 2.3.0 * Add AOTInductor (new way to run models exported from Python)