Functions | Variables

ov-range.cc File Reference

#include <iostream>
#include "lo-ieee.h"
#include "lo-utils.h"
#include "defun.h"
#include "variables.h"
#include "gripes.h"
#include "ops.h"
#include "oct-obj.h"
#include "ov-range.h"
#include "ov-re-mat.h"
#include "ov-scalar.h"
#include "pr-output.h"
#include "byte-swap.h"
#include "ls-ascii-helper.h"
#include "ls-hdf5.h"
#include "ls-utils.h"
Include dependency graph for ov-range.cc:

Go to the source code of this file.

Functions

static octave_base_valuedefault_numeric_conversion_function (const octave_base_value &a)
 DEFINE_OCTAVE_ALLOCATOR (octave_range)
 DEFINE_OV_TYPEID_FUNCTIONS_AND_DATA (octave_range,"range","double")
 DEFUN (allow_noninteger_range_as_index, args, nargout,"-*- texinfo -*-\n\ @deftypefn {Built-in Function} {@var{val} =} allow_noninteger_range_as_index ()\n\ @deftypefnx {Built-in Function} {@var{old_val} =} allow_noninteger_range_as_index (@var{new_val})\n\ @deftypefnx {Built-in Function} {} allow_noninteger_range_as_index (@var{new_val}, \"local\")\n\ Query or set the internal variable that controls whether non-integer\n\ ranges are allowed as indices. This might be useful for @sc{matlab}\n\ compatibility; however, it is still not entirely compatible because\n\ @sc{matlab} treats the range expression differently in different contexts.\n\ \n\ When called from inside a function with the \"local\" option, the variable is\n\ changed locally for the function and any subroutines it calls. The original\n\ variable value is restored when exiting the function.\n\ @end deftypefn")
static void skip_comments (std::istream &is)

Variables

bool Vallow_noninteger_range_as_index = false

Function Documentation

static octave_base_value* default_numeric_conversion_function ( const octave_base_value a  )  [static]

Definition at line 55 of file ov-range.cc.

References CAST_CONV_ARG.

Referenced by octave_range::numeric_conversion_function().

DEFINE_OCTAVE_ALLOCATOR ( octave_range   ) 
DEFINE_OV_TYPEID_FUNCTIONS_AND_DATA ( octave_range  ,
"range"  ,
"double"   
)
DEFUN ( allow_noninteger_range_as_index  ,
args  ,
nargout   
)

Definition at line 648 of file ov-range.cc.

References SET_INTERNAL_VARIABLE.

static void skip_comments ( std::istream &  is  )  [static]

Definition at line 385 of file ov-range.cc.

References skip_until_newline().

Referenced by octave_range::load_ascii().


Variable Documentation

Definition at line 48 of file ov-range.cc.

Referenced by DEFUN(), and octave_range::index_vector().

 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Defines