Define ADD_TO_DS_METHOD_CASTER

Define ADD_TO_DS_METHOD_CASTER#

Define Documentation#

ADD_TO_DS_METHOD_CASTER(MODEL_CLASS, MODEL_DS_MODULE_NAME, MODEL_DS_CLASS_NAME)#

Macro to create a pybind11 caster for the provided type that will give the correct Python type hints when used for creating a toDS method.

Parameters:
  • MODEL_CLASS – The C++ class to create a caster for.

  • MODEL_DS_MODULE_NAME – The Python module that contains the DataStruct associated with the MODEL_CLASS.

  • MODEL_DS_CLASS_NAME – The name of the DataStruct class associated with the MODEL_CLASS.