24 #if ! defined (octave_ov_class_h) 25 #define octave_ov_class_h 1 27 #include "octave-config.h" 57 parent_list (), obsolete_copies (0)
61 const std::list<std::string>& plist)
63 parent_list (plist), obsolete_copies (0)
71 parent_list (
s.parent_list), obsolete_copies (0) { }
91 const std::list<octave_value_list>& idx)
98 const std::list<octave_value_list>& idx,
108 const std::list<octave_value_list>& idx,
112 const std::list<octave_value_list>& idx,
115 idx_vector index_vector (
bool require_integers =
false)
const;
119 size_t byte_size (
void)
const;
131 size_t nparents (
void)
const {
return parent_list.size (); }
160 {
return parent_list; }
173 void print (std::ostream&
os,
bool pr_as_read_syntax =
false);
175 void print_raw (std::ostream&
os,
bool pr_as_read_syntax =
false)
const;
180 bool print_padding =
true);
182 bool reconstruct_exemplar (
void);
184 static void clear_exemplar_map (
void);
186 bool reconstruct_parents (
void);
188 bool save_ascii (std::ostream&
os);
190 bool load_ascii (std::istream&
is);
194 bool load_binary (std::istream&
is,
bool swap,
201 mxArray * as_mxArray (
void)
const;
228 const std::list<octave_value_list>& idx,
245 : field_names (
x.field_names),
246 parent_class_names (
x.parent_class_names) { }
252 field_names =
x.field_names;
253 parent_class_names =
x.parent_class_names;
260 size_t nparents (
void)
const {
return parent_class_names.size (); }
264 std::list<std::string>
parents (
void)
const {
return parent_class_names; }
277 typedef std::map<std::string, exemplar_info>::iterator
279 typedef std::map<std::string, exemplar_info>::const_iterator
dim_vector dims(void) const
octave_map map_value(void) const
static std::string static_class_name(void)
octave_value map(octave_base_value::unary_mapper_t umap) const
octave_idx_type numel(void) const
std::string class_name(void) const
string_vector keys(void) const
void assign(const std::string &k, const Cell &val)
octave_map map_value(void) const
identity matrix If supplied two scalar respectively For allows like xample val
idx subsref(val, idx) esult
octave_idx_type nfields(void) const
static bool in_class_method(const cdef_class &cls)
static const std::string t_name
void assign(const std::string &k, const octave_value &rhs)
octave_class(const octave_map &m, const std::string &id, const std::list< std::string > &plist)
bool isstruct(void) const
std::list< std::string > parents(void) const
string_vector fields(void) const
octave_value resize(const dim_vector &dv, bool fill=false) const
string_vector field_names
std::map< std::string, exemplar_info >::const_iterator exemplar_const_iterator
nd deftypefn *std::string name
static std::map< std::string, exemplar_info > exemplar_map
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)
octave_map reshape(const dim_vector &dv) const
octave_base_value * empty_clone(void) const
string_vector parent_class_names(void) const
bool is_true(const std::string &s)
octave_base_value * clone(void) const
std::list< std::string > parent_class_names
the exceeded dimensions are set to if fewer subscripts than dimensions are the exceeding dimensions are merged into the final requested dimension For consider the following dims
octave_idx_type nfields(void) const
std::list< std::string > parent_class_name_list(void) const
static std::string static_type_name(void)
octave_idx_type nfields(void) const
return octave_value(v1.char_array_value() . concat(v2.char_array_value(), ra_idx),((a1.is_sq_string()||a2.is_sq_string()) ? '\'' :'"'))
T::size_type numel(const T &str)
octave_idx_type numel(int n=0) const
Number of elements that a matrix with this dimensions would have.
octave_value resize(const dim_vector &dv, bool=false) const
octave_class(const octave_class &s)
int register_type(const std::string &t_name, const std::string &c_name, const octave_value &val)
std::list< std::string > parent_list
octave_value reshape(const dim_vector &new_dims) const
idx subsasgn(val, idx, 0) esult
bool is_defined(void) const
bool isobject(void) const
octave_value subsref(const std::string &type, const std::list< octave_value_list > &idx)
dim_vector dims(void) const
exemplar_info(const exemplar_info &x)
write the output to stdout if nargout is
Vector representing the dimensions (size) of an Array.
std::map< std::string, exemplar_info >::iterator exemplar_iterator
size_t nparents(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
static int static_type_id(void)
F77_RET_T const F77_REAL const F77_REAL F77_REAL &F77_RET_T const F77_DBLE const F77_DBLE F77_DBLE &F77_RET_T const F77_DBLE F77_DBLE &F77_RET_T const F77_REAL F77_REAL &F77_RET_T const F77_DBLE * x
std::string type_name(void) const
size_t nparents(void) const