Extreme cleanup, see src/obsolete for details
This commit is contained in:
parent
7f04d616e6
commit
6d8e3a6504
141 changed files with 3937 additions and 1815 deletions
|
|
@ -3,12 +3,12 @@
|
|||
|
||||
#include <list>
|
||||
|
||||
#include "EO.h"
|
||||
#include "eoOp.h"
|
||||
#include "eoInserter.h"
|
||||
#include "eoIndiSelector.h"
|
||||
#include "parse_tree.h"
|
||||
#include "eoRnd.h"
|
||||
#include <EO.h>
|
||||
#include <eoOp.h>
|
||||
#include <eoInserter.h>
|
||||
#include <eoIndiSelector.h>
|
||||
#include <gp/parse_tree.h>
|
||||
#include <eoInit.h>
|
||||
|
||||
using namespace gp_parse_tree;
|
||||
using namespace std;
|
||||
|
|
@ -90,7 +90,7 @@ std::istream& operator>>(std::istream& is, eoParseTree<FType, Node>& eot)
|
|||
|
||||
|
||||
template <class FType, class Node>
|
||||
class eoGpDepthInitializer : public eoRnd< eoParseTree<FType, Node>::Type >
|
||||
class eoGpDepthInitializer : public eoInit< eoParseTree<FType, Node> >
|
||||
{
|
||||
public :
|
||||
|
||||
|
|
@ -109,15 +109,13 @@ class eoGpDepthInitializer : public eoRnd< eoParseTree<FType, Node>::Type >
|
|||
|
||||
virtual string className() const { return "eoDepthInitializer"; };
|
||||
|
||||
EoType::Type operator()(void)
|
||||
void operator()(EoType& _tree)
|
||||
{
|
||||
list<Node> sequence;
|
||||
|
||||
generate(sequence, max_depth);
|
||||
|
||||
parse_tree<Node> tree(sequence.begin(), sequence.end());
|
||||
|
||||
return tree.root();
|
||||
_tree = parse_tree<Node>(sequence.begin(), sequence.end());
|
||||
}
|
||||
|
||||
void generate(list<Node>& sequence, int the_max, int last_terminal = -1)
|
||||
|
|
|
|||
|
|
@ -1,3 +1,31 @@
|
|||
/**
|
||||
|
||||
* Pool allocator for the subtree and parse tree classes (homebrew and not compliant to ANSI allocator requirements)
|
||||
* (c) copyright Maarten Keijzer 1999, 2000
|
||||
|
||||
* Permission to copy, use, modify, sell and distribute this software is granted provided
|
||||
* this copyright notice appears in all copies. This software is provided "as is" without
|
||||
* express or implied warranty, and with no claim as to its suitability for
|
||||
* any purpose.
|
||||
|
||||
* Permission to modify the code and to distribute modified code is granted,
|
||||
* provided the above notices are retained, and a notice that the code was
|
||||
* modified is included with the above copyright notice.
|
||||
|
||||
|
||||
* Special disclaimer and political statement:
|
||||
|
||||
* In contrast with the rest of the EO package where you might have found this code, this software
|
||||
* does NOT fall under the GNU Lesser Public License or the GNU Public License, nor is anyone allowed
|
||||
* by the copyright holder (that's me) to put it under either license.
|
||||
* Doing this would limit my and your freedom to use this software in any way
|
||||
* you or I see fit, including but not limited to closed-source software. I personally do not adher to
|
||||
* virus-like qualities of the GPL and therefore take the liberty to open this code as wide as I can.
|
||||
* Furthermore, as this work was carried out in an academic environment and thus paid by the public
|
||||
* I do not see the need for the same public (which includes commercial companies)
|
||||
* to be limited in any way to use this software.
|
||||
|
||||
*/
|
||||
|
||||
#ifndef node_pool_h
|
||||
#define node_pool_h
|
||||
|
|
|
|||
|
|
@ -4,24 +4,26 @@
|
|||
/**
|
||||
|
||||
* Parse_tree and subtree classes
|
||||
* (c) Maarten Keijzer 1999, 2000
|
||||
* (c) copyright Maarten Keijzer 1999, 2000
|
||||
|
||||
* These classes may be used for educational and
|
||||
* other non-commercial purposes only. Even if I
|
||||
* wanted to, I am not at liberty to place this file
|
||||
* under the GNU Lesser Public Library License, as this
|
||||
* would limit my and my institution's freedom to use
|
||||
* this file in closed-source software.
|
||||
* Permission to copy, use, modify, sell and distribute this software is granted provided
|
||||
* this copyright notice appears in all copies. This software is provided "as is" without
|
||||
* express or implied warranty, and with no claim as to its suitability for
|
||||
* any purpose.
|
||||
|
||||
* This material is provided "as is", with absolutely no warranty expressed
|
||||
* or implied. Any use is at your own risk.
|
||||
*
|
||||
* Permission to use or copy this software for non-commercial purpose is hereby granted
|
||||
* without fee, provided the above notices are retained on all copies.
|
||||
* Permission to modify the code and to distribute modified code is granted,
|
||||
* provided the above notices are retained, and a notice that the code was
|
||||
* provided the above notices as well as this one are retained, and a notice that the code was
|
||||
* modified is included with the above copyright notice.
|
||||
*
|
||||
|
||||
|
||||
* Special disclaimer and political statement:
|
||||
|
||||
* In contrast with the rest of the EO package where you might have found this code, this software
|
||||
* does NOT fall under the GNU Lesser Public License or the GNU Public License, nor is anyone allowed
|
||||
* by the copyright holder (that's me) to put it under either license.
|
||||
* Doing this would limit my and your freedom to use this software in any way
|
||||
* you or I see fit, including but not limited to closed-source software.
|
||||
|
||||
|
||||
|
||||
Usage information.
|
||||
|
|
|
|||
Reference in a new issue