26 #if ! defined (octave_ov_cell_h)
27 #define octave_ov_cell_h 1
29 #include "octave-config.h"
62 cellstr_cache (new
Array<std::string> (str)) { }
77 const std::list<octave_value_list>& idx)
84 const std::list<octave_value_list>& idx,
88 const std::list<octave_value_list>& idx,
92 const std::list<octave_value_list>& idx,
108 size_t byte_size (
void)
const;
129 bool iscell (
void)
const {
return true; }
133 bool iscellstr (
void)
const;
150 bool print_as_scalar (
void)
const;
152 void print (std::ostream& os,
bool pr_as_read_syntax =
false);
154 void print_raw (std::ostream& os,
bool pr_as_read_syntax =
false)
const;
156 bool print_name_tag (std::ostream& os,
const std::string&
name)
const;
158 void short_disp (std::ostream& os)
const;
160 bool save_ascii (std::ostream& os);
162 bool load_ascii (std::istream& is);
164 bool save_binary (std::ostream& os,
bool save_as_floats);
166 bool load_binary (std::istream& is,
bool swap,
175 mxArray * as_mxArray (
void)
const;
179 void * mex_get_data (
void)
const;
184 { cellstr_cache.reset (); }
virtual void assign(const std::string &, const octave_value &)
Cell cell_value(void) const
builtin_type_t builtin_type(void) const
octave_cell(const octave_cell &c)
octave_base_value * clone(void) const
Array< std::string > cellstr_value(const char *fmt,...) const
bool isnumeric(void) const
std::unique_ptr< Array< std::string > > cellstr_cache
octave_value convert_to_str_internal(bool pad, bool, char type) const
bool is_matrix_type(void) const
octave_base_value * empty_clone(void) const
void clear_cellstr_cache(void) const
bool is_constant(void) const
octave_value subsref(const std::string &type, const std::list< octave_value_list > &idx)
octave_cell(const Cell &c)
octave_cell(const Array< std::string > &str)
bool is_defined(void) const
~octave_cell(void)=default
octave_idx_type length(void) const
bool is_true(const std::string &s)
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