Public Types | Public Member Functions | Public Attributes | List of all members
custom_type_setup Struct Reference

#include <attr.h>

Public Types

using callback = std::function< void(PyHeapTypeObject *heap_type)>
 

Public Member Functions

 custom_type_setup (callback value)
 

Public Attributes

callback value
 

Detailed Description

Specifies a custom callback with signature void (PyHeapTypeObject*) that may be used to customize the Python type.

The callback is invoked immediately before PyType_Ready.

Note: This is an advanced interface, and uses of it may require changes to work with later versions of pybind11. You may wish to consult the implementation of make_new_python_type in detail/classes.h to understand the context in which the callback will be run.

Definition at line 101 of file attr.h.

Member Typedef Documentation

◆ callback

using custom_type_setup::callback = std::function<void(PyHeapTypeObject *heap_type)>

Definition at line 102 of file attr.h.

Constructor & Destructor Documentation

◆ custom_type_setup()

custom_type_setup::custom_type_setup ( callback  value)
inlineexplicit

Definition at line 104 of file attr.h.

Member Data Documentation

◆ value

callback custom_type_setup::value

Definition at line 106 of file attr.h.


The documentation for this struct was generated from the following file:


gtsam
Author(s):
autogenerated on Tue Jul 4 2023 02:41:02