neuron_group.h
#ifndef __SHAREWIZ_NEURON_GROUP_H__ #define __SHAREWIZ_NEURON_GROUP_H__ #include <memory> #include <vector> class NeuronGroup; class Neuron; typedef std::shared_ptr<NeuronGroup> pNeuronGroupX; typedef std::vector<pNeuronGroupX> pNeuronGroup; typedef std::shared_ptr<Neuron> pNeuronX; typedef std::vector<pNeuronX> pNeuron; class NeuronGroup { private: int index; pNeuron neurons; public: NeuronGroup(); NeuronGroup(unsigned int num_neurons); unsigned int getSize(void); // Returns how many neurons. int getIndex(void); void setIndex(const int& index); void addNeuron(const pNeuronX& n); void removeNeuron(const int& idx); pNeuronX& getNeuron(const int& idx); //void feedForward(const pLayerX& prevLayer); void printOutput(void); }; #endif