24 #if ! defined (octave_ov_cell_h) 25 #define octave_ov_cell_h 1 27 #include "octave-config.h" 75 const std::list<octave_value_list>& idx)
82 const std::list<octave_value_list>& idx,
86 const std::list<octave_value_list>& idx,
90 const std::list<octave_value_list>& idx,
99 size_t byte_size (
void)
const;
120 bool iscell (
void)
const {
return true; }
141 bool print_as_scalar (
void)
const;
143 void print (std::ostream&
os,
bool pr_as_read_syntax =
false);
145 void print_raw (std::ostream&
os,
bool pr_as_read_syntax =
false)
const;
149 void short_disp (std::ostream&
os)
const;
151 bool save_ascii (std::ostream&
os);
153 bool load_ascii (std::istream&
is);
157 bool load_binary (std::istream&
is,
bool swap,
166 mxArray * as_mxArray (
void)
const;
170 void * mex_get_data (
void)
const;
175 { cellstr_cache.reset (); }
octave_cell(const Array< std::string > &str)
octave_base_value * empty_clone(void) const
characters Given a string matrix
Return the CPU time used by your Octave session The first output is the total time spent executing your process and is equal to the sum of second and third which are the number of CPU seconds spent executing in user mode and the number of CPU seconds spent executing in system mode
idx subsref(val, idx) esult
Cell cell_value(void) const
octave_cell(const Cell &c)
nd example oindent opens the file binary numeric values will be read assuming they are stored in IEEE format with the least significant bit and then converted to the native representation Opening a file that is already open simply opens it again and returns a separate file id It is not an error to open a file several though writing to the same file through several different file ids may produce unexpected results The possible values of text mode reading and writing automatically converts linefeeds to the appropriate line end character for the you may append a you must also open the file in binary mode The parameter conversions are currently only supported for and permissions will be set to and then everything is written in a single operation This is very efficient and improves performance c
octave_cell(const octave_cell &c)
#define DECLARE_OV_TYPEID_FUNCTIONS_AND_DATA
nd deftypefn *std::string name
octave_value convert_to_str_internal(bool pad, bool, char type) const
OCTAVE_EXPORT octave_value_list return the number of command line arguments passed to Octave If called with the optional argument the function xample nargout(@histc)
bool isnumeric(void) const
bool is_true(const std::string &s)
bool is_defined(void) const
builtin_type_t builtin_type(void) const
OCTAVE_EXPORT octave_value_list iscellstr
std::unique_ptr< Array< std::string > > cellstr_cache
octave_value subsref(const std::string &type, const std::list< octave_value_list > &idx)
return octave_value(v1.char_array_value() . concat(v2.char_array_value(), ra_idx),((a1.is_sq_string()||a2.is_sq_string()) ? '\'' :'"'))
void clear_cellstr_cache(void) const
idx subsasgn(val, idx, 0) esult
bool is_constant(void) const
write the output to stdout if nargout is
bool is_matrix_type(void) const
If this string is the system will ring the terminal sometimes it is useful to be able to print the original representation of the string
octave_base_value * clone(void) const