GNU Octave  8.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:
Collaboration diagram for index_exception:

Public Member Functions

 index_exception (const std::string &index, octave_idx_type nd=0, octave_idx_type dim=-1, const char *var="")
 
 ~index_exception (void)=default
 
virtual const char * err_id (void) 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 (void)
 

Protected Member Functions

OCTAVE_API std::string expression (void) const
 

Protected Attributes

octave_idx_type m_dim
 
octave_idx_type m_nd
 
std::string m_var
 

Private Attributes

std::string m_index
 

Detailed Description

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

Constructor & Destructor Documentation

◆ index_exception()

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 48 of file lo-array-errwarn.h.

◆ ~index_exception()

index_exception::~index_exception ( void  )
default

Member Function Documentation

◆ err_id()

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

◆ expression()

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

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

References m_dim, m_index, m_nd, and m_var.

Referenced by invalid_index::update_message(), and out_of_range::update_message().

◆ set_pos()

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

Definition at line 64 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 ( void  )
inlinevirtual

Reimplemented in out_of_range, invalid_index, and complex_index_exception.

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

Member Data Documentation

◆ m_dim

octave_idx_type index_exception::m_dim
protected

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

Referenced by expression().

◆ m_index

std::string index_exception::m_index
private

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

Referenced by expression().

◆ m_nd

octave_idx_type index_exception::m_nd
protected

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

Referenced by expression().

◆ m_var

std::string index_exception::m_var
protected

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

Referenced by expression().


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