Functions

ov-null-mat.cc File Reference

#include "ov-null-mat.h"
#include "ops.h"
#include "defun.h"
Include dependency graph for ov-null-mat.cc:

Go to the source code of this file.

Functions

static octave_base_valuedefault_null_matrix_numeric_conversion_function (const octave_base_value &a)
static octave_base_valuedefault_null_sq_str_numeric_conversion_function (const octave_base_value &a)
static octave_base_valuedefault_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")

Function Documentation

static octave_base_value* default_null_matrix_numeric_conversion_function ( const octave_base_value a  )  [static]
static octave_base_value* default_null_sq_str_numeric_conversion_function ( const octave_base_value a  )  [static]
static octave_base_value* default_null_str_numeric_conversion_function ( const octave_base_value a  )  [static]
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().

 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Defines