23 #if !defined (octave_ov_struct_h)
24 #define octave_ov_struct_h 1
69 const std::list<octave_value_list>& idx)
76 const std::list<octave_value_list>&,
int);
79 const std::list<octave_value_list>& idx,
83 const std::string&
type);
86 const std::list<octave_value_list>& idx,
92 {
return map.
permute (vec, inv); }
95 bool resize_ok =
false);
99 size_t byte_size (
void)
const;
111 {
return map.
reshape (new_dims); }
120 bool is_map (
void)
const {
return true; }
128 void print (std::ostream& os,
bool pr_as_read_syntax =
false);
130 void print_raw (std::ostream& os,
bool pr_as_read_syntax =
false)
const;
132 bool print_name_tag (std::ostream& os,
const std::string& name)
const;
134 bool save_ascii (std::ostream& os);
136 bool load_ascii (std::istream& is);
138 bool save_binary (std::ostream& os,
bool& save_as_floats);
140 bool load_binary (std::istream& is,
bool swap,
143 bool save_hdf5 (
octave_hdf5_id loc_id,
const char *name,
bool save_as_floats);
147 mxArray *as_mxArray (
void)
const;
190 const std::list<octave_value_list>& idx);
193 const std::list<octave_value_list>& idx,
int);
197 const std::list<octave_value_list>& idx,
201 const std::string&
type);
204 const std::list<octave_value_list>& idx,
213 bool resize_ok =
false);
217 size_t byte_size (
void)
const;
238 bool is_map (
void)
const {
return true; }
248 void print (std::ostream& os,
bool pr_as_read_syntax =
false);
250 void print_raw (std::ostream& os,
bool pr_as_read_syntax =
false)
const;
252 bool print_name_tag (std::ostream& os,
const std::string& name)
const;
254 bool save_ascii (std::ostream& os);
256 bool load_ascii (std::istream& is);
258 bool save_binary (std::ostream& os,
bool& save_as_floats);
260 bool load_binary (std::istream& is,
bool swap,
263 bool save_hdf5 (
octave_hdf5_id loc_id,
const char *name,
bool save_as_floats);
267 mxArray *as_mxArray (
void)
const;
269 bool fast_elem_insert_self (
void *where,
builtin_type_t btyp)
const;
octave_value squeeze(void) const
octave_scalar_struct(const octave_scalar_map &m)
dim_vector dims(void) const
octave_value reshape(const dim_vector &dv) const
octave_value permute(const Array< int > &vec, bool inv=false) const
bool is_constant(void) const
dim_vector dims(void) const
builtin_type_t builtin_type(void) const
~octave_scalar_struct(void)
octave_idx_type length(void) const
octave_scalar_map scalar_map_value(void) const
octave_idx_type nfields(void) const
string_vector map_keys(void) const
octave_scalar_struct(void)
octave_base_value * clone(void) const
octave_idx_type numel(void) const
octave_value resize(const dim_vector &dv, bool fill=false) const
octave_scalar_struct(const octave_scalar_struct &s)
octave_value resize(const dim_vector &dv, bool fill=false) const
octave_value reshape(const dim_vector &new_dims) const
#define DECLARE_OV_TYPEID_FUNCTIONS_AND_DATA
octave_map map_value(void) const
octave_value squeeze(void) const
octave_map permute(const Array< int > &vec, bool inv=false) const
bool is_defined(void) const
bool is_constant(void) const
bool is_defined(void) const
octave_value subsref(const std::string &type, const std::list< octave_value_list > &idx)
builtin_type_t builtin_type(void) const
octave_idx_type nfields(void) const
octave_base_value * empty_clone(void) const
octave_value squeeze(void) const
octave_value permute(const Array< int > &vec, bool inv=false) const
octave_value reshape(const dim_vector &new_dims) const
octave_struct(const octave_map &m)
octave_map reshape(const dim_vector &dv) const
octave_base_value * clone(void) const
void resize(const dim_vector &dv, bool fill=false)
octave_struct(const octave_struct &s)
string_vector map_keys(void) const
octave_map map_value(void) const
octave_base_value * empty_clone(void) const
return octave_value(v1.char_array_value().concat(v2.char_array_value(), ra_idx),((a1.is_sq_string()||a2.is_sq_string())? '\'': '"'))
F77_RET_T const double * x
octave_value permute(const Array< int > &vec, bool inv=false) const
octave_idx_type numel(void) const