26 #if ! defined (octave_ov_struct_h)
27 #define octave_ov_struct_h 1
29 #include "octave-config.h"
72 const std::list<octave_value_list>& idx)
79 const std::list<octave_value_list>&,
int);
82 const std::list<octave_value_list>& idx,
86 const std::string&
type);
89 const std::list<octave_value_list>& idx,
95 {
return map.
permute (vec, inv); }
98 bool resize_ok =
false);
102 size_t byte_size (
void)
const;
114 {
return map.
reshape (new_dims); }
131 void print (std::ostream& os,
bool pr_as_read_syntax =
false);
133 void print_raw (std::ostream& os,
bool pr_as_read_syntax =
false)
const;
135 bool print_name_tag (std::ostream& os,
const std::string&
name)
const;
140 bool save_ascii (std::ostream& os);
142 bool load_ascii (std::istream& is);
144 bool save_binary (std::ostream& os,
bool save_as_floats);
146 bool load_binary (std::istream& is,
bool swap,
153 mxArray * as_mxArray (
void)
const;
198 const std::list<octave_value_list>& idx);
201 const std::list<octave_value_list>& idx,
int);
204 const std::list<octave_value_list>& idx,
208 const std::string&
type);
211 const std::list<octave_value_list>& idx,
220 bool resize_ok =
false);
224 size_t byte_size (
void)
const;
255 void print (std::ostream& os,
bool pr_as_read_syntax =
false);
257 void print_raw (std::ostream& os,
bool pr_as_read_syntax =
false)
const;
259 bool print_name_tag (std::ostream& os,
const std::string&
name)
const;
264 bool save_ascii (std::ostream& os);
266 bool load_ascii (std::istream& is);
268 bool save_binary (std::ostream& os,
bool save_as_floats);
270 bool load_binary (std::istream& is,
bool swap,
277 mxArray * as_mxArray (
void)
const;
279 bool fast_elem_insert_self (
void *where,
builtin_type_t btyp)
const;
Vector representing the dimensions (size) of an Array.
void resize(const dim_vector &dv, bool fill=false)
octave_map reshape(const dim_vector &dv) const
octave_map permute(const Array< int > &vec, bool inv=false) const
octave_base_value * empty_clone(void) const
octave_scalar_struct(const octave_scalar_map &m)
octave_value squeeze(void) const
dim_vector dims(void) const
octave_scalar_map scalar_map_value(void) const
string_vector map_keys(void) const
builtin_type_t builtin_type(void) const
octave_value reshape(const dim_vector &new_dims) const
octave_scalar_struct(const std::map< std::string, octave_value > &m)
octave_value permute(const Array< int > &vec, bool inv=false) const
octave_map map_value(void) const
bool is_defined(void) const
octave_idx_type nfields(void) const
octave_scalar_struct(const octave_scalar_struct &s)
~octave_scalar_struct(void)=default
bool is_constant(void) const
octave_base_value * clone(void) const
octave_idx_type numel(void) const
bool isstruct(void) const
octave_value resize(const dim_vector &dv, bool fill=false) const
octave_scalar_struct(void)
octave_base_value * clone(void) const
octave_value resize(const dim_vector &dv, bool fill=false) const
octave_map map_value(void) const
octave_base_value * empty_clone(void) const
octave_value squeeze(void) const
octave_value subsref(const std::string &type, const std::list< octave_value_list > &idx)
dim_vector dims(void) const
builtin_type_t builtin_type(void) const
octave_value reshape(const dim_vector &new_dims) const
bool isstruct(void) const
octave_struct(const octave_struct &s)
octave_struct(const octave_map &m)
octave_value permute(const Array< int > &vec, bool inv=false) const
bool is_constant(void) const
octave_idx_type nfields(void) const
bool is_defined(void) const
~octave_struct(void)=default
string_vector map_keys(void) const
octave_idx_type numel(void) const
octave_idx_type length(void) const
octave_value permute(const Array< int > &vec, bool inv=false) const
octave_value squeeze(void) const
octave_value reshape(const dim_vector &dv) const
F77_RET_T const F77_DBLE * x
return octave_value(v1.char_array_value() . concat(v2.char_array_value(), ra_idx),((a1.is_sq_string()||a2.is_sq_string()) ? '\'' :'"'))
#define DECLARE_OV_TYPEID_FUNCTIONS_AND_DATA