Main Page | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members

CachingController.h

Go to the documentation of this file.
00001 #ifndef CACHINGCONTROLLER_H
00002 #define CACHINGCONTROLLER_H
00003 
00004 #include "Controller.h"
00005 #include <memory.h>
00006 
00010 class CachingController : public Controller  {
00011 public:
00012    CachingController(unsigned int nInputs, unsigned int nOutputs);
00013    virtual ~CachingController();
00014 
00015 protected:
00016    float* oldInput;
00017 
00019    void cacheInput(){
00020       memcpy(oldInput,input,sizeof(float)*nInputs);
00021    }
00022 
00023 };
00024 
00025 #endif //CACHINGCONTROLLER_H

Thyrix homepageUsers' guide

(C) Arxia 2004-2005