Public Member Functions | Private Types | Private Member Functions | Private Attributes | List of all members
pythonbuf Class Reference

#include <iostream.h>

Inheritance diagram for pythonbuf:
Inheritance graph
[legend]

Public Member Functions

 pythonbuf (const object &pyostream, size_t buffer_size=1024)
 
 pythonbuf (pythonbuf &&)=default
 
 ~pythonbuf () override
 Sync before destroy. More...
 

Private Types

using traits_type = std::streambuf::traits_type
 

Private Member Functions

int _sync ()
 
int overflow (int c) override
 
int sync () override
 
size_t utf8_remainder () const
 

Private Attributes

const size_t buf_size
 
std::unique_ptr< char[]> d_buffer
 
object pyflush
 
object pywrite
 

Detailed Description

Definition at line 38 of file iostream.h.

Member Typedef Documentation

◆ traits_type

using pythonbuf::traits_type = std::streambuf::traits_type
private

Definition at line 40 of file iostream.h.

Constructor & Destructor Documentation

◆ pythonbuf() [1/2]

pythonbuf::pythonbuf ( const object pyostream,
size_t  buffer_size = 1024 
)
inlineexplicit

Definition at line 120 of file iostream.h.

◆ pythonbuf() [2/2]

pythonbuf::pythonbuf ( pythonbuf &&  )
default

◆ ~pythonbuf()

pythonbuf::~pythonbuf ( )
inlineoverride

Sync before destroy.

Definition at line 129 of file iostream.h.

Member Function Documentation

◆ _sync()

int pythonbuf::_sync ( )
inlineprivate

Definition at line 94 of file iostream.h.

◆ overflow()

int pythonbuf::overflow ( int  c)
inlineoverrideprivate

Definition at line 47 of file iostream.h.

◆ sync()

int pythonbuf::sync ( )
inlineoverrideprivate

Definition at line 117 of file iostream.h.

◆ utf8_remainder()

size_t pythonbuf::utf8_remainder ( ) const
inlineprivate

Definition at line 58 of file iostream.h.

Member Data Documentation

◆ buf_size

const size_t pythonbuf::buf_size
private

Definition at line 42 of file iostream.h.

◆ d_buffer

std::unique_ptr<char[]> pythonbuf::d_buffer
private

Definition at line 43 of file iostream.h.

◆ pyflush

object pythonbuf::pyflush
private

Definition at line 45 of file iostream.h.

◆ pywrite

object pythonbuf::pywrite
private

Definition at line 44 of file iostream.h.


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


gtsam
Author(s):
autogenerated on Sat Nov 16 2024 04:10:05