Neuron Class Reference
#include <neuron.h>
Inheritance diagram for Neuron:
List of all members.
Detailed Description
Base class of all neurons.
It maintains arrays for incoming and outgoing synapses which can be added by addIncoming() and addOutgoing(). Other neuron types derived from this class should reimplement addIncoming() and addOutgoing() to check wheter we are connecting allowable synapse types.
Public Member Functions
Public Attributes
-
int type
- Type (e.g. inhibitory or excitatory) of the neuron.
Protected Attributes
-
Synapse ** incoming
- A list of incoming synapses.
-
int nIncoming
- Number of incoming synapses.
-
int nIncomingAlloc
- Current size of array (in number of synapses) allocated for incoming synapses.
-
Synapse ** outgoing
- An array of outgoing synapses.
-
int nOutgoing
- Number of outgoing synapses.
-
int nOutgoingAlloc
- Current size of array (in number of synapses) allocated for outgoing synapses.