diff options
Diffstat (limited to '')
| -rw-r--r-- | src/column.h | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/src/column.h b/src/column.h index 17ba899..8c07f62 100644 --- a/src/column.h +++ b/src/column.h | |||
| @@ -40,14 +40,19 @@ namespace Neural | |||
| 40 | 40 | ||
| 41 | virtual void process( sigtype *aInput, sigtype *aOutput ) | 41 | virtual void process( sigtype *aInput, sigtype *aOutput ) |
| 42 | { | 42 | { |
| 43 | 43 | typename BufferList::iterator iBuf = lBuffer.begin(); | |
| 44 | sigtype *pInput, *pOutput; | 44 | sigtype *pBuffer = aInput; |
| 45 | int iOutputOffset = 0; | 45 | sigtype *pNextBuffer = *iBuf; |
| 46 | for( typename Container<sigtype>::NodeList::iterator i = | 46 | for( typename Container<sigtype>::NodeList::iterator i = |
| 47 | Container<sigtype>::getNodeList().begin(); i; i++ ) | 47 | Container<sigtype>::getNodeList().begin(); i; i++ ) |
| 48 | { | 48 | { |
| 49 | (*i)->process( aInput, aOutput+iOutputOffset ); | 49 | (*i)->process( pBuffer, pNextBuffer ); |
| 50 | iOutputOffset += (*i)->getNumOutputs(); | 50 | pBuffer = pNextBuffer; |
| 51 | iBuf++; | ||
| 52 | if( iBuf ) | ||
| 53 | pNextBuffer = *iBuf; | ||
| 54 | else | ||
| 55 | pNextBuffer = aOutput; | ||
| 51 | } | 56 | } |
| 52 | } | 57 | } |
| 53 | 58 | ||
