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)
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.
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
OCTINTERP_API octave_value storable_value(void) const
std::string string_value(bool force=false) 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,...)
void panic_unless(bool cond)
octave_value_list ovl(const OV_Args &... args)
Construct an octave_value_list with less typing.