GNU Octave
4.0.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
|
#include <cstdlib>
#include <iosfwd>
#include <list>
#include <string>
#include "Range.h"
#include "data-conv.h"
#include "mx-base.h"
#include "str-vec.h"
#include "error.h"
#include "oct-hdf5-id.h"
Go to the source code of this file.
Classes | |
struct | class_to_btyp< T > |
struct | class_to_btyp< bool > |
struct | class_to_btyp< char > |
struct | class_to_btyp< Complex > |
struct | class_to_btyp< double > |
struct | class_to_btyp< float > |
struct | class_to_btyp< FloatComplex > |
struct | class_to_btyp< octave_int16 > |
struct | class_to_btyp< octave_int32 > |
struct | class_to_btyp< octave_int64 > |
struct | class_to_btyp< octave_int8 > |
struct | class_to_btyp< octave_uint16 > |
struct | class_to_btyp< octave_uint32 > |
struct | class_to_btyp< octave_uint64 > |
struct | class_to_btyp< octave_uint8 > |
class | octave_base_value |
class | octave_base_value::type_conv_info |
Macros | |
#define | DECLARE_OV_BASE_TYPEID_FUNCTIONS_AND_DATA DECLARE_OV_TYPEID_FUNCTIONS_AND_DATA2(virtual) |
#define | DECLARE_OV_TYPEID_FUNCTIONS_AND_DATA DECLARE_OV_TYPEID_FUNCTIONS_AND_DATA2 (OCTAVE_EMPTY_CPP_ARG) |
#define | DECLARE_OV_TYPEID_FUNCTIONS_AND_DATA2(VIRTUAL) |
#define | DEF_CLASS_TO_BTYP(CLASS, BTYP) |
#define | DEFINE_OV_TYPEID_FUNCTIONS_AND_DATA(t, n, c) |
Enumerations | |
enum | builtin_type_t { btyp_double, btyp_float, btyp_complex, btyp_float_complex, btyp_int8, btyp_int16, btyp_int32, btyp_int64, btyp_uint8, btyp_uint16, btyp_uint32, btyp_uint64, btyp_bool, btyp_char, btyp_struct, btyp_cell, btyp_func_handle, btyp_unknown, btyp_num_types = btyp_unknown } |
Functions | |
bool | btyp_isarray (builtin_type_t btyp) |
bool | btyp_isfloat (builtin_type_t btyp) |
bool | btyp_isinteger (builtin_type_t btyp) |
bool | btyp_isnumeric (builtin_type_t btyp) |
OCTINTERP_API builtin_type_t | btyp_mixed_numeric (builtin_type_t x, builtin_type_t y) |
OCTINTERP_API bool | called_from_builtin (void) |
OCTINTERP_API string_vector | get_builtin_classes (void) |
OCTINTERP_API octave_value | make_idx_args (const std::string &type, const std::list< octave_value_list > &idx, const std::string &who) |
Variables | |
OCTINTERP_API std::string | btyp_class_name [btyp_num_types] |
OCTINTERP_API bool | Vsparse_auto_mutate |
#define DECLARE_OV_BASE_TYPEID_FUNCTIONS_AND_DATA DECLARE_OV_TYPEID_FUNCTIONS_AND_DATA2(virtual) |
#define DECLARE_OV_TYPEID_FUNCTIONS_AND_DATA DECLARE_OV_TYPEID_FUNCTIONS_AND_DATA2 (OCTAVE_EMPTY_CPP_ARG) |
#define DECLARE_OV_TYPEID_FUNCTIONS_AND_DATA2 | ( | VIRTUAL | ) |
#define DEF_CLASS_TO_BTYP | ( | CLASS, | |
BTYP | |||
) |
#define DEFINE_OV_TYPEID_FUNCTIONS_AND_DATA | ( | t, | |
n, | |||
c | |||
) |
enum builtin_type_t |
|
inline |
|
inline |
Definition at line 94 of file ov-base.h.
References btyp_float_complex.
|
inline |
Definition at line 91 of file ov-base.h.
References btyp_int8, and btyp_uint64.
Referenced by build_sup_table().
|
inline |
Definition at line 88 of file ov-base.h.
References btyp_uint64.
OCTINTERP_API builtin_type_t btyp_mixed_numeric | ( | builtin_type_t | x, |
builtin_type_t | y | ||
) |
Definition at line 59 of file ov-base.cc.
References btyp_bool, btyp_double, btyp_float, btyp_float_complex, btyp_int64, btyp_int8, btyp_uint64, btyp_uint8, btyp_unknown, and x.
Referenced by do_minmax_body().
OCTINTERP_API bool called_from_builtin | ( | void | ) |
Definition at line 1647 of file ov-base.cc.
References octave_call_stack::caller(), and octave_function::name().
Referenced by octave_class::numel(), octave_classdef::print(), octave_class::size(), octave_classdef::subsasgn(), octave_class::subsasgn_common(), octave_class::subsref(), and octave_classdef::subsref().
OCTINTERP_API string_vector get_builtin_classes | ( | void | ) |
Definition at line 93 of file ov-base.cc.
References btyp_class_name, btyp_complex, btyp_float_complex, btyp_num_types, and Array< T >::is_empty().
OCTINTERP_API octave_value make_idx_args | ( | const std::string & | type, |
const std::list< octave_value_list > & | idx, | ||
const std::string & | who | ||
) |
Definition at line 1570 of file ov-base.cc.
References octave_map::assign(), error(), octave_value::is_string(), octave_value_list::length(), octave_value::length(), panic_impossible, and sanitize().
Referenced by octave_classdef::subsasgn(), octave_class::subsasgn_common(), octave_class::subsref(), and octave_classdef::subsref().
OCTINTERP_API std::string btyp_class_name[btyp_num_types] |
Definition at line 83 of file ov-base.cc.
Referenced by get_builtin_classes(), get_dispatch_type(), and make_fcn_handle().
OCTINTERP_API bool Vsparse_auto_mutate |
Definition at line 118 of file ov-base.cc.
Referenced by Fsparse(), octave_sparse_bool_matrix::try_narrowing_conversion(), octave_sparse_matrix::try_narrowing_conversion(), and octave_sparse_complex_matrix::try_narrowing_conversion().