Defines | 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-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.

Defines

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

Functions

static octave_base_valuedefault_numeric_conversion_function (const octave_base_value &a)
 DEFINE_OCTAVE_ALLOCATOR (octave_char_matrix_sq_str)
 DEFINE_OCTAVE_ALLOCATOR (octave_char_matrix_str)
 DEFINE_OV_TYPEID_FUNCTIONS_AND_DATA (octave_char_matrix_str,"string","char")
 DEFINE_OV_TYPEID_FUNCTIONS_AND_DATA (octave_char_matrix_sq_str,"sq_string","char")

Define 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

Definition at line 152 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]
DEFINE_OCTAVE_ALLOCATOR ( octave_char_matrix_sq_str   ) 
DEFINE_OCTAVE_ALLOCATOR ( octave_char_matrix_str   ) 
DEFINE_OV_TYPEID_FUNCTIONS_AND_DATA ( octave_char_matrix_str  ,
"string"  ,
"char"   
)
DEFINE_OV_TYPEID_FUNCTIONS_AND_DATA ( octave_char_matrix_sq_str  ,
"sq_string"  ,
"char"   
)
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Defines