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

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

octave_idx_type m_extent
 
std::string m_index
 
dim_vector m_size
 

Detailed Description

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

Constructor & Destructor Documentation

◆ out_of_range()

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

References update_message().

Member Function Documentation

◆ err_id()

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

Implements index_exception.

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

References error_id_index_out_of_bounds.

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

Reimplemented from index_exception.

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

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

Referenced by out_of_range().

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_extent

octave_idx_type out_of_range::m_extent
private

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

Referenced by update_message().

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

dim_vector out_of_range::m_size
private

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

Referenced by update_message().

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