EvolvingObjects
|
00001 /* 00002 PyEO 00003 00004 Copyright (C) 2003 Maarten Keijzer 00005 00006 This program is free software; you can redistribute it and/or modify 00007 it under the terms of the GNU General Public License as published by 00008 the Free Software Foundation; either version 2 of the License, or 00009 (at your option) any later version. 00010 00011 This program is distributed in the hope that it will be useful, 00012 but WITHOUT ANY WARRANTY; without even the implied warranty of 00013 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00014 GNU General Public License for more details. 00015 00016 You should have received a copy of the GNU General Public License 00017 along with this program; if not, write to the Free Software 00018 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 00019 */ 00020 00021 #include <eoEvalFunc.h> 00022 #include <eoInit.h> 00023 #include <eoTransform.h> 00024 #include <eoSGATransform.h> 00025 #include <eoPopEvalFunc.h> 00026 00027 #include "PyEO.h" 00028 #include "def_abstract_functor.h" 00029 00030 using namespace boost::python; 00031 00032 void abstract1() 00033 { 00034 /* Abstract Classes: overrideble from python */ 00035 def_abstract_functor<eoEvalFunc<PyEO> >("eoEvalFunc"); 00036 def_abstract_functor<eoInit< PyEO > >("eoInit"); 00037 00038 def_abstract_functor<eoTransform<PyEO> >("eoTransform"); 00039 00040 class_<eoSGATransform<PyEO>, bases<eoTransform<PyEO> > > 00041 ("eoSGATransform", 00042 init< 00043 eoQuadOp<PyEO>&, 00044 double, 00045 eoMonOp<PyEO>&, 00046 double 00047 >() 00048 ) 00049 .def("__call__", &eoSGATransform<PyEO>::operator()); 00050 00051 def_abstract_functor<eoPopEvalFunc<PyEO> >("eoPopEvalFunc"); 00052 }