[Avida-cvs] [Avida2-svn] r249 - trunk/source/bindings/Boost.Python

kaben@myxo.css.msu.edu kaben at myxo.css.msu.edu
Fri Jul 22 11:11:18 PDT 2005


Author: kaben
Date: 2005-07-22 14:11:18 -0400 (Fri, 22 Jul 2005)
New Revision: 249

Removed:
   trunk/source/bindings/Boost.Python/kaben_brainstorms.cc
   trunk/source/bindings/Boost.Python/kaben_brainstorms.cpp
   trunk/source/bindings/Boost.Python/kaben_brainstorms.pyste
Modified:
   trunk/source/bindings/Boost.Python/CMakeLists.txt
Log:

Removal of dead source code.



Modified: trunk/source/bindings/Boost.Python/CMakeLists.txt
===================================================================
--- trunk/source/bindings/Boost.Python/CMakeLists.txt	2005-07-22 18:10:53 UTC (rev 248)
+++ trunk/source/bindings/Boost.Python/CMakeLists.txt	2005-07-22 18:11:18 UTC (rev 249)
@@ -30,11 +30,11 @@
 #
 # kaben-brainstorms.
 #
-SET(libkaben_brainstorms_SOURCES kaben_brainstorms.cc)
-SET_SOURCE_FILES_PROPERTIES(${libkaben_brainstorms_SOURCES} PROPERTIES COMPILE_FLAGS ${BOOST_PYTHON_COMPILE_FLAGS})
-ADD_LIBRARY(kaben_brainstorms MODULE ${libkaben_brainstorms_SOURCES})
-SET_TARGET_PROPERTIES(kaben_brainstorms PROPERTIES PREFIX "")
-TARGET_LINK_LIBRARIES(kaben_brainstorms main cpu event main tools ${BOOST_LIBRARY} ${PYTHON_LIBRARY})
+#SET(libkaben_brainstorms_SOURCES kaben_brainstorms.cc)
+#SET_SOURCE_FILES_PROPERTIES(${libkaben_brainstorms_SOURCES} PROPERTIES COMPILE_FLAGS ${BOOST_PYTHON_COMPILE_FLAGS})
+#ADD_LIBRARY(kaben_brainstorms MODULE ${libkaben_brainstorms_SOURCES})
+#SET_TARGET_PROPERTIES(kaben_brainstorms PROPERTIES PREFIX "")
+#TARGET_LINK_LIBRARIES(kaben_brainstorms main cpu event main tools ${BOOST_LIBRARY} ${PYTHON_LIBRARY})
 
 
 #

Deleted: trunk/source/bindings/Boost.Python/kaben_brainstorms.cc
===================================================================
--- trunk/source/bindings/Boost.Python/kaben_brainstorms.cc	2005-07-22 18:10:53 UTC (rev 248)
+++ trunk/source/bindings/Boost.Python/kaben_brainstorms.cc	2005-07-22 18:11:18 UTC (rev 249)
@@ -1,36 +0,0 @@
-#ifndef PRIMITIVE_HH
-#include "primitive.hh"
-#endif
-#include <boost/python/class.hpp>
-#include <boost/python/module.hpp>
-#include <boost/python/def.hpp>
-
-
-using namespace std;
-
-//void ShuntSetup(cEnvironment &environment, cPopulationInterface &test_interface){
-//  char *argv[]={"kaben_brainstorms"};
-//  SetupAvida(1, argv, environment, test_interface);
-//}
-//
-//struct kFu { int m_fu; };
-//class kBar {
-//public:
-//  kBar(){}
-//  int fu(kFu &fu){ return fu.m_fu; }
-//};
-//
-//BOOST_PYTHON_MODULE(kaben_brainstorms)
-//{
-//    using namespace boost::python;
-//    class_<cEnvironment>("cEnvironment");
-//    class_<cPopulationInterface>("cPopulationInterface");
-//    //class_<cConfig>("cConfig")
-//    //  .def(";
-//    
-//    // Also add invite() as a regular function to the module.
-//    def("ShuntSetup", ShuntSetup);
-//
-//    class_<kFu>("kFu");
-//}
-

