MLIR  20.0.0git
Public Member Functions | Public Attributes | List of all members
mlir::PyPrintAccumulator Struct Reference

Accumulates into a python string from a method that accepts an MlirStringCallback. More...

#include "Bindings/Python/NanobindUtils.h"

Public Member Functions

void * getUserData ()
 
MlirStringCallback getCallback ()
 
nanobind::str join ()
 

Public Attributes

nanobind::list parts
 

Detailed Description

Accumulates into a python string from a method that accepts an MlirStringCallback.

Definition at line 110 of file NanobindUtils.h.

Member Function Documentation

◆ getCallback()

MlirStringCallback mlir::PyPrintAccumulator::getCallback ( )
inline

Definition at line 115 of file NanobindUtils.h.

References MlirStringRef::data, MlirStringRef::length, and parts.

◆ getUserData()

void* mlir::PyPrintAccumulator::getUserData ( )
inline

Definition at line 113 of file NanobindUtils.h.

◆ join()

nanobind::str mlir::PyPrintAccumulator::join ( )
inline

Definition at line 125 of file NanobindUtils.h.

References parts.

Member Data Documentation

◆ parts

nanobind::list mlir::PyPrintAccumulator::parts

Definition at line 111 of file NanobindUtils.h.

Referenced by getCallback(), and join().


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