Class: PdfMethod

Inherits:
DefGslModuleFunction show all
Defined in:
ext/numo/gsl/pdf/parse_pdf.rb

Constant Summary collapse

PARAM_DESC =
{}
PARAM_NAMES =
{
 "double" => %w[a b p n mu nu nu1 nu2 sigma sigma_x sigma_y rho zeta],
 "unsigned int" => %w[n n1 n2 t],
 "size_t" => true,
}

Instance Attribute Summary

Attributes included from FuncParser

#args_in, #args_out, #args_param, #counter, #generate_array

Attributes inherited from ErbPP

#children, #parent

Instance Method Summary collapse

Methods inherited from DefGslModuleFunction

#initialize

Methods included from FuncParser

#c_args, #cdef_args, #def_ain, #def_aout, #desc_param, #desc_param_scalar, #find_name, #is_param, lookup, #method_args, #n_in, #n_input, #n_out, #n_param, #ndl_args, #param_desc, #param_names, #parse_args, #recv

Methods inherited from DefModuleFunction

#init_def, #initialize

Methods inherited from DefMethod

#c_func, #c_iter, #c_name, #define_method_args, #id_op, #init_def, #initialize, #op_map, #singleton

Methods included from DeclMethod

#def_alias, #def_alloc_func, #def_const, #def_method, #def_module_function, #def_singleton_method, #undef_alloc_func, #undef_method, #undef_singleton_method

Methods inherited from ErbPP

#add_child, #description, #find, #find_tmpl, #get, #init_def, #initialize, #load_erb, #method_missing, #method_missing_alias, #result, #run, #set, #write

Constructor Details

This class inherits a constructor from DefGslModuleFunction

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class ErbPP

Instance Method Details

#argument_property(type, name) ⇒ Object



33
34
35
36
37
38
39
40
41
# File 'ext/numo/gsl/pdf/parse_pdf.rb', line 33

def argument_property(type,name)
  if    name == "return";     {output:true, narray:true, pass: :return}
  elsif name == "K";          {} # ignore array size
  elsif /\[\]$/ =~ name;      {input:true, narray:true, pass: :array}
  elsif is_param(type,name);  {input:true, param:true}
  elsif /\*$/ =~ type;        {output:true, narray:true, pass: :pointer}
  else;                       {input:true, narray:true}
  end
end