24 #if !defined (octave_ov_h)
187 #if defined (HAVE_LONG_LONG_INT)
190 #if defined (HAVE_UNSIGNED_LONG_LONG_INT)
247 char type = '\'') GCC_ATTR_DEPRECATED;
251 const MatrixType& t = MatrixType ());
254 const MatrixType& t = MatrixType ());
281 bool zero_based = false,
bool cache_index = false);
290 const std::list<std::
string>& plist);
339 if (
rep->
count > obsolete_copies + 1)
397 const std::list<octave_value_list>& idx)
401 const std::list<octave_value_list>& idx,
403 {
return rep->
subsref (type, idx, auto_add); }
406 const std::list<octave_value_list>& idx,
410 const std::list<octave_value_list>& idx,
412 const std::list<octave_lvalue> *lvalue_list);
415 std::list<octave_value_list>& idx,
419 const std::string& type,
const
420 std::list<octave_value_list>& idx,
424 const std::string& type,
const
425 std::list<octave_value_list>& idx,
426 const std::list<octave_lvalue> *lvalue_list,
430 std::list<octave_value_list>& idx,
434 bool resize_ok =
false)
442 const std::list<octave_lvalue> *lvalue_list);
445 const std::list<octave_value_list>& idx,
449 const std::list<octave_value_list>& idx,
453 const std::list<octave_value_list>& idx,
588 {
return rep->
all (dim); }
591 {
return rep->
any (dim); }
713 short_value (
bool req_int =
false,
bool frc_str_conv =
false)
const
720 int int_value (
bool req_int =
false,
bool frc_str_conv =
false)
const
724 uint_value (
bool req_int =
false,
bool frc_str_conv =
false)
const
731 long_value (
bool req_int =
false,
bool frc_str_conv =
false)
const
735 ulong_value (
bool req_int =
false,
bool frc_str_conv =
false)
const
739 int64_value (
bool req_int =
false,
bool frc_str_conv =
false)
const
747 idx_type_value (
bool req_int =
false,
bool frc_str_conv =
false)
const;
931 bool frc_vec_conv =
false)
const;
935 bool frc_vec_conv =
false)
const;
938 bool frc_vec_conv =
false)
const;
942 bool frc_vec_conv =
false)
const;
946 bool frc_vec_conv =
false)
const;
950 bool frc_vec_conv =
false)
const;
953 bool frc_vec_conv =
false)
const;
957 bool frc_vec_conv =
false)
const;
963 bool frc_str_conv =
false,
964 bool frc_vec_conv =
false)
const;
968 bool frc_str_conv =
false,
969 bool frc_vec_conv =
false)
const;
972 bool frc_vec_conv =
false)
const;
975 bool frc_vec_conv =
false)
const;
978 bool frc_vec_conv =
false)
const;
982 bool frc_vec_conv =
false)
const;
1005 char type =
'\'')
const
1018 void print (std::ostream& os,
bool pr_as_read_syntax =
false)
const
1019 {
rep->
print (os, pr_as_read_syntax); }
1021 void print_raw (std::ostream& os,
bool pr_as_read_syntax =
false)
const
1046 const std::list<octave_value_list>& idx);
1065 const std::string& prefix = std::string ())
const;
1078 #if defined (HAVE_HDF5)
1079 bool save_hdf5 (hid_t loc_id,
const char *name,
bool save_as_floats)
1080 {
return rep->
save_hdf5 (loc_id, name, save_as_floats); }
1109 {
return rep->
sort (dim, mode); }
1112 {
return rep->
sort (sidx, dim, mode); }
1131 #define MAPPER_FORWARD(F) \
1132 octave_value F (void) const { return rep->map (octave_base_value::umap_ ## F); }
1200 #undef MAPPER_FORWARD
1203 {
return rep->
map (umap); }
1252 #define OV_UNOP_FN(name) \
1253 inline octave_value \
1254 name (const octave_value& a) \
1256 return do_unary_op (octave_value::name, a); \
1259 #define OV_UNOP_OP(name, op) \
1260 inline octave_value \
1261 operator op (const octave_value& a) \
1266 #define OV_UNOP_FN_OP(name, op) \
1268 OV_UNOP_OP (name, op)
1282 #define OV_BINOP_FN(name) \
1283 inline octave_value \
1284 name (const octave_value& a1, const octave_value& a2) \
1286 return do_binary_op (octave_value::name, a1, a2); \
1289 #define OV_BINOP_OP(name, op) \
1290 inline octave_value \
1291 operator op (const octave_value& a1, const octave_value& a2) \
1293 return name (a1, a2); \
1296 #define OV_BINOP_FN_OP(name, op) \
1297 OV_BINOP_FN (name) \
1298 OV_BINOP_OP (name, op)
1326 #define OV_COMP_BINOP_FN(name) \
1327 inline octave_value \
1328 name (const octave_value& a1, const octave_value& a2) \
1330 return do_binary_op (octave_value::name, a1, a2); \
1344 #define OV_REP_TYPE octave_base_value
1347 template<
class Value>
1351 #define DEF_VALUE_EXTRACTOR(VALUE,MPREFIX) \
1353 inline VALUE octave_value_extract<VALUE> (const octave_value& v) \
1354 { return v.MPREFIX ## _value (); }
1413 #undef DEF_VALUE_EXTRACTOR
1415 #define DEF_DUMMY_VALUE_EXTRACTOR(VALUE,DEFVAL) \
1417 inline VALUE octave_value_extract<VALUE> (const octave_value&) \
1418 { assert (false); return DEFVAL; }
1422 #undef DEF_DUMMY_VALUE_EXTRACTOR