GNU Octave  6.2.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
octave::invalid_index Class Reference
Inheritance diagram for octave::invalid_index:
Collaboration diagram for octave::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

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 169 of file lo-array-errwarn.cc.

Constructor & Destructor Documentation

◆ invalid_index()

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

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

References update_message().

Member Function Documentation

◆ err_id()

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

Implements octave::index_exception.

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

References octave::error_id_invalid_index.

◆ expression()

◆ set_pos()

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

◆ set_pos_if_unset()

◆ set_var()

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

◆ update_message()

void octave::invalid_index::update_message ( void  )
inlinevirtual

Reimplemented from octave::index_exception.

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

References octave::index_exception::expression().

Referenced by invalid_index().

Member Data Documentation

◆ m_dim

octave_idx_type octave::index_exception::m_dim
protectedinherited

◆ m_index

std::string octave::index_exception::m_index
privateinherited

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

Referenced by octave::index_exception::expression().

◆ m_nd

octave_idx_type octave::index_exception::m_nd
protectedinherited

◆ m_var

std::string octave::index_exception::m_var
protectedinherited

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