MLIR  19.0.0git
Public Member Functions | List of all members
mlir::PySinglePartStringAccumulator Struct Reference

Accumulates into a python string from a method that is expected to make one (no more, no less) call to the callback (asserts internally on violation). More...

#include "Bindings/Python/PybindUtils.h"

Public Member Functions

void * getUserData ()
 
MlirStringCallback getCallback ()
 
pybind11::str takeValue ()
 

Detailed Description

Accumulates into a python string from a method that is expected to make one (no more, no less) call to the callback (asserts internally on violation).

Definition at line 156 of file PybindUtils.h.

Member Function Documentation

◆ getCallback()

MlirStringCallback mlir::PySinglePartStringAccumulator::getCallback ( )
inline

Definition at line 159 of file PybindUtils.h.

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

◆ getUserData()

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

Definition at line 157 of file PybindUtils.h.

◆ takeValue()

pybind11::str mlir::PySinglePartStringAccumulator::takeValue ( )
inline

Definition at line 170 of file PybindUtils.h.


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