GNU Octave  6.2.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
octave_procbuf Class Reference

#include "oct-procbuf.h"

Inheritance diagram for octave_procbuf:
Collaboration diagram for octave_procbuf:

Public Types

typedef int(* close_fcn) (FILE *)
 
typedef std::streambuf::int_type int_type
 

Public Member Functions

 octave_procbuf (const char *command, int mode)
 
 octave_procbuf (const octave_procbuf &)=delete
 
 octave_procbuf (void)
 
 ~octave_procbuf (void)
 
int buf_close (void)
 
void clear (void)
 
octave_procbufclose (void)
 
int file_number () const
 
int flush (void)
 
bool is_open (void) const
 
octave_procbufopen (const char *command, int mode)
 
octave_procbufoperator= (const octave_procbuf &)=delete
 
int_type overflow (int_type)
 
int_type pbackfail (int_type)
 
pid_t pid (void) const
 
int seek (off_t offset, int origin)
 
std::streampos seekoff (std::streamoff, std::ios::seekdir, std::ios::openmode=std::ios::in|std::ios::out)
 
std::streampos seekpos (std::streampos, std::ios::openmode=std::ios::in|std::ios::out)
 
FILE * stdiofile (void)
 
int sync (void)
 
off_t tell (void)
 
int_type uflow (void)
 
int_type underflow (void)
 
int wait_status (void) const
 
std::streamsize xsgetn (char *, std::streamsize)
 
std::streamsize xsputn (const char *, std::streamsize)
 

Static Public Member Functions

static int file_close (FILE *f)
 

Protected Attributes

close_fcn cf
 
FILE * f
 
octave_procbufnext
 
bool open_p
 
pid_t proc_pid
 
int wstatus
 

Private Member Functions

int_type underflow_common (bool)
 

Detailed Description

Definition at line 38 of file oct-procbuf.h.

Member Typedef Documentation

◆ close_fcn

typedef int(* c_file_ptr_buf::close_fcn) (FILE *)
inherited

Definition at line 41 of file c-file-ptr-stream.h.

◆ int_type

typedef std::streambuf::int_type c_file_ptr_buf::int_type
inherited

Definition at line 39 of file c-file-ptr-stream.h.

Constructor & Destructor Documentation

◆ octave_procbuf() [1/3]

octave_procbuf::octave_procbuf ( void  )
inline

Definition at line 43 of file oct-procbuf.h.

◆ octave_procbuf() [2/3]

octave_procbuf::octave_procbuf ( const char *  command,
int  mode 
)
inline

Definition at line 47 of file oct-procbuf.h.

◆ octave_procbuf() [3/3]

octave_procbuf::octave_procbuf ( const octave_procbuf )
delete

◆ ~octave_procbuf()

octave_procbuf::~octave_procbuf ( void  )
inline

Definition at line 57 of file oct-procbuf.h.

Member Function Documentation

◆ buf_close()

int c_file_ptr_buf::buf_close ( void  )
inherited

◆ clear()

void c_file_ptr_buf::clear ( void  )
inlineinherited

Definition at line 87 of file c-file-ptr-stream.h.

References f.

◆ close()

octave_procbuf * octave_procbuf::close ( void  )

◆ file_close()

int c_file_ptr_buf::file_close ( FILE *  f)
staticinherited

Definition at line 185 of file c-file-ptr-stream.cc.

References c_file_ptr_buf::f.

◆ file_number()

int c_file_ptr_buf::file_number ( ) const
inlineinherited

Definition at line 81 of file c-file-ptr-stream.h.

References f.

◆ flush()

int c_file_ptr_buf::flush ( void  )
inherited

◆ is_open()

bool octave_procbuf::is_open ( void  ) const
inline

Definition at line 65 of file oct-procbuf.h.

Referenced by open().

◆ open()

◆ operator=()

octave_procbuf& octave_procbuf::operator= ( const octave_procbuf )
delete

