Back to index

salome-med  6.5.0
Static Public Member Functions
Binding< double > Struct Template Reference

#include <MEDMEM_SWIG_Templates.hxx>

List of all members.

Static Public Member Functions

static int Checker (PyObject *a)
static double Traducer (PyObject *a)
static PyObject * Traducer (double value)
static double Functor (PyObject *func, double value)

Detailed Description

template<>
struct Binding< double >

Definition at line 39 of file MEDMEM_SWIG_Templates.hxx.


Member Function Documentation

static int Binding< double >::Checker ( PyObject *  a) [inline, static]

Definition at line 41 of file MEDMEM_SWIG_Templates.hxx.

{ return PyFloat_Check(a); }
static double Binding< double >::Functor ( PyObject *  func,
double  value 
) [inline, static]

Definition at line 44 of file MEDMEM_SWIG_Templates.hxx.

  { return Traducer( PyObject_CallFunction( func, (char *)"f", value )); }
static double Binding< double >::Traducer ( PyObject *  a) [inline, static]

Definition at line 42 of file MEDMEM_SWIG_Templates.hxx.

{ return PyFloat_AsDouble(a); }
static PyObject* Binding< double >::Traducer ( double  value) [inline, static]

Definition at line 43 of file MEDMEM_SWIG_Templates.hxx.

{ return Py_BuildValue("d", value ); }

The documentation for this struct was generated from the following file: