python.implementation - moduleus/urx GitHub Wiki

Classes

Default implementation

All classes are in namespace urx.

All classes are struct and public fields.

All functions are binding C++ code so the behavior is the most similar as possible as in C++.

The binding has been done with Pybind11.

Vector binding

shared_ptr and weak_ptr

Pybind11 handle pointers as shared_ptr by default.

To handle weak_ptr, def_property has been used in place. The default behavior for getting a weak_ptr is the same as getting a shared_ptr except that a runtime_error exception is raised if the pointer has expired.

DoubleNan

DoubleNan class has been binded to be used implicitly from double.