Navigation

Operators and Keywords

Function List:

C++ API

ov-base.h File Reference

#include <cstdlib>
#include <iosfwd>
#include <list>
#include <string>
#include "Range.h"
#include "data-conv.h"
#include "mxarray.h"
#include "mx-base.h"
#include "str-vec.h"
#include "error.h"
#include "oct-hdf5.h"

Include dependency graph for ov-base.h:

Go to the source code of this file.


Classes

struct  class_to_btyp< T >
class  octave_base_value
class  octave_base_value::octave_base_value::type_conv_info

Defines

#define octave_base_value_h   1
#define DEF_CLASS_TO_BTYP(CLASS, BTYP)
#define DECLARE_OV_TYPEID_FUNCTIONS_AND_DATA   DECLARE_OV_TYPEID_FUNCTIONS_AND_DATA2 (OCTAVE_EMPTY_CPP_ARG)
#define DECLARE_OV_BASE_TYPEID_FUNCTIONS_AND_DATA   DECLARE_OV_TYPEID_FUNCTIONS_AND_DATA2(virtual)
#define DECLARE_OV_TYPEID_FUNCTIONS_AND_DATA2(VIRTUAL)
#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_char, btyp_bool, btyp_unknown
}

Functions

 DEF_CLASS_TO_BTYP (double, btyp_double)
 DEF_CLASS_TO_BTYP (float, btyp_float)
 DEF_CLASS_TO_BTYP (Complex, btyp_complex)
 DEF_CLASS_TO_BTYP (FloatComplex, btyp_float_complex)
 DEF_CLASS_TO_BTYP (octave_int8, btyp_int8)
 DEF_CLASS_TO_BTYP (octave_int16, btyp_int16)
 DEF_CLASS_TO_BTYP (octave_int32, btyp_int32)
 DEF_CLASS_TO_BTYP (octave_int64, btyp_int64)
 DEF_CLASS_TO_BTYP (octave_uint8, btyp_uint8)
 DEF_CLASS_TO_BTYP (octave_uint16, btyp_uint16)
 DEF_CLASS_TO_BTYP (octave_uint32, btyp_uint32)
 DEF_CLASS_TO_BTYP (octave_uint64, btyp_uint64)
 DEF_CLASS_TO_BTYP (bool, btyp_bool)
 DEF_CLASS_TO_BTYP (char, btyp_char)

Variables

bool Vsparse_auto_mutate

Define Documentation

#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   ) 

Value:

public: \
    VIRTUAL int type_id (void) const { return t_id; } \
    VIRTUAL std::string type_name (void) const { return t_name; } \
    VIRTUAL std::string class_name (void) const { return c_name; } \
    static int static_type_id (void) { return t_id; } \
    static std::string static_type_name (void) { return t_name; } \
    static std::string static_class_name (void) { return c_name; } \
    static void register_type (void); \
 \
  private: \
    static int t_id; \
    static const std::string t_name; \
    static const std::string c_name;

#define DEF_CLASS_TO_BTYP ( CLASS,
BTYP   ) 

Value:

template <> \
struct class_to_btyp<CLASS> \
{ static const builtin_type_t btyp = BTYP; }

#define DEFINE_OV_TYPEID_FUNCTIONS_AND_DATA ( t,
n,
 ) 

Value:

int t::t_id (-1); \
  const std::string t::t_name (n); \
  const std::string t::c_name (c); \
  void t::register_type (void) \
    { \
      t_id = octave_value_typeinfo::register_type (t::t_name, \
                                                   t::c_name, \
                                                   octave_value (new t ())); \
    }

#define octave_base_value_h   1


Enumeration Type Documentation

Enumerator:
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_char 
btyp_bool 
btyp_unknown 


Function Documentation

DEF_CLASS_TO_BTYP ( char  ,
btyp_char   
)

DEF_CLASS_TO_BTYP ( bool  ,
btyp_bool   
)

DEF_CLASS_TO_BTYP ( octave_uint64  ,
btyp_uint64   
)

DEF_CLASS_TO_BTYP ( octave_uint32  ,
btyp_uint32   
)

DEF_CLASS_TO_BTYP ( octave_uint16  ,
btyp_uint16   
)

DEF_CLASS_TO_BTYP ( octave_uint8  ,
btyp_uint8   
)

DEF_CLASS_TO_BTYP ( octave_int64  ,
btyp_int64   
)

DEF_CLASS_TO_BTYP ( octave_int32  ,
btyp_int32   
)

DEF_CLASS_TO_BTYP ( octave_int16  ,
btyp_int16   
)

DEF_CLASS_TO_BTYP ( octave_int8  ,
btyp_int8   
)

DEF_CLASS_TO_BTYP ( FloatComplex  ,
btyp_float_complex   
)

DEF_CLASS_TO_BTYP ( Complex  ,
btyp_complex   
)

DEF_CLASS_TO_BTYP ( float  ,
btyp_float   
)

DEF_CLASS_TO_BTYP ( double  ,
btyp_double   
)


Variable Documentation