◆ overflow()

c_file_ptr_buf::int_type c_file_ptr_buf::overflow ( int_type  c)
inherited

Definition at line 56 of file c-file-ptr-stream.cc.

References c_file_ptr_buf::f, and c_file_ptr_buf::flush().

◆ pbackfail()

c_file_ptr_buf::int_type c_file_ptr_buf::pbackfail ( int_type  c)
inherited

Definition at line 81 of file c-file-ptr-stream.cc.

References c_file_ptr_buf::f.

◆ pid()

pid_t octave_procbuf::pid ( void  ) const
inline

Definition at line 67 of file oct-procbuf.h.

◆ seek()

int c_file_ptr_buf::seek ( off_t  offset,
int  origin 
)
inherited

Definition at line 173 of file c-file-ptr-stream.cc.

References c_file_ptr_buf::f, and octave_fseeko_wrapper().

◆ seekoff()

std::streampos c_file_ptr_buf::seekoff ( std::streamoff  offset,
std::ios::seekdir  dir,
std::ios::openmode  = std::ios::in | std::ios::out 
)
inherited

◆ seekpos()

std::streampos c_file_ptr_buf::seekpos ( std::streampos  offset,
std::ios::openmode  = std::ios::in | std::ios::out 
)
inherited

◆ stdiofile()

FILE* c_file_ptr_buf::stdiofile ( void  )
inlineinherited

Definition at line 43 of file c-file-ptr-stream.h.

References f.

◆ sync()

int c_file_ptr_buf::sync ( void  )
inherited

Definition at line 143 of file c-file-ptr-stream.cc.

References c_file_ptr_buf::flush().

◆ tell()

off_t c_file_ptr_buf::tell ( void  )
inherited

Definition at line 179 of file c-file-ptr-stream.cc.

References c_file_ptr_buf::f, and octave_ftello_wrapper().

◆ uflow()

int_type c_file_ptr_buf::uflow ( void  )
inlineinherited

Definition at line 61 of file c-file-ptr-stream.h.

◆ underflow()

int_type c_file_ptr_buf::underflow ( void  )
inlineinherited

Definition at line 59 of file c-file-ptr-stream.h.

◆ underflow_common()

c_file_ptr_buf::int_type c_file_ptr_buf::underflow_common ( bool  bump)
privateinherited

Definition at line 65 of file c-file-ptr-stream.cc.

References c_file_ptr_buf::f.

◆ wait_status()

int octave_procbuf::wait_status ( void  ) const
inline

Definition at line 63 of file oct-procbuf.h.

Referenced by procstreambase::close().

◆ xsgetn()

std::streamsize c_file_ptr_buf::xsgetn ( char *  s,
std::streamsize  n 
)
inherited

Definition at line 97 of file c-file-ptr-stream.cc.

References c_file_ptr_buf::f, and n.

◆ xsputn()

std::streamsize c_file_ptr_buf::xsputn ( const char *  s,
std::streamsize  n 
)
inherited

Definition at line 88 of file c-file-ptr-stream.cc.

References c_file_ptr_buf::f, and n.

Member Data Documentation

◆ cf

close_fcn c_file_ptr_buf::cf
protectedinherited

Definition at line 95 of file c-file-ptr-stream.h.

Referenced by c_file_ptr_buf::buf_close().

◆ f

◆ next

octave_procbuf* octave_procbuf::next
protected

Definition at line 77 of file oct-procbuf.h.

Referenced by close(), and open().

◆ open_p

bool octave_procbuf::open_p
protected

Definition at line 73 of file oct-procbuf.h.

Referenced by close(), and open().

◆ proc_pid

pid_t octave_procbuf::proc_pid
protected

Definition at line 75 of file oct-procbuf.h.

Referenced by close(), and open().

◆ wstatus

int octave_procbuf::wstatus
protected

Definition at line 71 of file oct-procbuf.h.

Referenced by close().


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