MyCaffe  1.12.2.41
Deep learning software for Windows C# programmers.
Python.Runtime.Int32Type Class Reference

The Int32Type represents a clr int type. More...

Inheritance diagram for Python.Runtime.Int32Type:
Python.Runtime.PyClrTypeBase

Public Member Functions

 Int32Type ()
 The constructor. More...
 
override object ToClr (PyObject pyObj)
 Converts a PyObject to a int. More...
 
override PyObject ToPython (object clrObj)
 Converts a int to a PyObject. More...
 

Additional Inherited Members

- Protected Member Functions inherited from Python.Runtime.PyClrTypeBase
 PyClrTypeBase (string pyType, Type clrType)
 The constructor. More...
 
 PyClrTypeBase (PyObject pyType, Type clrType)
 The constructor. More...
 
- Properties inherited from Python.Runtime.PyClrTypeBase
PyObject PythonType [get]
 Returns the Python type. More...
 
Type ClrType [get]
 Returns the clr type. More...
 

Detailed Description

The Int32Type represents a clr int type.

Open-source public code originally shared from:

See also
PyConverter by Wenguang Yang, 2018

Definition at line 387 of file PyConverter.cs.

Constructor & Destructor Documentation

◆ Int32Type()

Python.Runtime.Int32Type.Int32Type ( )

The constructor.

Definition at line 392 of file PyConverter.cs.

Member Function Documentation

◆ ToClr()

override object Python.Runtime.Int32Type.ToClr ( PyObject  pyObj)
virtual

Converts a PyObject to a int.

Parameters
pyObjSpecifies the Python object to convert.
Returns
A clr int is returned.

Implements Python.Runtime.PyClrTypeBase.

Definition at line 402 of file PyConverter.cs.

◆ ToPython()

override PyObject Python.Runtime.Int32Type.ToPython ( object  clrObj)
virtual

Converts a int to a PyObject.

Parameters
clrObjSpecifies the int to convert.
Returns
A PyObject representing the int is returned.

Implements Python.Runtime.PyClrTypeBase.

Definition at line 412 of file PyConverter.cs.


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