Scarab  v2.11.1
Project 8 C++ Utility Library
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

Public Member Functions

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

Private Types

using traits_type = std::streambuf::traits_type
 

Private Member Functions

int overflow (int c)
 
int sync ()
 

Private Attributes

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

Detailed Description

Definition at line 24 of file iostream.h.

Member Typedef Documentation

◆ traits_type

using traits_type = std::streambuf::traits_type
private

Definition at line 26 of file iostream.h.

Constructor & Destructor Documentation

◆ pythonbuf() [1/2]

pythonbuf ( object  pyostream,
size_t  buffer_size = 1024 
)
inline

Definition at line 59 of file iostream.h.

◆ pythonbuf() [2/2]

pythonbuf ( pythonbuf &&  )
default

◆ ~pythonbuf()

~pythonbuf ( )
inline

Sync before destroy.

Definition at line 70 of file iostream.h.

Member Function Documentation

◆ overflow()

int overflow ( int  c)
inlineprivate

Definition at line 33 of file iostream.h.

◆ sync()

int sync ( )
inlineprivate

Definition at line 41 of file iostream.h.

Member Data Documentation

◆ buf_size

const size_t buf_size
private

Definition at line 28 of file iostream.h.

◆ d_buffer

std::unique_ptr<char[]> d_buffer
private

Definition at line 29 of file iostream.h.

◆ pyflush

object pyflush
private

Definition at line 31 of file iostream.h.

◆ pywrite

object pywrite
private

Definition at line 30 of file iostream.h.


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