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

#include "oct-stream.h"

Collaboration diagram for octave::stream_list:

Public Member Functions

 stream_list (const stream_list &)=delete
 
 stream_list (interpreter &interp)
 
 ~stream_list (void)
 
void clear (bool flush=true)
 
int get_file_number (const octave_value &fid) const
 
string_vector get_info (const octave_value &fid) const
 
string_vector get_info (int fid) const
 
int insert (stream &os)
 
std::string list_open_files (void) const
 
stream lookup (const octave_value &fid, const std::string &who="") const
 
stream lookup (int fid, const std::string &who="") const
 
octave_value open_file_numbers (void) const
 
stream_listoperator= (const stream_list &)=delete
 
int remove (const octave_value &fid, const std::string &who="")
 
int remove (int fid, const std::string &who="")
 
octave_value stderr_file (void) const
 
octave_value stdin_file (void) const
 
octave_value stdout_file (void) const
 

Private Types

typedef std::map< int, streamostrl_map
 

Private Attributes

ostrl_map m_list
 
ostrl_map::const_iterator m_lookup_cache
 
int m_stderr_file
 
int m_stdin_file
 
int m_stdout_file
 

Detailed Description

Definition at line 428 of file oct-stream.h.

Member Typedef Documentation

◆ ostrl_map

typedef std::map<int, stream> octave::stream_list::ostrl_map
private

Definition at line 466 of file oct-stream.h.

Constructor & Destructor Documentation

◆ stream_list() [1/2]

◆ stream_list() [2/2]

octave::stream_list::stream_list ( const stream_list )
delete

◆ ~stream_list()

octave::stream_list::~stream_list ( void  )

Definition at line 7382 of file oct-stream.cc.

References clear().

Member Function Documentation

◆ clear()

void octave::stream_list::clear ( bool  flush = true)

◆ get_file_number()

int octave::stream_list::get_file_number ( const octave_value fid) const

◆ get_info() [1/2]

string_vector octave::stream_list::get_info ( const octave_value fid) const

◆ get_info() [2/2]

◆ insert()

int octave::stream_list::insert ( stream os)

Definition at line 7387 of file oct-stream.cc.

References error(), octave::stream::file_number(), and m_list.

Referenced by stream_list(), Ffopen(), Fmkstemp(), Fpipe(), Fpopen(), Fpopen2(), and Ftmpfile().

◆ list_open_files()

std::string octave::stream_list::list_open_files ( void  ) const

◆ lookup() [1/2]

stream octave::stream_list::lookup ( const octave_value fid,
const std::string &  who = "" 
) const

Definition at line 7450 of file oct-stream.cc.

References get_file_number(), and lookup().

◆ lookup() [2/2]

stream octave::stream_list::lookup ( int  fid,
const std::string &  who = "" 
) const

◆ open_file_numbers()

octave_value octave::stream_list::open_file_numbers ( void  ) const

Definition at line 7622 of file oct-stream.cc.

References m_list, Array< T >::resize(), and retval.

Referenced by Ffopen().

◆ operator=()

stream_list& octave::stream_list::operator= ( const stream_list )
delete

◆ remove() [1/2]

int octave::stream_list::remove ( const octave_value fid,
const std::string &  who = "" 
)

◆ remove() [2/2]

int octave::stream_list::remove ( int  fid,
const std::string &  who = "" 
)

◆ stderr_file()

octave_value octave::stream_list::stderr_file ( void  ) const

Definition at line 7690 of file oct-stream.cc.

References m_stderr_file, and octave_value().

Referenced by Fstderr().

◆ stdin_file()

octave_value octave::stream_list::stdin_file ( void  ) const

Definition at line 7680 of file oct-stream.cc.

References m_stdin_file, and octave_value().

Referenced by Fstdin().

◆ stdout_file()

octave_value octave::stream_list::stdout_file ( void  ) const

Definition at line 7685 of file oct-stream.cc.

References m_stdout_file, and octave_value().

Referenced by Fstdout().

Member Data Documentation

◆ m_list

ostrl_map octave::stream_list::m_list
private

◆ m_lookup_cache

ostrl_map::const_iterator octave::stream_list::m_lookup_cache
mutableprivate

Definition at line 470 of file oct-stream.h.

Referenced by clear(), get_info(), lookup(), and remove().

◆ m_stderr_file

int octave::stream_list::m_stderr_file
private

Definition at line 474 of file oct-stream.h.

Referenced by stream_list(), and stderr_file().

◆ m_stdin_file

int octave::stream_list::m_stdin_file
private

Definition at line 472 of file oct-stream.h.

Referenced by stream_list(), and stdin_file().

◆ m_stdout_file

int octave::stream_list::m_stdout_file
private

Definition at line 473 of file oct-stream.h.

Referenced by stream_list(), and stdout_file().


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