GNU Octave  4.0.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Macros | Functions
ov-str-mat.cc File Reference
#include <cctype>
#include <iostream>
#include <vector>
#include "data-conv.h"
#include "lo-ieee.h"
#include "mach-info.h"
#include "mx-base.h"
#include "oct-locbuf.h"
#include "byte-swap.h"
#include "defun.h"
#include "gripes.h"
#include "ls-ascii-helper.h"
#include "ls-hdf5.h"
#include "ls-oct-ascii.h"
#include "ls-utils.h"
#include "oct-obj.h"
#include "oct-hdf5.h"
#include "oct-stream.h"
#include "ops.h"
#include "ov-scalar.h"
#include "ov-re-mat.h"
#include "ov-str-mat.h"
#include "pr-output.h"
#include "pt-mat.h"
#include "utils.h"
Include dependency graph for ov-str-mat.cc:

Go to the source code of this file.

Macros

#define CHAR_MATRIX_CONV(T, INIT, TNAME, FCN)
 

Functions

static octave_base_valuedefault_numeric_conversion_function (const octave_base_value &a)
 

Macro Definition Documentation

#define CHAR_MATRIX_CONV (   T,
  INIT,
  TNAME,
  FCN 
)
Value:
T retval INIT; \
\
if (! force_string_conv) \
gripe_invalid_conversion ("string", TNAME); \
else \
{ \
warning_with_id ("Octave:str-to-num", \
"implicit conversion from %s to %s", \
"string", TNAME); \
\
retval = octave_char_matrix::FCN (); \
} \
\
return retval
void warning_with_id(const char *id, const char *fmt,...)
Definition: error.cc:696
Definition: oct-parse.h:133
void gripe_invalid_conversion(const std::string &from, const std::string &to)
Definition: gripes.cc:99

Definition at line 153 of file ov-str-mat.cc.

Referenced by octave_char_matrix_str::array_value(), octave_char_matrix_str::complex_array_value(), octave_char_matrix_str::complex_matrix_value(), octave_char_matrix_str::complex_value(), octave_char_matrix_str::double_value(), and octave_char_matrix_str::matrix_value().

Function Documentation

static octave_base_value* default_numeric_conversion_function ( const octave_base_value a)
static