Navigation

Operators and Keywords

Function List:

C++ API

ov-base.cc File Reference

#include <climits>
#include <iostream>
#include "lo-ieee.h"
#include "lo-mappers.h"
#include "defun.h"
#include "gripes.h"
#include "oct-map.h"
#include "oct-obj.h"
#include "oct-lvalue.h"
#include "oct-stream.h"
#include "ops.h"
#include "ov-base.h"
#include "ov-cell.h"
#include "ov-ch-mat.h"
#include "ov-complex.h"
#include "ov-cx-mat.h"
#include "ov-list.h"
#include "ov-range.h"
#include "ov-re-mat.h"
#include "ov-scalar.h"
#include "ov-str-mat.h"
#include "ov-fcn-handle.h"
#include "parse.h"
#include "utils.h"
#include "variables.h"

Include dependency graph for ov-base.cc:


Defines

#define INT_CONV_METHOD(T, F, MIN_LIMIT, MAX_LIMIT)
#define UNDEFINED_MAPPER(F)
#define STRING_MAPPER(F)

Functions

 DEFINE_OV_TYPEID_FUNCTIONS_AND_DATA (octave_base_value,"<unknown type>","unknown")

Variables

bool Vsparse_auto_mutate = false

Define Documentation

#define INT_CONV_METHOD ( T,
F,
MIN_LIMIT,
MAX_LIMIT   ) 

Value:

T \
  octave_base_value::F ## _value (bool require_int, bool frc_str_conv) const \
  { \
    T retval = 0; \
 \
    double d = double_value (frc_str_conv); \
 \
    if (! error_state) \
      { \
        if (require_int && D_NINT (d) != d) \
          error ("conversion of %g to " #T " value failed", d); \
        else if (d < MIN_LIMIT) \
          retval = MIN_LIMIT; \
        else if (d > MAX_LIMIT) \
          retval = MAX_LIMIT; \
        else \
          retval = static_cast<T> (::fix (d));  \
      } \
    else \
      gripe_wrong_type_arg ("octave_base_value::" #F "_value ()", \
                            type_name ()); \
 \
    return retval; \
  }

#define STRING_MAPPER (  ) 

Value:

octave_value \
  octave_base_value::F (void) const \
  { \
    octave_value tmp = char_array_value (true); \
    return error_state ? octave_value () : octave_value (tmp.F ()); \
  }

#define UNDEFINED_MAPPER (  ) 

Value:

octave_value \
  octave_base_value::F (void) const \
  { \
    gripe_wrong_type_arg ("octave_base_value::" #F " ()", type_name ()); \
    return octave_value (); \
  }


Function Documentation

DEFINE_OV_TYPEID_FUNCTIONS_AND_DATA ( octave_base_value  ,
"<unknown type>"  ,
"unknown"   
)


Variable Documentation