Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members  

functionlookup.h

00001 /***************************************************************************
00002                           functionlookup.h  -  description
00003                              -------------------
00004     copyright            : (C) 2001 by Matt Grover
00005     email                : mgrover@amygdala.org
00006  ***************************************************************************/
00007 
00008 /***************************************************************************
00009  *                                                                         *
00010  *   This program is free software; you can redistribute it and/or modify  *
00011  *   it under the terms of the GNU General Public License as published by  *
00012  *   the Free Software Foundation; either version 2 of the License, or     *
00013  *   (at your option) any later version.                                   *
00014  *                                                                         *
00015  ***************************************************************************/
00016 
00017 #ifndef FUNCTIONLOOKUP_H
00018 #define FUNCTIONLOOKUP_H
00019 
00020 using namespace std;
00021 
00022 #include <vector>
00023 #include <string>
00024 #include <amygdala/neuron.h>
00025 
00026 class Neuron;
00027 
00046 class FunctionLookup {
00047 public: 
00048     FunctionLookup();
00049     ~FunctionLookup();
00050 
00056     float* GetLookupTable(Neuron* reqNrn, int tableIdx, int tableSize, int stepSize);
00057     
00058 private:
00059     int stepSize;
00060     int tableSize;
00061 
00062     // Storage for a pointer to a table and its associated
00063     // parameters
00064     struct tableData {
00065         int index;
00066         int size;
00067         int stepSize;
00068         int numParams;
00069         string nrnType;
00070         float* data;
00071         float* params;
00072     };
00073 
00074     // vector of lookup tables
00075     vector<tableData> lookup;
00076 };
00077 
00078 #endif

Generated on Wed Sep 4 02:30:34 2002 for Amygdala by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002