[Debian-astro-commits] [gyoto] 166/221: Python: ignore SmartPointer<T>::operator() to give access to T::operator()

Thibaut Jean-Claude Paumard thibaut at moszumanska.debian.org
Fri May 22 20:52:43 UTC 2015


This is an automated email from the git hooks/post-receive script.

thibaut pushed a commit to branch master
in repository gyoto.

commit 80974d03b5a251bdb6730ce28b38469fec484f30
Author: Thibaut Paumard <paumard at users.sourceforge.net>
Date:   Sun Dec 21 10:21:36 2014 +0100

    Python: ignore SmartPointer<T>::operator() to give access to T::operator()
---
 include/GyotoThermalBremsstrahlungSpectrum.h | 2 ++
 python/gyoto.i                               | 2 +-
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/include/GyotoThermalBremsstrahlungSpectrum.h b/include/GyotoThermalBremsstrahlungSpectrum.h
index 6a7081a..d7bd2b3 100644
--- a/include/GyotoThermalBremsstrahlungSpectrum.h
+++ b/include/GyotoThermalBremsstrahlungSpectrum.h
@@ -82,7 +82,9 @@ class Gyoto::Spectrum::ThermalBremsstrahlung : public Gyoto::Spectrum::Generic {
    * \param nu frequency in Hz
    * \param ds length element in SI (careful to this)
    */
+#ifndef GYOTO_SWIGIMPORTED
   virtual double operator()(double nu,double ,double ds) const;
+#endif
   // NB: the second argument, opacity in the Spectrum API
   // is useless here
 
diff --git a/python/gyoto.i b/python/gyoto.i
index ac5ea79..d7d0e76 100644
--- a/python/gyoto.i
+++ b/python/gyoto.i
@@ -113,7 +113,7 @@ using namespace Gyoto;
 %rename(listRegister) Gyoto::Register::list;
 %include GyotoRegister.h
 
-
+%ignore Gyoto::SmartPointer::operator();
 %include "GyotoSmartPointer.h"
 
 %include "GyotoValue.h"

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-astro/packages/gyoto.git



More information about the Debian-astro-commits mailing list