GNU Octave  8.1.0
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 > m_errno_tbl
 

Static Private Attributes

static octave_errnos_instance = nullptr
 

Detailed Description

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

Constructor & Destructor Documentation

◆ octave_errno()

octave_errno::octave_errno ( void  )
protected

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

References m_errno_tbl.

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 50 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_scalar_map::assign(), and m_errno_tbl.

Referenced by list().

◆ do_lookup()

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

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

References m_errno_tbl.

Referenced by lookup().

◆ get()

static int octave_errno::get ( void  )
inlinestatic

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

Referenced by Ferrno().

◆ instance_ok()

bool octave_errno::instance_ok ( void  )
static

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

References octave_errno(), singleton_cleanup_list::add(), cleanup_instance(), and s_instance.

Referenced by list(), and lookup().

◆ list()

octave_scalar_map octave_errno::list ( void  )
static

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

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

Referenced by Ferrno_list().

◆ lookup()

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

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

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

Referenced by Ferrno().

◆ set()

static int octave_errno::set ( int  val)
inlinestatic

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

Referenced by Ferrno().

Member Data Documentation

◆ m_errno_tbl

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

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

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

◆ s_instance

octave_errno * octave_errno::s_instance = nullptr
staticprivate

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

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


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