CIRCT 20.0.0git
Loading...
Searching...
No Matches
Public Member Functions | Private Attributes | List of all members
circt::python::PyFileAccumulator Class Reference

Taken from NanobindUtils.h in MLIR. More...

#include <NanobindUtils.h>

Collaboration diagram for circt::python::PyFileAccumulator:
Collaboration graph
[legend]

Public Member Functions

 PyFileAccumulator (nanobind::object fileObject, bool binary)
 
void * getUserData ()
 
MlirStringCallback getCallback ()
 

Private Attributes

nanobind::object pyWriteFunction
 
bool binary
 

Detailed Description

Taken from NanobindUtils.h in MLIR.

Accumulates into a python file-like object, either writing text (default) or binary.

Definition at line 32 of file NanobindUtils.h.

Constructor & Destructor Documentation

◆ PyFileAccumulator()

circt::python::PyFileAccumulator::PyFileAccumulator ( nanobind::object  fileObject,
bool  binary 
)
inline

Definition at line 34 of file NanobindUtils.h.

Member Function Documentation

◆ getCallback()

MlirStringCallback circt::python::PyFileAccumulator::getCallback ( )
inline

Definition at line 39 of file NanobindUtils.h.

References binary, and pyWriteFunction.

Referenced by NB_MODULE().

◆ getUserData()

void * circt::python::PyFileAccumulator::getUserData ( )
inline

Definition at line 37 of file NanobindUtils.h.

Referenced by NB_MODULE().

Member Data Documentation

◆ binary

bool circt::python::PyFileAccumulator::binary
private

Definition at line 57 of file NanobindUtils.h.

Referenced by getCallback().

◆ pyWriteFunction

nanobind::object circt::python::PyFileAccumulator::pyWriteFunction
private

Definition at line 56 of file NanobindUtils.h.

Referenced by getCallback().


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