Defines | Functions

ov-cell.cc File Reference

#include <iomanip>
#include <iostream>
#include <sstream>
#include <vector>
#include <queue>
#include "Array-util.h"
#include "byte-swap.h"
#include "lo-utils.h"
#include "quit.h"
#include "oct-locbuf.h"
#include "defun.h"
#include "error.h"
#include "ov-cell.h"
#include "oct-obj.h"
#include "unwind-prot.h"
#include "utils.h"
#include "ov-base-mat.h"
#include "ov-base-mat.cc"
#include "ov-re-mat.h"
#include "ov-scalar.h"
#include "pr-output.h"
#include "gripes.h"
#include "ls-oct-ascii.h"
#include "ls-oct-binary.h"
#include "ls-hdf5.h"
#include "ls-utils.h"
Include dependency graph for ov-cell.cc:

Go to the source code of this file.

Defines

#define CELL_ELT_TAG   "<cell-element>"
#define FORWARD_MAPPER(UMAP)

Functions

 DEFINE_OCTAVE_ALLOCATOR (octave_cell)
 DEFINE_OV_TYPEID_FUNCTIONS_AND_DATA (octave_cell,"cell","cell")
 DEFUN (cellstr, args,,"-*- texinfo -*-\n\ @deftypefn {Built-in Function} {} cellstr (@var{string})\n\ Create a new cell array object from the elements of the string\n\ array @var{string}.\n\ @end deftypefn")
 DEFUN (struct2cell, args,,"-*- texinfo -*-\n\ @deftypefn {Built-in Function} {} struct2cell (@var{S})\n\ Create a new cell array from the objects stored in the struct object.\n\ If @var{f} is the number of fields in the structure, the resulting\n\ cell array will have a dimension vector corresponding to\n\ @code{[@var{F} size(@var{S})]}. For example:\n\ \n\ @example\n\ @group\n\ s = struct('name', @{'Peter', 'Hannah', 'Robert'@},\n\ 'age', @{23, 16, 3@});\n\ c = struct2cell(s)\n\ @result{} c = @{1x1x3 Cell Array@}\n\ c(1,1,:)(:)\n\ @result{} ans =\n\ @{\n\ [1,1] = Peter\n\ [2,1] = Hannah\n\ [3,1] = Robert\n\ @}\n\ c(2,1,:)(:)\n\ @result{} ans =\n\ @{\n\ [1,1] = 23\n\ [2,1] = 16\n\ [3,1] = 3\n\ @}\n\ @end group\n\ @end example\n\ \n\ @seealso{cell2struct, fieldnames}\n\ @end deftypefn")
 DEFUN (cell, args,,"-*- texinfo -*-\n\ @deftypefn {Built-in Function} {} cell (@var{n})\n\ @deftypefnx {Built-in Function} {} cell (@var{m}, @var{n})\n\ @deftypefnx {Built-in Function} {} cell (@var{m}, @var{n}, @var{k}, @dots{})\n\ @deftypefnx {Built-in Function} {} cell ([@var{m} @var{n} @dots{}])\n\ Create a new cell array object.\n\ If invoked with a single scalar integer argument, return a square\n\ @nospell{NxN} cell array. If invoked with two or more scalar\n\ integer arguments, or a vector of integer values, return an array with\n\ the given dimensions.\n\ @end deftypefn")
 DEFUN (iscell, args,,"-*- texinfo -*-\n\ @deftypefn {Built-in Function} {} iscell (@var{x})\n\ Return true if @var{x} is a cell array object.\n\ @seealso{ismatrix, isstruct, iscellstr, isa}\n\ @end deftypefn")
 DEFUN (iscellstr, args,,"-*- texinfo -*-\n\ @deftypefn {Built-in Function} {} iscellstr (@var{cell})\n\ Return true if every element of the cell array @var{cell} is a\n\ character string.\n\ @seealso{ischar}\n\ @end deftypefn")
static void gripe_failed_assignment (void)

Define Documentation

#define CELL_ELT_TAG   "<cell-element>"
#define FORWARD_MAPPER (   UMAP  ) 
Value:
case umap_ ## UMAP: \
      return matrix.UMAP ()

Referenced by octave_cell::map().


Function Documentation

DEFINE_OCTAVE_ALLOCATOR ( octave_cell   ) 
DEFINE_OV_TYPEID_FUNCTIONS_AND_DATA ( octave_cell  ,
"cell"  ,
"cell"   
)
DEFUN ( cellstr  ,
args   
)

Definition at line 1355 of file ov-cell.cc.

References error(), error_state, Array< T >::is_empty(), and print_usage().

DEFUN ( struct2cell  ,
args   
)
DEFUN ( cell  ,
args   
)
DEFUN ( iscell  ,
args   
)

Definition at line 1255 of file ov-cell.cc.

References octave_value::is_cell(), and print_usage().

DEFUN ( iscellstr  ,
args   
)

Definition at line 1332 of file ov-cell.cc.

References octave_value::is_cellstr(), and print_usage().

static void gripe_failed_assignment ( void   )  [static]

Definition at line 130 of file ov-cell.cc.

References error().

Referenced by octave_cell::subsasgn().

 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Defines