Deleted: trunk/source/bindings/Boost.Python/kaben_brainstorms.cpp
===================================================================
--- trunk/source/bindings/Boost.Python/kaben_brainstorms.cpp	2005-07-22 18:10:53 UTC (rev 248)
+++ trunk/source/bindings/Boost.Python/kaben_brainstorms.cpp	2005-07-22 18:11:18 UTC (rev 249)
@@ -1,120 +0,0 @@
-
-// Boost Includes ==============================================================
-#include <boost/python.hpp>
-#include <boost/cstdint.hpp>
-
-// Includes ====================================================================
-#include <string.hh>
-
-// Using =======================================================================
-using namespace boost::python;
-
-// Declarations ================================================================
-namespace  {
-
-BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS(cString_Insert_overloads_1_3, Insert, 1, 3)
-
-BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS(cString_Clip_overloads_1_2, Clip, 1, 2)
-
-BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS(cString_Replace_overloads_2_3, Replace, 2, 3)
-
-BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS(cString_CountWhitespace_overloads_0_1, CountWhitespace, 0, 1)
-
-BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS(cString_CountWordsize_overloads_0_1, CountWordsize, 0, 1)
-
-BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS(cString_CountLinesize_overloads_0_1, CountLinesize, 0, 1)
-
-BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS(cString_GetWord_overloads_0_1, GetWord, 0, 1)
-
-BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS(cString_GetWordAt_overloads_0_1, GetWordAt, 0, 1)
-
-BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS(cString_Find_overloads_1_2, Find, 1, 2)
-
-BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS(cString_FindWord_overloads_1_2, FindWord, 1, 2)
-
-
-}// namespace 
-
-
-// Module ======================================================================
-BOOST_PYTHON_MODULE(kaben_brainstorms)
-{
-    class_< cString >("cString", init< optional< const char* > >())
-        .def(init< const int >())
-        .def(init< const cString& >())
-        .def_readonly("MAX_LENGTH", &cString::MAX_LENGTH)
-        .def("GetData", &cString::GetData)
-        .def("GetSize", &cString::GetSize)
-        .def("Compare", &cString::Compare)
-        .def("Set", &cString::Set)
-        .def("Insert", (cString& (cString::*)(const char, int, int) )&cString::Insert, cString_Insert_overloads_1_3())
-        .def("Insert", (cString& (cString::*)(const char*, int, int) )&cString::Insert, cString_Insert_overloads_1_3())
-        .def("Insert", (cString& (cString::*)(const cString&, int, int) )&cString::Insert, cString_Insert_overloads_1_3())
-        .def("Clip", &cString::Clip, cString_Clip_overloads_1_2())
-        .def("ClipFront", &cString::ClipFront)
-        .def("ClipEnd", &cString::ClipEnd)
-        .def("Replace", &cString::Replace, cString_Replace_overloads_2_3())
-        .def("Pop", &cString::Pop)
-        .def("PopWord", &cString::PopWord)
-        .def("PopLine", &cString::PopLine)
-        .def("LeftJustify", &cString::LeftJustify)
-        .def("RightJustify", &cString::RightJustify)
-        .def("Reverse", &cString::Reverse)
-        .def("ToLower", &cString::ToLower)
-        .def("ToUpper", &cString::ToUpper)
-        .def("CompressWhitespace", &cString::CompressWhitespace)
-        .def("RemoveWhitespace", &cString::RemoveWhitespace)
-        .def("RemoveChar", &cString::RemoveChar)
-        .def("RemovePos", &cString::RemovePos)
-        .def("AsInt", &cString::AsInt)
-        .def("AsDouble", &cString::AsDouble)
-        .def("IsEmpty", &cString::IsEmpty)
-        .def("IsContinueLine", &cString::IsContinueLine)
-        .def("CountWhitespace", &cString::CountWhitespace, cString_CountWhitespace_overloads_0_1())
-        .def("CountWordsize", &cString::CountWordsize, cString_CountWordsize_overloads_0_1())
-        .def("CountLinesize", &cString::CountLinesize, cString_CountLinesize_overloads_0_1())
-        .def("CountNumLines", &cString::CountNumLines)
-        .def("CountNumWords", &cString::CountNumWords)
-        .def("GetWord", &cString::GetWord, cString_GetWord_overloads_0_1())
-        .def("GetWordAt", &cString::GetWordAt, cString_GetWordAt_overloads_0_1())
-        .def("IsWhitespace", (bool (cString::*)(int) const)&cString::IsWhitespace)
-        .def("IsUpperLetter", (bool (cString::*)(int) const)&cString::IsUpperLetter)
-        .def("IsLowerLetter", (bool (cString::*)(int) const)&cString::IsLowerLetter)
-        .def("IsLetter", (bool (cString::*)(int) const)&cString::IsLetter)
-        .def("IsNumber", (bool (cString::*)(int) const)&cString::IsNumber)
-        .def("IsNumeric", (bool (cString::*)(int) const)&cString::IsNumeric)
-        .def("IsAlphaNumeric", (bool (cString::*)(int) const)&cString::IsAlphaNumeric)
-        .def("IsWhitespace", (bool (cString::*)() const)&cString::IsWhitespace)
-        .def("IsUpperLetter", (bool (cString::*)() const)&cString::IsUpperLetter)
-        .def("IsLowerLetter", (bool (cString::*)() const)&cString::IsLowerLetter)
-        .def("IsLetter", (bool (cString::*)() const)&cString::IsLetter)
-        .def("IsNumber", (bool (cString::*)() const)&cString::IsNumber)
-        .def("IsNumeric", (bool (cString::*)() const)&cString::IsNumeric)
-        .def("IsAlphaNumeric", (bool (cString::*)() const)&cString::IsAlphaNumeric)
-        .def("Find", (int (cString::*)(char, int) const)&cString::Find, cString_Find_overloads_1_2())
-        .def("Find", (int (cString::*)(const char*, int) const)&cString::Find, cString_Find_overloads_1_2())
-        .def("Find", (int (cString::*)(const cString&, int) const)&cString::Find, cString_Find_overloads_1_2())
-        .def("FindWord", &cString::FindWord, cString_FindWord_overloads_1_2())
-        .def("Substring", &cString::Substring)
-        .def("IsSubstring", &cString::IsSubstring)
-        .def( other< std::istream >() >> self )
-        .def( other< std::ostream >() << self )
-        .def("__call__", &cString::operator ())
-        .def( self == other< char >() )
-        .def( self == self )
-        .def( self != other< char >() )
-        .def( self < other< char >() )
-        .def( self > other< char >() )
-        .def( self <= other< char >() )
-        .def( self >= other< char >() )
-        .def( self += other< char >() )
-        .def( self += other< char >() )
-        .def( self += self )
-        .def( self + other< char >() )
-        .def( self + other< char >() )
-        .def( self + self )
-        .def("__str__", &cString::operator const char*)
-    ;
-
-}
-

Deleted: trunk/source/bindings/Boost.Python/kaben_brainstorms.pyste
===================================================================
--- trunk/source/bindings/Boost.Python/kaben_brainstorms.pyste	2005-07-22 18:10:53 UTC (rev 248)
+++ trunk/source/bindings/Boost.Python/kaben_brainstorms.pyste	2005-07-22 18:11:18 UTC (rev 249)
@@ -1,19 +0,0 @@
-#Function("SetupAvida", "avida.hh")
-#
-#Class("cAvidaDriver_Analyze", "avida_driver_analyze.hh")
-#
-#Class("cAvidaDriver_Base", "avida_driver_base.hh")
-#
-#Class("cAvidaDriver_Population", "avida_driver_population.hh")
-
-#declaration_code("""
-##ifndef ENVIRONMENT_HH
-##include "environment.hh"
-##endif
-##ifndef POPULATION_INTERFACE_HH
-##include "population_interface.hh"
-##endif
-#""")
-#Function("SetupAvida", "avida.hh")
-
-# vim: set ft=python:




More information about the Avida-cvs mailing list