GNU Octave  4.2.1
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Public Member Functions | Protected Member Functions | Protected Attributes | Private Attributes | List of all members
octave::index_exception Class Referenceabstract

#include "lo-array-errwarn.h"

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

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

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 = "" 

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

octave::index_exception::~index_exception ( void  )

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

Member Function Documentation

virtual std::string octave::index_exception::details ( void  ) const
pure virtual
virtual const char* octave::index_exception::err_id ( void  ) const
pure virtual
std::string octave::index_exception::expression ( void  ) const

Definition at line 124 of file

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

Referenced by message().

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

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

References index.

Referenced by octave_base_matrix< MT >::assign(), catch(), and expression().

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

Definition at line 113 of file

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

Referenced by final_index_error(), tree_simple_assignment::rvalue1(), and sub2ind().

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

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

References dim, and nd.

Referenced by Cell::assign(), and Cell::delete_elements().

void octave::index_exception::set_pos_if_unset ( octave_idx_type  nd_arg,
octave_idx_type  dim_arg 
void octave::index_exception::set_var ( const std::string var_arg = "")

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

References var.

Referenced by final_index_error(), tree_simple_assignment::rvalue1(), and sub2ind().

Member Data Documentation

octave_idx_type octave::index_exception::dim

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

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

std::string octave::index_exception::index

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

Referenced by idx().

octave_idx_type octave::index_exception::nd
std::string octave::index_exception::var

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: