26 #if defined (HAVE_CONFIG_H)
38 size_t nel = lst.size ();
44 for (
const auto& ov : lst)
55 for (
const auto&
ovl : lst)
63 m_data = lst.front ().m_data;
68 for (
const auto&
ovl : lst)
132 elem (
n - i - 1) = tmp;
146 if (offset < 0 || offset >=
len)
148 if (! (rep_length == 0 && offset ==
len))
149 error (
"octave_value_list::splice: invalid OFFSET");
152 if (rep_length < 0 || rep_length + offset >
len)
153 error (
"octave_value_list::splice: invalid LENGTH");
181 if (!
elem(i).is_string ())
208 if (
elem (i).iscell ())
220 if (
elem(i).is_magic_colon ())
232 error (
"%s: all arguments must be strings", fcn_name.c_str ());
245 total_nr +=
n ?
n : 1;
249 if (! fcn_name.empty ())
280 const std::vector<octave_value>& cdata =
m_data;
void resize(const dim_vector &dv, const T &rfv)
Size of the specified dimension.
Vector representing the dimensions (size) of an Array.
bool all_ones(void) const
void make_storable_values(void)
octave_value & elem(octave_idx_type n)
octave_value_list & append(const octave_value &val)
bool all_strings_p(void) const
void resize(octave_idx_type n, const octave_value &rfv=octave_value())
octave_idx_type length(void) const
bool any_cell(void) const
octave_value_list splice(octave_idx_type offset, octave_idx_type len, const octave_value_list &lst=octave_value_list()) const
octave_value_list & reverse(void)
bool all_scalars(void) const
string_vector make_argv(const std::string &="") const
bool has_magic_colon(void) const
octave_value_list(void)=default
octave_value_list & prepend(const octave_value &val)
std::vector< octave_value > m_data
octave_idx_type rows(void) const
bool is_copy_of(const octave_value &val) const
std::string string_value(bool force=false) const
octave_value storable_value(void) const
string_vector string_vector_value(bool pad=false) const
dim_vector dims(void) const
void resize(octave_idx_type n, const std::string &rfv="")
void error(const char *fmt,...)
octave_value::octave_value(const Array< char > &chm, char type) return retval
octave_value_list ovl(const OV_Args &... args)
Construct an octave_value_list with less typing.