GNU Octave  9.1.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
index_exception Class Referenceabstract

#include "lo-array-errwarn.h"

Inheritance diagram for index_exception:
execution_exception

Public Member Functions

 index_exception ()=delete
 
 index_exception (const std::string &index, octave_idx_type nd=0, octave_idx_type dim=-1, const char *var="")
 
 ~index_exception ()=default
 
virtual index_exceptiondup ()=0
 
virtual const char * err_id () const =0
 
void set_pos (octave_idx_type nd_arg, octave_idx_type dim_arg)
 
void set_pos_if_unset (octave_idx_type nd_arg, octave_idx_type dim_arg)
 
void set_var (const std::string &var_arg="")
 
virtual void update_message ()
 

Protected Member Functions

std::string expression () const
 

Protected Attributes

octave_idx_type m_dim
 
octave_idx_type m_nd
 
std::string m_var
 

Detailed Description

Definition at line 44 of file lo-array-errwarn.h.

Constructor & Destructor Documentation

◆ index_exception() [1/2]

index_exception::index_exception ( )
delete

◆ index_exception() [2/2]

index_exception::index_exception ( const std::string &  index,
octave_idx_type  nd = 0,
octave_idx_type  dim = -1,
const char *  var = "" 
)
inline

Definition at line 50 of file lo-array-errwarn.h.

◆ ~index_exception()

index_exception::~index_exception ( )
default

Member Function Documentation

◆ dup()

virtual index_exception* index_exception::dup ( )
pure virtual

◆ err_id()

virtual const char* index_exception::err_id ( ) const
pure virtual

◆ expression()

std::string index_exception::expression ( ) const
protected

Definition at line 127 of file lo-array-errwarn.cc.

References m_dim, m_nd, and m_var.

◆ set_pos()

void index_exception::set_pos ( octave_idx_type  nd_arg,
octave_idx_type  dim_arg 
)
inline

Definition at line 68 of file lo-array-errwarn.h.

◆ set_pos_if_unset()

void index_exception::set_pos_if_unset ( octave_idx_type  nd_arg,
octave_idx_type  dim_arg 
)
inline

◆ set_var()

void index_exception::set_var ( const std::string &  var_arg = "")
inline

◆ update_message()

virtual void index_exception::update_message ( )
inlinevirtual

Definition at line 65 of file lo-array-errwarn.h.

Member Data Documentation

◆ m_dim

octave_idx_type index_exception::m_dim
protected

Definition at line 112 of file lo-array-errwarn.h.

Referenced by expression().

◆ m_nd

octave_idx_type index_exception::m_nd
protected

Definition at line 109 of file lo-array-errwarn.h.

Referenced by expression().

◆ m_var

std::string index_exception::m_var
protected

Definition at line 115 of file lo-array-errwarn.h.

Referenced by expression().


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