lo-array-gripes.h

Go to the documentation of this file.
00001 /*
00002 
00003 Copyright (C) 2000-2012 John W. Eaton
00004 
00005 This file is part of Octave.
00006 
00007 Octave is free software; you can redistribute it and/or modify it
00008 under the terms of the GNU General Public License as published by the
00009 Free Software Foundation; either version 3 of the License, or (at your
00010 option) any later version.
00011 
00012 Octave is distributed in the hope that it will be useful, but WITHOUT
00013 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
00014 FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
00015 for more details.
00016 
00017 You should have received a copy of the GNU General Public License
00018 along with Octave; see the file COPYING.  If not, see
00019 <http://www.gnu.org/licenses/>.
00020 
00021 */
00022 
00023 #if !defined (octave_liboctave_array_gripes_h)
00024 #define octave_liboctave_array_gripes_h 1
00025 
00026 #include "dim-vector.h"
00027 
00028 extern OCTAVE_API const char *error_id_nonconformant_args;
00029 
00030 extern OCTAVE_API const char *error_id_index_out_of_bounds;
00031 
00032 extern OCTAVE_API const char *error_id_invalid_index;
00033 
00034 extern void OCTAVE_API
00035 gripe_nan_to_logical_conversion (void);
00036 
00037 extern void OCTAVE_API
00038 gripe_nan_to_character_conversion (void);
00039 
00040 extern void OCTAVE_API
00041 gripe_nonconformant (const char *op,
00042                      octave_idx_type op1_len, octave_idx_type op2_len);
00043 
00044 extern void OCTAVE_API
00045 gripe_nonconformant (const char *op,
00046                      octave_idx_type op1_nr, octave_idx_type op1_nc,
00047                      octave_idx_type op2_nr, octave_idx_type op2_nc);
00048 
00049 
00050 extern void OCTAVE_API
00051 gripe_nonconformant (const char *op, const dim_vector& op1_dims,
00052                      const dim_vector& op2_dims);
00053 
00054 extern void OCTAVE_API
00055 gripe_index_out_of_range (int nd, int dim,
00056                           octave_idx_type iext, octave_idx_type ext);
00057 
00058 extern void OCTAVE_API
00059 gripe_del_index_out_of_range (bool is1d, octave_idx_type iext,
00060                               octave_idx_type ext);
00061 
00062 extern void OCTAVE_API
00063 gripe_invalid_index (void);
00064 
00065 extern void OCTAVE_API
00066 gripe_invalid_resize (void);
00067 
00068 extern void OCTAVE_API
00069 gripe_invalid_assignment_size (void);
00070 
00071 extern void OCTAVE_API
00072 gripe_assignment_dimension_mismatch (void);
00073 
00074 #endif
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Defines