GNU Octave  4.4.1
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
octave::index_exception Class Referenceabstract

#include "lo-array-errwarn.h"

Inheritance diagram for octave::index_exception:
Collaboration diagram for octave::index_exception:

Public Member Functions

 index_exception (const std::string &index_arg, octave_idx_type nd_arg=0, octave_idx_type dim_arg=-1, const char *var_arg="")
 
 ~index_exception (void)=default
 
virtual std::string details (void) const =0
 
virtual const char * err_id (void) const =0
 
std::string idx (void) const
 
virtual std::string message (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="")
 

Protected Member Functions

std::string expression (void) const
 

Protected Attributes

octave_idx_type dim
 
octave_idx_type nd
 
std::string var
 

Private Attributes

std::string index
 

Detailed Description

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

Constructor & Destructor Documentation

◆ index_exception()

octave::index_exception::index_exception ( const std::string index_arg,
octave_idx_type  nd_arg = 0,
octave_idx_type  dim_arg = -1,
const char *  var_arg = "" 
)
inline

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

◆ ~index_exception()

octave::index_exception::~index_exception ( void  )
default

Member Function Documentation

◆ details()

virtual std::string octave::index_exception::details ( void  ) const
pure virtual

◆ err_id()

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

◆ expression()

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

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

References dim, i, idx(), nd, and var.

Referenced by message().

◆ idx()

std::string octave::index_exception::idx ( void  ) const
inline

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

References index.

Referenced by expression().

◆ message()

std::string octave::index_exception::message ( void  ) const
virtual

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

References details(), expression(), and string.

◆ set_pos()

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

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

References dim, and nd.

◆ set_pos_if_unset()

void octave::index_exception::set_pos_if_unset ( octave_idx_type  nd_arg,
octave_idx_type  dim_arg 
)
inline

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

References dim, and nd.

◆ set_var()

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

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

References var.

Member Data Documentation

◆ dim

octave_idx_type octave::index_exception::dim
protected

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

Referenced by expression(), set_pos(), and set_pos_if_unset().

◆ index

std::string octave::index_exception::index
private

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

Referenced by idx().

◆ nd

octave_idx_type octave::index_exception::nd
protected

◆ var

std::string octave::index_exception::var
protected

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

Referenced by octave::out_of_range::details(), expression(), and set_var().


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