GNU Octave  8.1.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
invalid_index Class Reference
Inheritance diagram for invalid_index:
Collaboration diagram for invalid_index:

Public Member Functions

 invalid_index (const std::string &value, octave_idx_type ndim, octave_idx_type dimen)
 
const char * err_id (void) const
 
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="")
 
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 170 of file lo-array-errwarn.cc.

Constructor & Destructor Documentation

◆ invalid_index()

invalid_index::invalid_index ( const std::string &  value,
octave_idx_type  ndim,
octave_idx_type  dimen 
)
inline

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

References update_message().

Member Function Documentation

◆ err_id()

const char* invalid_index::err_id ( void  ) const
inlinevirtual

Implements index_exception.

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

References error_id_invalid_index.

◆ expression()

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

◆ set_pos()

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

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 
)
inlineinherited

◆ set_var()

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

◆ update_message()

void invalid_index::update_message ( void  )
inlinevirtual

Reimplemented from index_exception.

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

References index_exception::expression().

Referenced by invalid_index().

Member Data Documentation

◆ m_dim

octave_idx_type index_exception::m_dim
protectedinherited

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

Referenced by index_exception::expression().

◆ m_index

std::string index_exception::m_index
privateinherited

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

Referenced by index_exception::expression().

◆ m_nd

octave_idx_type index_exception::m_nd
protectedinherited

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

Referenced by index_exception::expression().

◆ m_var

std::string index_exception::m_var
protectedinherited

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

Referenced by index_exception::expression().


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