Navigation

Operators and Keywords

Function List:

C++ API

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 octave_value_h   1
#define MAPPER_FORWARD(F)   octave_value F (void) const { return rep->F (); }
#define OV_UNOP_FN(name)
#define OV_UNOP_OP(name, op)
#define OV_UNOP_FN_OP(name, op)
#define OV_BINOP_FN(name)
#define OV_BINOP_OP(name, op)
#define OV_BINOP_FN_OP(name, op)
#define OV_COMP_BINOP_FN(name)
#define OV_REP_TYPE   octave_base_value
#define DEF_VALUE_EXTRACTOR(VALUE, MPREFIX)

Functions

OCTINTERP_API octave_value do_unary_op (octave_value::unary_op op, const octave_value &a)
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 void install_types (void)
template<class Value >
Value octave_value_extract (const octave_value &)

Define Documentation

#define DEF_VALUE_EXTRACTOR ( VALUE,
MPREFIX   ) 

Value:

template<> \
inline VALUE octave_value_extract<VALUE> (const octave_value& v) \
  { return v.MPREFIX ## _value (); }

#define MAPPER_FORWARD (  )     octave_value F (void) const { return rep->F (); }

#define octave_value_h   1

#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); \
  }

#define OV_BINOP_FN_OP ( name,
op   ) 

#define OV_BINOP_OP ( name,
op   ) 

Value:

inline octave_value \
  operator op (const octave_value& a1, const octave_value& a2) \
  { \
    return name (a1, a2); \
  }

#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); \
  }

#define OV_REP_TYPE   octave_base_value

#define OV_UNOP_FN ( name   ) 

Value:

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

#define OV_UNOP_FN_OP ( name,
op   ) 

#define OV_UNOP_OP ( name,
op   ) 

Value:

inline octave_value \
  operator op (const octave_value& a) \
  { \
    return name (a); \
  }


Function Documentation

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_binary_op ( octave_value::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  )  [inline]