Classes | Defines | Functions

ov.h File Reference

#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"
Include dependency graph for ov.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); }

Definition at line 1105 of file ov.h.

#define OV_BINOP_FN (   name  ) 
Value:
inline octave_value \
  name (const octave_value& a1, const octave_value& a2) \
  { \
    return do_binary_op (octave_value::name, a1, a2); \
  }

Definition at line 1252 of file ov.h.

#define OV_BINOP_FN_OP (   name,
  op 
)
Value:
OV_BINOP_FN (name) \
  OV_BINOP_OP (name, op)

Definition at line 1266 of file ov.h.

#define OV_BINOP_OP (   name,
  op 
)
Value:
inline octave_value \
  operator op (const octave_value& a1, const octave_value& a2) \
  { \
    return name (a1, a2); \
  }

Definition at line 1259 of file ov.h.

#define OV_COMP_BINOP_FN (   name  ) 
Value:
inline octave_value \
  name (const octave_value& a1, const octave_value& a2) \
  { \
    return do_binary_op (octave_value::name, a1, a2); \
  }

Definition at line 1296 of file ov.h.

#define OV_REP_TYPE   octave_base_value

Definition at line 1314 of file ov.h.

#define OV_UNOP_FN (   name  ) 
Value:
inline octave_value \
  name (const octave_value& a) \
  { \
    return do_unary_op (octave_value::name, a); \
  }

Definition at line 1222 of file ov.h.

#define OV_UNOP_FN_OP (   name,
  op 
)
Value:
OV_UNOP_FN (name) \
  OV_UNOP_OP (name, op)

Definition at line 1236 of file ov.h.

#define OV_UNOP_OP (   name,
  op 
)
Value:
inline octave_value \
  operator op (const octave_value& a) \
  { \
    return name (a); \
  }

Definition at line 1229 of file ov.h.


Function Documentation

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   ) 

Definition at line 2662 of file ov.cc.

References octave_class::register_type().

Referenced by octave_main().

template<class Value >
Value octave_value_extract ( const octave_value  )  [inline]

Definition at line 1318 of file ov.h.

 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Defines