|
|||||||||||
Main Page | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages
neuron.hGo to the documentation of this file.00001 00005 #ifndef _NEURON_H_ 00006 #define _NEURON_H_ 00007 00008 #include "forceable.h" 00009 #include "csimlist.h" 00010 #include "synapsetarget.h" 00011 00012 class Synapse; 00013 00015 00020 class Neuron : public Forceable, public SynapseTarget { 00021 00022 public: 00023 00024 // The constructor. 00025 Neuron(void); 00026 00027 // The destructor. 00028 virtual ~Neuron(); 00029 00031 virtual void reset(void) { summationPoint = 0.0; }; 00032 00034 virtual int addIncoming(Advancable *s); 00035 00037 virtual int addOutgoing(Advancable *s); 00038 00040 int type; 00041 00042 inline uint32 nPre(void) { return nIncoming; } 00043 inline uint32 nPost(void) { return nOutgoing; } 00044 void getPre(uint32 *idx); 00045 void getPost(uint32 *idx); 00046 00047 protected: 00048 00050 Synapse **incoming; 00051 00053 int nIncoming; 00054 00056 int nIncomingAlloc; 00057 00059 Synapse **outgoing; 00060 00062 int nOutgoing; 00063 00065 int nOutgoingAlloc; 00066 00067 }; 00068 00069 #endif | |||||||||||
(C) 2003, Thomas Natschläger | last modified 07/10/2006 |