GNU Octave  4.2.1
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Public Member Functions | Static Public Member Functions | Protected Member Functions | Private Types | Private Member Functions | Static Private Member Functions | Private Attributes | Static Private Attributes | List of all members
octave_stream_list Class Reference

#include "oct-stream.h"

Collaboration diagram for octave_stream_list:
Collaboration graph
[legend]

Public Member Functions

 ~octave_stream_list (void)
 

Static Public Member Functions

static void clear (bool flush=true)
 
static int get_file_number (const octave_value &fid)
 
static string_vector get_info (int fid)
 
static string_vector get_info (const octave_value &fid)
 
static int insert (octave_stream &os)
 
static bool instance_ok (void)
 
static std::string list_open_files (void)
 
static octave_stream lookup (int fid, const std::string &who="")
 
static octave_stream lookup (const octave_value &fid, const std::string &who="")
 
static octave_value open_file_numbers (void)
 
static int remove (int fid, const std::string &who="")
 
static int remove (const octave_value &fid, const std::string &who="")
 

Protected Member Functions

 octave_stream_list (void)
 

Private Types

typedef std::map< int,
octave_stream
ostrl_map
 

Private Member Functions

void do_clear (bool flush=true)
 
int do_get_file_number (const octave_value &fid) const
 
string_vector do_get_info (int fid) const
 
string_vector do_get_info (const octave_value &fid) const
 
int do_insert (octave_stream &os)
 
std::string do_list_open_files (void) const
 
octave_stream do_lookup (int fid, const std::string &who="") const
 
octave_stream do_lookup (const octave_value &fid, const std::string &who="") const
 
octave_value do_open_file_numbers (void) const
 
int do_remove (int fid, const std::string &who="")
 
int do_remove (const octave_value &fid, const std::string &who="")
 

Static Private Member Functions

static void cleanup_instance (void)
 

Private Attributes

ostrl_map list
 
ostrl_map::const_iterator lookup_cache
 

Static Private Attributes

static octave_stream_listinstance = 0
 

Detailed Description

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

Member Typedef Documentation

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

Constructor & Destructor Documentation

octave_stream_list::octave_stream_list ( void  )
inlineprotected

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

Referenced by instance_ok().

octave_stream_list::~octave_stream_list ( void  )
inline

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

Member Function Documentation

static void octave_stream_list::cleanup_instance ( void  )
inlinestaticprivate

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

Referenced by instance_ok().

void octave_stream_list::clear ( bool  flush = true)
static

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

References do_clear(), and instance.

Referenced by close_files().

void octave_stream_list::do_clear ( bool  flush = true)
private
int octave_stream_list::do_get_file_number ( const octave_value fid) const
private
string_vector octave_stream_list::do_get_info ( int  fid) const
private
string_vector octave_stream_list::do_get_info ( const octave_value fid) const
private

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

References convert_to_valid_int(), do_get_info(), and error().

int octave_stream_list::do_insert ( octave_stream os)
private

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

References error(), octave_stream::file_number(), and list.

Referenced by insert().

std::string octave_stream_list::do_list_open_files ( void  ) const
private
octave_stream octave_stream_list::do_lookup ( int  fid,
const std::string who = "" 
) const
private

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

References err_invalid_file_id(), list, lookup_cache, and retval.

Referenced by do_get_info(), do_lookup(), and lookup().

octave_stream octave_stream_list::do_lookup ( const octave_value fid,
const std::string who = "" 
) const
private

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

References do_lookup(), and get_file_number().

octave_value octave_stream_list::do_open_file_numbers ( void  ) const
private

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

References list, p, Matrix::resize(), and retval.

Referenced by open_file_numbers().

int octave_stream_list::do_remove ( int  fid,
const std::string who = "" 
)
private
int octave_stream_list::do_remove ( const octave_value fid,
const std::string who = "" 
)
private
int octave_stream_list::get_file_number ( const octave_value fid)
static

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

References do_get_file_number(), instance, and instance_ok().

Referenced by do_lookup(), and do_remove().

string_vector octave_stream_list::get_info ( int  fid)
static

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

References do_get_info(), instance, and instance_ok().

string_vector octave_stream_list::get_info ( const octave_value fid)
static

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

References do_get_info(), instance, and instance_ok().

int octave_stream_list::insert ( octave_stream os)
static

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

References do_insert(), instance, and instance_ok().

Referenced by initialize_file_io().

bool octave_stream_list::instance_ok ( void  )
static
std::string octave_stream_list::list_open_files ( void  )
static

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

References do_list_open_files(), instance, and instance_ok().

octave_stream octave_stream_list::lookup ( int  fid,
const std::string who = "" 
)
static

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

References do_lookup(), instance, and instance_ok().

Referenced by Fdup2(), and Ffwrite().

octave_stream octave_stream_list::lookup ( const octave_value fid,
const std::string who = "" 
)
static

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

References do_lookup(), instance, and instance_ok().

octave_value octave_stream_list::open_file_numbers ( void  )
static

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

References do_open_file_numbers(), instance, instance_ok(), and octave_value().

int octave_stream_list::remove ( int  fid,
const std::string who = "" 
)
static

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

References do_remove(), instance, and instance_ok().

int octave_stream_list::remove ( const octave_value fid,
const std::string who = "" 
)
static

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

References do_remove(), instance, and instance_ok().

Member Data Documentation

octave_stream_list * octave_stream_list::instance = 0
staticprivate
ostrl_map octave_stream_list::list
private
ostrl_map::const_iterator octave_stream_list::lookup_cache
mutableprivate

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

Referenced by do_clear(), do_lookup(), and do_remove().


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