GNU Octave  6.2.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 > errno_tbl
 

Static Private Attributes

static octave_errnoinstance = 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 errno_tbl, and name.

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 328 of file oct-errno.in.cc.

References Array< T >::assign(), errno_tbl, and retval.

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 errno_tbl, and name.

Referenced by lookup().

◆ get()

static int octave_errno::get ( void  )
inlinestatic

Definition at line 56 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(), instance, and retval.

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, and instance_ok().

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, instance_ok(), and name.

Referenced by Ferrno().

◆ set()

static int octave_errno::set ( int  val)
inlinestatic

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

References retval.

Referenced by Ferrno().

Member Data Documentation

◆ errno_tbl

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

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

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

◆ instance

octave_errno * octave_errno::instance = nullptr
staticprivate

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

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


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