23 #if !defined (octave_ov_lazy_idx_h)
24 #define octave_ov_lazy_idx_h 1
52 type_conv_info numeric_conversion_function (
void)
const;
76 const std::list<octave_value_list>& idx)
77 {
return make_value ().
subsref (type, idx); }
80 const std::list<octave_value_list>& idx,
int)
84 bool resize_ok =
false)
85 {
return make_value ().
do_index_op (idx, resize_ok); }
98 {
return make_value ().
resize (dv, fill); }
127 {
return make_value ().is_true (); }
129 bool print_as_scalar (
void)
const
130 {
return make_value ().print_as_scalar (); }
132 void print (std::ostream& os,
bool pr_as_read_syntax =
false)
const
133 { make_value ().print (os, pr_as_read_syntax); }
135 void print_info (std::ostream& os,
const std::string& prefix)
const
136 { make_value ().print_info (os, prefix); }
138 #define FORWARD_VALUE_QUERY(TYPE,NAME) \
140 NAME (void) const { return make_value ().NAME (); }
151 #define FORWARD_VALUE_QUERY1(TYPE,NAME) \
153 NAME (bool flag = false) const { return make_value ().NAME (flag); }
190 {
return make_value ().
diag (k); }
195 void print_raw (std::ostream& os,
bool pr_as_read_syntax =
false)
const
196 {
return make_value ().
print_raw (os, pr_as_read_syntax); }
198 bool save_ascii (std::ostream& os);
200 bool load_ascii (std::istream& is);
202 bool save_binary (std::ostream& os,
bool& save_as_floats);
204 bool load_binary (std::istream& is,
bool swap,
212 {
return make_value ().write (os, block_size, output_type, skip, flt_fmt); }
216 void *mex_get_data (
void)
const
217 {
return make_value ().mex_get_data (); }
220 {
return make_value ().as_mxArray (); }
223 {
return make_value ().
map (umap); }
228 if (value.is_undefined ())
236 if (value.is_undefined ())