CPyTypeInterface Class Reference

#include <cpython_ref.h>

Inheritance diagram for CPyTypeInterface:

Detailed Description

Interface class for CPyRefs.

@MAXON_ANNOTATION{refclass=false}

Static Public Member Functions

static MAXON_FUNCTION CPyTypeRef CreateTypeRef (const CPythonLibraryInterface *lib, REFTYPE refType, NativePyObject *pyObject)
 
static MAXON_FUNCTION CPyTypeConstRef CreateTypeConstRef (const CPythonLibraryInterface *lib, REFTYPE refType, NativePyObject *pyObject)
 

Private Member Functions

 MAXON_INTERFACE (CPyTypeInterface, MAXON_REFERENCE_NORMAL, "net.maxon.python.interface.cpytype")
 

Member Function Documentation

◆ MAXON_INTERFACE()

MAXON_INTERFACE ( CPyTypeInterface  ,
MAXON_REFERENCE_NORMAL  ,
"net.maxon.python.interface.cpytype"   
)
private

◆ CreateTypeRef()

static MAXON_FUNCTION CPyTypeRef CreateTypeRef ( const CPythonLibraryInterface lib,
REFTYPE  refType,
NativePyObject pyObject 
)
static

Creates a type reference by a given NativePyObject. GIL must be held.

Parameters
[in]libThe NativePyObject's library origin.
[in]refTypeRef count handler information.
Returns
Returns a new wrapper reference.

◆ CreateTypeConstRef()

static MAXON_FUNCTION CPyTypeConstRef CreateTypeConstRef ( const CPythonLibraryInterface lib,
REFTYPE  refType,
NativePyObject pyObject 
)
static

Creates a immutable type reference by a given NativePyObject. GIL must be held.

Parameters
[in]libThe NativePyObject's library origin.
[in]refTypeRef count handler information.
Returns
Returns a new wrapper reference.