root/include/core/Network.hpp

/* [<][>][^][v][top][bottom][index][help] */

INCLUDED FROM


   1 #ifndef _NETWORK_HPP_
   2 #define _NETWORK_HPP_
   3 
   4 #include "utility/libraries.hpp"
   5 #include "utility/constants.hpp"
   6 #include "core/Neuron.hpp"
   7 
   8 class Network
   9 {
  10 public:
  11     string id;
  12     osg::ref_ptr<osg::MatrixTransform> node;
  13     std::vector<Neuron *> neuron_seq;
  14     std::unordered_map<string, Neuron *> neuron_map;
  15 
  16     Network(const char * id);
  17 
  18     ~Network();
  19 
  20     const char *
  21     get_id();
  22 
  23     void
  24     hide();
  25 
  26     void
  27     show();
  28 
  29     bool
  30     is_visible();
  31 
  32     unsigned int
  33     size();
  34 
  35     unsigned int
  36     add_neuron(Neuron * neuron);
  37 
  38     unsigned int
  39     remove_neuron(Neuron * neuron);
  40 
  41     Neuron *
  42     get_neuron(const char * id);
  43 
  44     bool
  45     set_colors(PyObject * colors);
  46 };
  47 
  48 #endif /* _NETWORK_HPP_ */

/* [<][>][^][v][top][bottom][index][help] */