#include <cstdlib>
#include <iosfwd>
#include <string>
#include <list>
#include "Range.h"
#include "data-conv.h"
#include "idx-vector.h"
#include "mach-info.h"
#include "mxarray.h"
#include "mx-base.h"
#include "oct-alloc.h"
#include "oct-time.h"
#include "str-vec.h"
#include "oct-hdf5.h"
#include "oct-sort.h"
#include "ov-base.h"
Go to the source code of this file.
Classes |
class | octave_value |
Defines |
#define | DEF_DUMMY_VALUE_EXTRACTOR(VALUE, DEFVAL) |
#define | DEF_VALUE_EXTRACTOR(VALUE, MPREFIX) |
#define | MAPPER_FORWARD(F) octave_value F (void) const { return rep->map (octave_base_value::umap_ ## F); } |
#define | OV_BINOP_FN(name) |
#define | OV_BINOP_FN_OP(name, op) |
#define | OV_BINOP_OP(name, op) |
#define | OV_COMP_BINOP_FN(name) |
#define | OV_REP_TYPE octave_base_value |
#define | OV_UNOP_FN(name) |
#define | OV_UNOP_FN_OP(name, op) |
#define | OV_UNOP_OP(name, op) |
Functions |
OCTINTERP_API octave_value | do_binary_op (octave_value::binary_op op, const octave_value &a, const octave_value &b) |
OCTINTERP_API octave_value | do_binary_op (octave_value::compound_binary_op op, const octave_value &a, const octave_value &b) |
OCTINTERP_API octave_value | do_unary_op (octave_value::unary_op op, const octave_value &a) |
OCTINTERP_API void | install_types (void) |
template<class Value > |
Value | octave_value_extract (const octave_value &) |
Define Documentation
#define DEF_DUMMY_VALUE_EXTRACTOR |
( |
|
VALUE, |
|
|
|
DEFVAL | |
|
) |
| | |
Value:template<> \
inline VALUE octave_value_extract<VALUE> (const octave_value&) \
{ assert (false); return DEFVAL; }
Definition at line 1385 of file ov.h.
#define DEF_VALUE_EXTRACTOR |
( |
|
VALUE, |
|
|
|
MPREFIX | |
|
) |
| | |
Value:template<> \
inline VALUE octave_value_extract<VALUE> (const octave_value& v) \
{ return v.MPREFIX ## _value (); }
Definition at line 1321 of file ov.h.
#define MAPPER_FORWARD |
( |
|
F |
) |
octave_value F (void) const { return rep->map (octave_base_value::umap_ ## F); } |
#define OV_BINOP_FN |
( |
|
name |
) |
|
Value:
Definition at line 1252 of file ov.h.
#define OV_BINOP_FN_OP |
( |
|
name, |
|
|
|
op | |
|
) |
| | |
Value:
Definition at line 1266 of file ov.h.
#define OV_BINOP_OP |
( |
|
name, |
|
|
|
op | |
|
) |
| | |
Value:
Definition at line 1259 of file ov.h.
#define OV_COMP_BINOP_FN |
( |
|
name |
) |
|
Value:
Definition at line 1296 of file ov.h.
#define OV_UNOP_FN |
( |
|
name |
) |
|
Value:
Definition at line 1222 of file ov.h.
#define OV_UNOP_FN_OP |
( |
|
name, |
|
|
|
op | |
|
) |
| | |
Value:
Definition at line 1236 of file ov.h.
#define OV_UNOP_OP |
( |
|
name, |
|
|
|
op | |
|
) |
| | |
Value:
Definition at line 1229 of file ov.h.
Function Documentation
Definition at line 1886 of file ov.cc.
References octave_value::binary_op_as_string(), octave_value::class_name(), do_binary_op(), f, gripe_binary_op(), gripe_binary_op_conv(), gripe_library_execution_error(), octave_value_typeinfo::lookup_binary_class_op(), octave_value_typeinfo::lookup_binary_op(), octave_value::numeric_conversion_function(), octave_value::numeric_demotion_function(), octave_value(), octave_value::rep, octave_class::static_type_id(), octave_base_value::type_conv_info::type_id(), octave_value::type_id(), and octave_value::type_name().
Referenced by binary_assoc_op_defun_body(), binary_op_defun_body(), decompose_binary_op(), DEFUN_DLD(), do_binary_op(), octave_class::index_vector(), tree_compound_binary_expression::rvalue1(), and tree_binary_expression::rvalue1().
Definition at line 2310 of file ov.cc.
References octave_value::class_name(), do_unary_op(), f, gripe_library_execution_error(), gripe_unary_op(), gripe_unary_op_conv(), octave_value_typeinfo::lookup_unary_class_op(), octave_value_typeinfo::lookup_unary_op(), octave_value::numeric_conversion_function(), octave_value(), octave_value::rep, octave_class::static_type_id(), octave_value::type_id(), octave_value::type_name(), and octave_value::unary_op_as_string().
Referenced by decompose_binary_op(), do_unary_op(), tree_postfix_expression::rvalue1(), tree_prefix_expression::rvalue1(), and unary_op_defun_body().
OCTINTERP_API void install_types |
( |
void |
|
) |
|
template<class Value >
Value octave_value_extract |
( |
const octave_value & |
|
) |
[inline] |