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

#include "oct-errno.h"

Collaboration diagram for octave_errno:

Public Member Functions

 ~octave_errno (void)=default
 

Static Public Member Functions

static void cleanup_instance (void)
 
static int get (void)
 
static bool instance_ok (void)
 
static octave_scalar_map list (void)
 
static int lookup (const std::string &name)
 
static int set (int val)
 

Protected Member Functions

 octave_errno (void)
 

Private Member Functions

octave_scalar_map do_list (void)
 
int do_lookup (const std::string &name)
 

Private Attributes

std::map< std::string, int > errno_tbl
 

Static Private Attributes

static octave_errnoinstance = nullptr
 

Detailed Description

Definition at line 34 of file oct-errno.h.

Constructor & Destructor Documentation

◆ octave_errno()

octave_errno::octave_errno ( void  )
protected

Definition at line 38 of file oct-errno.in.cc.

References EAGAIN, errno_tbl, name, and value.

Referenced by instance_ok().

◆ ~octave_errno()

octave_errno::~octave_errno ( void  )
default

Member Function Documentation

◆ cleanup_instance()

static void octave_errno::cleanup_instance ( void  )
inlinestatic

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

Referenced by instance_ok().

◆ do_list()

octave_scalar_map octave_errno::do_list ( void  )
private

Definition at line 329 of file oct-errno.in.cc.

References octave_value::assign(), errno_tbl, p, and retval.

Referenced by list().

◆ do_lookup()

int octave_errno::do_lookup ( const std::string name)
private

Definition at line 323 of file oct-errno.in.cc.

References errno_tbl, and name.

Referenced by lookup().

◆ get()

static int octave_errno::get ( void  )
inlinestatic

Definition at line 53 of file oct-errno.h.

◆ instance_ok()

bool octave_errno::instance_ok ( void  )
static

Definition at line 292 of file oct-errno.in.cc.

References singleton_cleanup_list::add(), cleanup_instance(), error(), instance, octave_errno(), and retval.

Referenced by list(), and lookup().

◆ list()

octave_scalar_map octave_errno::list ( void  )
static

Definition at line 317 of file oct-errno.in.cc.

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

◆ lookup()

int octave_errno::lookup ( const std::string name)
static

Definition at line 311 of file oct-errno.in.cc.

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

◆ set()

static int octave_errno::set ( int  val)
inlinestatic

Definition at line 55 of file oct-errno.h.

References retval, and val.

Member Data Documentation

◆ errno_tbl

std::map<std::string, int> octave_errno::errno_tbl
private

Definition at line 64 of file oct-errno.h.

Referenced by do_list(), do_lookup(), and octave_errno().

◆ instance

octave_errno * octave_errno::instance = nullptr
staticprivate

Definition at line 66 of file oct-errno.h.

Referenced by instance_ok(), list(), and lookup().


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