26 #if defined (HAVE_CONFIG_H)
38 std::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)
88 elem (
n) = elem (
n - 1);
118 elem (
len + i) = lst (i);
131 elem (i) = elem (
n - i - 1);
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");
164 retval(k++) = elem (i);
167 retval(k++) = lst (i);
170 retval(k++) = elem (i);
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;
Vector representing the dimensions (size) of an Array.
octave_value_list & append(const octave_value &val)
void resize(octave_idx_type n, const octave_value &rfv=octave_value())
octave_value_list()=default
bool has_magic_colon() const
octave_value_list & reverse()
octave_value_list splice(octave_idx_type offset, octave_idx_type len, const octave_value_list &lst=octave_value_list()) const
bool all_strings_p() const
string_vector make_argv(const std::string &="") const
octave_idx_type length() const
octave_value_list & prepend(const octave_value &val)
void make_storable_values()
octave_idx_type rows() const
bool is_copy_of(const octave_value &val) const
octave_value storable_value() const
std::string string_value(bool force=false) const
string_vector string_vector_value(bool pad=false) const
void resize(octave_idx_type n, const std::string &rfv="")
void() error(const char *fmt,...)
#define panic_unless(cond)
octave_value_list ovl(const OV_Args &... args)
Construct an octave_value_list with less typing.