#include "ov-null-mat.h"
#include "ops.h"
#include "defun.h"
Go to the source code of this file.
Functions | |
static octave_base_value * | default_null_matrix_numeric_conversion_function (const octave_base_value &a) |
static octave_base_value * | default_null_sq_str_numeric_conversion_function (const octave_base_value &a) |
static octave_base_value * | default_null_str_numeric_conversion_function (const octave_base_value &a) |
DEFINE_OV_TYPEID_FUNCTIONS_AND_DATA (octave_null_sq_str,"null_sq_string","char") | |
DEFINE_OV_TYPEID_FUNCTIONS_AND_DATA (octave_null_matrix,"null_matrix","double") | |
DEFINE_OV_TYPEID_FUNCTIONS_AND_DATA (octave_null_str,"null_string","char") | |
DEFUN (isnull, args,,"-*- texinfo -*-\n\ @deftypefn {Built-in Function} {} isnull (@var{x})\n\ Return true if @var{x} is a special null matrix, string, or single quoted\n\ string. Indexed assignment with such a value on the right-hand side should\n\ delete array elements. This function should be used when overloading\n\ indexed assignment for user-defined classes instead of @code{isempty}, to\n\ distinguish the cases:\n\ @table @asis\n\ @item @code{A(I) = []}\n\ This should delete elements if @code{I} is nonempty.\n\ \n\ @item @code{X = []; A(I) = X}\n\ This should give an error if @code{I} is nonempty.\n\ @end table\n\ @seealso{isempty, isindex}\n\ @end deftypefn") |
static octave_base_value* default_null_matrix_numeric_conversion_function | ( | const octave_base_value & | a | ) | [static] |
Definition at line 36 of file ov-null-mat.cc.
References octave_base_value::empty_clone().
Referenced by octave_null_matrix::numeric_conversion_function().
static octave_base_value* default_null_sq_str_numeric_conversion_function | ( | const octave_base_value & | a | ) | [static] |
Definition at line 76 of file ov-null-mat.cc.
References octave_base_value::empty_clone().
Referenced by octave_null_sq_str::numeric_conversion_function().
static octave_base_value* default_null_str_numeric_conversion_function | ( | const octave_base_value & | a | ) | [static] |
Definition at line 56 of file ov-null-mat.cc.
References octave_base_value::empty_clone().
Referenced by octave_null_str::numeric_conversion_function().
DEFINE_OV_TYPEID_FUNCTIONS_AND_DATA | ( | octave_null_sq_str | , | |
"null_sq_string" | , | |||
"char" | ||||
) |
DEFINE_OV_TYPEID_FUNCTIONS_AND_DATA | ( | octave_null_matrix | , | |
"null_matrix" | , | |||
"double" | ||||
) |
DEFINE_OV_TYPEID_FUNCTIONS_AND_DATA | ( | octave_null_str | , | |
"null_string" | , | |||
"char" | ||||
) |
DEFUN | ( | isnull | , | |
args | ||||
) |
Definition at line 91 of file ov-null-mat.cc.
References octave_value::is_null_value(), and print_usage().