From 6e925bedea58bd03e63eb871a22ba56a6dc53924 Mon Sep 17 00:00:00 2001 From: mac Date: Sun, 9 Apr 2000 09:44:53 +0000 Subject: [PATCH] Updated documentation to give proper include file in doxygen and define a module bitstring --- eo/src/ga/eoBin.h | 10 +++++++++- eo/src/ga/eoBitOp.h | 43 +++++++++++++++++++++++++++++++++++-------- 2 files changed, 44 insertions(+), 9 deletions(-) diff --git a/eo/src/ga/eoBin.h b/eo/src/ga/eoBin.h index 1d7ec419..6ff79441 100644 --- a/eo/src/ga/eoBin.h +++ b/eo/src/ga/eoBin.h @@ -29,8 +29,16 @@ #include // string #include // EO +/** +\defgroup bitstring + + Various functions for a bitstring representation +*/ + /** eoBin: implementation of binary chromosome. - * based on STL's bit_vector (vector). +\class eoBin eoBin.h ga/eoBin.h +\ingroup bitstring + * based on STL's bit_vector (vector). */ template class eoBin: public eoVector { diff --git a/eo/src/ga/eoBitOp.h b/eo/src/ga/eoBitOp.h index b1bab4b5..ef3137f2 100644 --- a/eo/src/ga/eoBitOp.h +++ b/eo/src/ga/eoBitOp.h @@ -15,6 +15,9 @@ /** @name BitWise Genetic operators +\class eoBinRandom eoBitOp.h ga/eoBitOp.h +\ingroup bitstring + Even as these operators might seem general, they are particular versions of genetic operators useful only for binary operators. As any set of genetic operators, it must have a factory that knows how to build them from a description @@ -47,7 +50,10 @@ template class eoBinRandom: public eoMonOp }; -/** eoBinBitFlip --> chages a bit */ +/** eoBinBitFlip --> changes a bit +\class eoBinBitFlip eoBitOp.h ga/eoBitOp.h +\ingroup bitstring +*/ template class eoBinBitFlip: public eoMonOp { @@ -68,7 +74,10 @@ template class eoBinBitFlip: public eoMonOp }; -/** eoBinMutation --> classical mutation */ +/** eoBinMutation --> classical mutation +\class eoBinMutation eoBitOp.h ga/eoBitOp.h +\ingroup bitstring +*/ template class eoBinMutation: public eoMonOp { @@ -99,7 +108,10 @@ template class eoBinMutation: public eoMonOp }; -/** eoBinInversion: inverts the bits of the chromosome between an interval */ +/** eoBinInversion: inverts the bits of the chromosome between an interval +\class eoBinInversion eoBitOp.h ga/eoBitOp.h +\ingroup bitstring +*/ template class eoBinInversion: public eoMonOp { @@ -124,7 +136,10 @@ template class eoBinInversion: public eoMonOp }; -/** eoBinNext --> next binary value */ +/** eoBinNext --> next binary value +\class eoBinNext eoBitOp.h ga/eoBitOp.h +\ingroup bitstring +*/ template class eoBinNext: public eoMonOp { @@ -153,7 +168,10 @@ template class eoBinNext: public eoMonOp }; -/** eoBinPrev --> previos binary value */ +/** eoBinPrev --> previous binary value +\class eoBinPrev eoBitOp.h ga/eoBitOp.h +\ingroup bitstring +*/ template class eoBinPrev: public eoMonOp { @@ -182,7 +200,10 @@ template class eoBinPrev: public eoMonOp }; -/** eoBinCrossover --> classic 2-point crossover */ +/** eoBinCrossover --> classic 2-point crossover +\class eoBinCrossover eoBitOp.h ga/eoBitOp.h +\ingroup bitstring +*/ template class eoBinCrossover: public eoQuadraticOp { @@ -203,7 +224,10 @@ template class eoBinCrossover: public eoQuadraticOp }; -/** eoBinNxOver --> n-point crossover */ +/** eoBinNxOver --> n-point crossover +\class eoBinNxOver eoBitOp.h ga/eoBitOp.h +\ingroup bitstring +*/ template class eoBinNxOver: public eoQuadraticOp { @@ -261,7 +285,10 @@ template class eoBinNxOver: public eoQuadraticOp }; -/** eoBinGxOver --> gene crossover */ +/** eoBinGxOver --> gene crossover +\class eoBinGxOver eoBitOp.h ga/eoBitOp.h +\ingroup bitstring +*/ template class eoBinGxOver: public eoQuadraticOp {