17#include <octave/oct.h>
18#include <octave/interpreter.h>
27 :
public octave_base_value {
31 quadgrid (octave_idx_type nx = 2,
double hx = 1.0,
32 octave_idx_type ny = 2,
double hy = 1.0)
33 : octave_base_value () {
34 rep = std::make_shared<quadgrid_t<ColumnVector>> ();
35 rep->set_sizes (ny, nx, hx, hy);
39 print (std::ostream& os,
bool pr_as_read_syntax =
false) {
40 os <<
"quadgrid object" << std::endl;
41 os <<
"nx = " << rep->num_cols () <<
" ny = " << rep->num_rows () << std::endl;
42 os <<
"hx = " << rep->hx () <<
" hy = " << rep->hy () << std::endl;
51 const std::shared_ptr<quadgrid_t<ColumnVector>>
55 std::shared_ptr<quadgrid_t<ColumnVector>>
61 std::shared_ptr<quadgrid_t<ColumnVector>>
rep;
66const std::shared_ptr<quadgrid_t<ColumnVector>>
69std::shared_ptr<quadgrid_t<ColumnVector>>
Definition: quadgrid.h:27
const std::shared_ptr< quadgrid_t< ColumnVector > > quadgrid_value(bool=false) const
Definition: quadgrid.h:52
std::shared_ptr< quadgrid_t< ColumnVector > > rep
Definition: quadgrid.h:61
bool is_defined(void) const
Definition: quadgrid.h:48
quadgrid(octave_idx_type nx=2, double hx=1.0, octave_idx_type ny=2, double hy=1.0)
Definition: quadgrid.h:31
std::shared_ptr< quadgrid_t< ColumnVector > > quadgrid_value(bool=false)
Definition: quadgrid.h:56
DECLARE_OV_TYPEID_FUNCTIONS_AND_DATA
Definition: quadgrid.h:63
void print(std::ostream &os, bool pr_as_read_syntax=false)
Definition: quadgrid.h:39
const std::shared_ptr< quadgrid_t< ColumnVector > > ov_quadgrid(const octave_value &in)
Definition: quadgrid.cc:24
bool is_quadgrid(const octave_value &in)
Definition: quadgrid.cc:36