replace TODO comments by @ŧodo doxygen command

This commit is contained in:
Johann Dreo 2010-11-01 22:09:40 +01:00
commit 4310aaf5cc
10 changed files with 13 additions and 12 deletions

View file

@ -109,7 +109,7 @@ public :
} }
bool changed = false; bool changed = false;
for ( unsigned i = 0; i < k; i++ ) // TODO: check that we don't do twice the same for ( unsigned i = 0; i < k; i++ ) //! @todo check that we don't do twice the same
{ {
unsigned where = eo::rng.random(_eo1.size()); unsigned where = eo::rng.random(_eo1.size());
bool changedHere = op( _eo1[where], _eo2[where] ); bool changedHere = op( _eo1[where], _eo2[where] );

View file

@ -101,7 +101,7 @@ public :
} }
bool changed = false; bool changed = false;
for ( unsigned i = 0; i < k; i++ ) // TODO: check that we don't do twice the same for ( unsigned i = 0; i < k; i++ ) //! @todo check that we don't do twice the same
{ {
unsigned where = eo::rng.random(_eo1.size()); unsigned where = eo::rng.random(_eo1.size());
bool changedHere = op( _eo1[where], _eo2[where] ); bool changedHere = op( _eo1[where], _eo2[where] );

View file

@ -113,6 +113,6 @@ class eoSTLBF : public std::binary_function<A1, A2, R>
eoBF<A1, A2, R>& f; eoBF<A1, A2, R>& f;
}; };
// TODO: put automated wrappers here... //! @todo: put automated wrappers here...
#endif #endif

View file

@ -251,7 +251,7 @@ public :
} while ( ( (tmp1.size()<Min) || (tmp2.size()<Min) || } while ( ( (tmp1.size()<Min) || (tmp2.size()<Min) ||
(tmp1.size()>Max) || (tmp2.size()>Max) ) (tmp1.size()>Max) || (tmp2.size()>Max) )
&& (index<10000) ); && (index<10000) );
// FIXME bad hardcoded limit, should use an algorithm that guarantee a correct size in a finite number of tries //! @todo FIXME bad hardcoded limit, should use an algorithm that guarantee a correct size in a finite number of tries
if (index >= 10000) if (index >= 10000)
{ {
eo::log << eo::warnings << "Warning: impossible to generate individual of the right size in 10000 trials" << std::endl; eo::log << eo::warnings << "Warning: impossible to generate individual of the right size in 10000 trials" << std::endl;

View file

@ -31,7 +31,7 @@
#include <algorithm> #include <algorithm>
/// TODO, handle bounds /// @todo handle bounds
template <class FitT> template <class FitT>
class eoCMABreed : public eoBreed< eoVector<FitT, double> > { class eoCMABreed : public eoBreed< eoVector<FitT, double> > {

View file

@ -32,7 +32,7 @@
#include <eoVector.h> #include <eoVector.h>
#include <es/CMAState.h> #include <es/CMAState.h>
/// TODO, handle bounds /// @todo handle bounds
template <class FitT> template <class FitT>
class eoCMAInit : public eoInit< eoVector<FitT, double> > { class eoCMAInit : public eoInit< eoVector<FitT, double> > {

View file

@ -181,9 +181,9 @@ template <class T> class parse_tree
class subtree class subtree
{ {
/* /**
a bit nasty way to use a pool allocator (which would otherwise use slooow new and delete) a bit nasty way to use a pool allocator (which would otherwise use slooow new and delete)
TODO: use the std::allocator interface @todo use the std::allocator interface
*/ */
#if (defined(__GNUC__) || defined(_MSC_VER)) && !(defined(_MT) || defined(MACOSX) || defined(__APPLE__)) // not multithreaded (or MACOSX - J. Eggermont) #if (defined(__GNUC__) || defined(_MSC_VER)) && !(defined(_MT) || defined(MACOSX) || defined(__APPLE__)) // not multithreaded (or MACOSX - J. Eggermont)

View file

@ -43,7 +43,7 @@ Assumes that the parameters that are passed to the monitor
A dir is created and one file per snapshot is created there - A dir is created and one file per snapshot is created there -
so you can later generate a movie! so you can later generate a movie!
TODO: The counter is handled internally, but this should be changed @todo The counter is handled internally, but this should be changed
so that you can pass e.g. an evalcounter (minor) so that you can pass e.g. an evalcounter (minor)
I failed to templatize everything so that it can handle eoParam<std::vector<T> > I failed to templatize everything so that it can handle eoParam<std::vector<T> >

View file

@ -37,7 +37,8 @@ eoMonitor& eoOStreamMonitor::operator()(void)
} // if firstime } // if firstime
// ok, now the real saving. write out // ok, now the real saving. write out
/* TODO old verbose formatting, do we still need it? //! @todo old verbose formatting, do we still need it?
/*
for (iterator it = vec.begin (); it != vec.end (); ++it) { for (iterator it = vec.begin (); it != vec.end (); ++it) {
// name: value // name: value
out << (*it)->longName () << ": " << (*it)->getValue () << std::endl; out << (*it)->longName () << ": " << (*it)->getValue () << std::endl;

View file

@ -164,7 +164,7 @@ pair<bool, string> eoParser::getValue(eoParam& _param) const
result.first = true; result.first = true;
return result; return result;
} }
// else (TODO: check environment, just long names) //! @todo check environment, just long names
return result; return result;
} }
@ -210,7 +210,7 @@ void eoParser::readFrom(istream& is)
string value; string value;
if (equalLocation == str.end()) if (equalLocation == str.end())
{ // TODO: it should be the next string { //! @todo it should be the next string
value = ""; value = "";
} }
else else