From 2406848173c445a94a1710106116ad796a8bacb9 Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Sat, 4 Aug 2012 18:34:57 -0600 Subject: Made some changes to make serializing workable. There's no official format yet, but that's coming, most likely. --- src/phenotypebinary.h | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'src/phenotypebinary.h') diff --git a/src/phenotypebinary.h b/src/phenotypebinary.h index f312187..92146d2 100644 --- a/src/phenotypebinary.h +++ b/src/phenotypebinary.h @@ -3,8 +3,6 @@ #include "genetic/phenotype.h" -#include - namespace Genetic { class PhenotypeBinary : public Phenotype @@ -21,12 +19,12 @@ namespace Genetic int iCount, int iDest=-1 ); virtual Bu::String toString(); + virtual void write( Bu::Stream &rStream ); + virtual void read( Bu::Stream &rStream ); + void extractBits( uint32_t &rTarget, int iStart, int iBits ); void extractBits( uint64_t &rTarget, int iStart, int iBits ); - void write( Bu::Stream &rStream ); - void read( Bu::Stream &rStream ); - private: int iSize; int iWords; -- cgit v1.2.3