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

Public Member Functions

 out_of_range (const std::string &value, octave_idx_type nd, octave_idx_type dim, octave_idx_type ext, const dim_vector &size)
 
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

octave_idx_type m_extent
 
std::string m_index
 
dim_vector m_size
 

Detailed Description

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

Constructor & Destructor Documentation

◆ out_of_range()

octave::out_of_range::out_of_range ( const std::string &  value,
octave_idx_type  nd,
octave_idx_type  dim,
octave_idx_type  ext,
const dim_vector size 
)
inline

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

References update_message().

Member Function Documentation

◆ err_id()

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

Implements octave::index_exception.

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

References octave::error_id_index_out_of_bounds.

◆ 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::out_of_range::update_message ( void  )
inlinevirtual

Reimplemented from octave::index_exception.

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

References octave::index_exception::expression(), m_extent, m_size, and dim_vector::str().

Referenced by out_of_range().

Member Data Documentation

◆ m_dim

octave_idx_type octave::index_exception::m_dim
protectedinherited

◆ m_extent

octave_idx_type octave::out_of_range::m_extent
private

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

Referenced by update_message().

◆ 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_size

dim_vector octave::out_of_range::m_size
private

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

Referenced by update_message().

◆ m_var

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

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