41 for (std::list<octave_value_list>::const_iterator p = lst.begin ();
50 data = lst.front ().data;
55 for (std::list<octave_value_list>::const_iterator p = lst.begin ();
105 elem (len + i) = lst (i);
119 elem (n - i - 1) = tmp;
133 if (offset < 0 || offset >= len)
135 if (! (rep_length == 0 && offset == len))
137 error (
"octave_value_list::splice: invalid OFFSET");
142 if (rep_length < 0 || rep_length + offset > len)
144 error (
"octave_value_list::splice: invalid LENGTH");
157 retval(k++) =
elem (i);
160 retval(k++) = lst (i);
163 retval(k++) =
elem (i);
174 if (!
elem(i).is_string ())
201 if (
elem (i).is_cell ())
213 if (
elem(i).is_magic_colon ())
237 total_nr += n ? n : 1;
241 if (! fcn_name.empty ())
266 error (
"%s: expecting all arguments to be strings", fcn_name.c_str ());
bool any_cell(void) const
octave_idx_type rows(void) const
octave_idx_type length(void) const
octave_value_list & append(const octave_value &val)
void error(const char *fmt,...)
bool all_ones(void) const
bool is_copy_of(const octave_value &val) const
void make_storable_values(void)
string_vector all_strings(bool pad=false) const
octave_value & elem(octave_idx_type n)
std::string string_value(bool force=false) const
octave_value_list & reverse(void)
void resize(octave_idx_type n, const std::string &rfv=std::string())
void resize(const dim_vector &dv, const T &rfv)
bool has_magic_colon(void) const
octave_value_list splice(octave_idx_type offset, octave_idx_type len, const octave_value_list &lst=octave_value_list()) const
Array< octave_value > data
dim_vector dims(void) const
bool all_strings_p(void) const
void resize(octave_idx_type n, const octave_value &rfv=octave_value())
void assign(const idx_vector &i, const Array< T > &rhs, const T &rfv)
Indexed assignment (always with resize & fill).
bool all_scalars(void) const
string_vector make_argv(const std::string &=std::string()) const
octave_value_list & prepend(const octave_value &val)