26#if ! defined (octave_ov_struct_h)
27#define octave_ov_struct_h 1
29#include "octave-config.h"
73 const std::list<octave_value_list>& idx)
80 const std::list<octave_value_list>&,
int);
83 const std::list<octave_value_list>& idx,
87 const std::string& type);
90 const std::list<octave_value_list>& idx,
99 bool resize_ok =
false);
132 bool isfield (
const std::string& field_name)
const
135 void print (std::ostream& os,
bool pr_as_read_syntax =
false);
137 void print_raw (std::ostream& os,
bool pr_as_read_syntax =
false)
const;
139 bool print_name_tag (std::ostream& os,
const std::string& name)
const;
148 bool save_binary (std::ostream& os,
bool save_as_floats);
151 octave::mach_info::float_format fmt);
203 const std::list<octave_value_list>& idx);
206 const std::list<octave_value_list>& idx,
int);
209 const std::list<octave_value_list>& idx,
213 const std::string& type);
216 const std::list<octave_value_list>& idx,
225 bool resize_ok =
false);
260 bool isfield (
const std::string& field_name)
const
263 void print (std::ostream& os,
bool pr_as_read_syntax =
false);
265 void print_raw (std::ostream& os,
bool pr_as_read_syntax =
false)
const;
267 bool print_name_tag (std::ostream& os,
const std::string& name)
const;
276 bool save_binary (std::ostream& os,
bool save_as_floats);
279 octave::mach_info::float_format fmt);
N Dimensional Array with copy-on-write semantics.
Vector representing the dimensions (size) of an Array.
friend class octave_value
void resize(const dim_vector &dv, bool fill=false)
octave_idx_type nfields() const
octave_map squeeze() const
octave_map reshape(const dim_vector &dv) const
octave_map permute(const Array< int > &vec, bool inv=false) const
string_vector fieldnames() const
bool isfield(const std::string &name) const
octave_idx_type numel() const
string_vector fieldnames() const
bool isfield(const std::string &name) const
octave_idx_type nfields() const
bool load_hdf5(octave_hdf5_id loc_id, const char *name)
bool save_hdf5(octave_hdf5_id loc_id, const char *name, bool save_as_floats)
octave_base_value * empty_clone() const
octave_scalar_struct(const octave_scalar_map &m)
octave_idx_type nfields() const
bool print_name_tag(std::ostream &os, const std::string &name) const
mxArray * as_mxArray(bool interleaved) const
octave_base_value * clone() const
static octave_value numeric_conv(const octave_value &val, const std::string &type)
octave_value squeeze() const
octave_value do_index_op(const octave_value_list &idx, bool resize_ok=false)
octave_value reshape(const dim_vector &new_dims) const
octave_scalar_struct(const std::map< std::string, octave_value > &m)
bool load_ascii(std::istream &is)
builtin_type_t builtin_type() const
octave_value permute(const Array< int > &vec, bool inv=false) const
void print(std::ostream &os, bool pr_as_read_syntax=false)
octave_value subsref(const std::string &type, const std::list< octave_value_list > &idx)
octave_value dotref(const octave_value_list &idx, bool auto_add=false)
octave_map map_value() const
~octave_scalar_struct()=default
octave_scalar_struct(const octave_scalar_struct &s)
bool save_binary(std::ostream &os, bool save_as_floats)
bool save_ascii(std::ostream &os)
bool fast_elem_insert_self(void *where, builtin_type_t btyp) const
std::size_t byte_size() const
octave_scalar_map scalar_map_value() const
void print_raw(std::ostream &os, bool pr_as_read_syntax=false) const
bool load_binary(std::istream &is, bool swap, octave::mach_info::float_format fmt)
void break_closure_cycles(const std::shared_ptr< octave::stack_frame > &frame)
bool isfield(const std::string &field_name) const
string_vector map_keys() const
octave_value resize(const dim_vector &dv, bool fill=false) const
std::string edit_display(const float_display_format &fmt, octave_idx_type i, octave_idx_type j) const
octave_idx_type numel() const
octave_value subsasgn(const std::string &type, const std::list< octave_value_list > &idx, const octave_value &rhs)
string_vector map_keys() const
bool fast_elem_insert(octave_idx_type n, const octave_value &x)
octave_value resize(const dim_vector &dv, bool fill=false) const
octave_idx_type numel() const
static octave_value numeric_conv(const octave_value &val, const std::string &type)
builtin_type_t builtin_type() const
bool load_ascii(std::istream &is)
std::string edit_display(const float_display_format &fmt, octave_idx_type i, octave_idx_type j) const
octave_value subsref(const std::string &type, const std::list< octave_value_list > &idx)
mxArray * as_mxArray(bool interleaved) const
bool save_ascii(std::ostream &os)
octave_map map_value() const
octave_value subsasgn(const std::string &type, const std::list< octave_value_list > &idx, const octave_value &rhs)
octave_value reshape(const dim_vector &new_dims) const
bool load_hdf5(octave_hdf5_id loc_id, const char *name)
std::size_t byte_size() const
octave_idx_type nfields() const
void break_closure_cycles(const std::shared_ptr< octave::stack_frame > &frame)
bool save_hdf5(octave_hdf5_id loc_id, const char *name, bool save_as_floats)
octave_struct(const octave_struct &s)
octave_struct(const octave_map &m)
octave_value permute(const Array< int > &vec, bool inv=false) const
bool isfield(const std::string &field_name) const
bool print_name_tag(std::ostream &os, const std::string &name) const
octave_value fast_elem_extract(octave_idx_type n) const
octave_base_value * try_narrowing_conversion()
bool save_binary(std::ostream &os, bool save_as_floats)
octave_base_value * empty_clone() const
Cell dotref(const octave_value_list &idx, bool auto_add=false)
void print(std::ostream &os, bool pr_as_read_syntax=false)
bool load_binary(std::istream &is, bool swap, octave::mach_info::float_format fmt)
octave_value do_index_op(const octave_value_list &idx, bool resize_ok=false)
void print_raw(std::ostream &os, bool pr_as_read_syntax=false) const
octave_base_value * clone() const
octave_value squeeze() const
octave_idx_type length() const
F77_RET_T const F77_DBLE * x
#define DECLARE_OV_TYPEID_FUNCTIONS_AND_DATA_API(API)