NEST  2.6.0,not_revisioned_source_dir@0
conngenmodule.h
Go to the documentation of this file.
1 /*
2  * conngenmodule.h
3  *
4  * This file is part of NEST.
5  *
6  * Copyright (C) 2004 The NEST Initiative
7  *
8  * NEST is free software: you can redistribute it and/or modify
9  * it under the terms of the GNU General Public License as published by
10  * the Free Software Foundation, either version 2 of the License, or
11  * (at your option) any later version.
12  *
13  * NEST is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16  * GNU General Public License for more details.
17  *
18  * You should have received a copy of the GNU General Public License
19  * along with NEST. If not, see <http://www.gnu.org/licenses/>.
20  *
21  */
22 
23 #ifndef CONNGENMODULE_H
24 #define CONNGENMODULE_H
25 
26 #include "slimodule.h"
27 #include "slitype.h"
28 
29 #include "modelrange.h"
30 
31 #include <neurosim/connection_generator.h>
32 
33 typedef std::vector<ConnectionGenerator::ClosedInterval> RangeSet;
34 typedef ConnectionGenerator::ClosedInterval Range;
35 
36 #include "dictdatum.h"
37 
38 namespace nest
39 {
40  class Network;
41 
43  {
44  public:
45 
47 
50 
55  void init(SLIInterpreter*);
56 
57  const std::string name() const;
58  const std::string commandstring() const;
59 
61  {
62  void execute(SLIInterpreter*) const;
64 
66  {
67  void execute(SLIInterpreter*) const;
69 
71  {
72  void execute(SLIInterpreter*) const;
74 
76  {
77  void execute(SLIInterpreter*) const;
79 
81  {
82  void execute(SLIInterpreter*) const;
84 
86  {
87  void execute(SLIInterpreter*) const;
89 
91  {
92  void execute(SLIInterpreter*) const;
94 
96  {
97  void execute(SLIInterpreter*) const;
99 
100  static Network& get_network();
101 
102  private:
103 
108  static Network* net_;
109  };
110 
111  inline
113  {
114  assert(net_ != 0);
115  return *net_;
116  }
117 
119 
120 } // namespace nest
121 
122 #endif /* #ifndef CONNGENMODULE_H */
nest::ConnectionGeneratorModule::CGSetMask_cg_iV_iVFunction cgsetmask_cg_iV_iVfunction
void execute(SLIInterpreter *) const
Definition: conngenmodule.cpp:406
Definition: lockptrdatum.h:40
ConnectionGenerator::ClosedInterval Range
Definition: conngenmodule.h:34
Definition: conngenmodule.h:42
void execute(SLIInterpreter *) const
Definition: conngenmodule.cpp:112
nest::ConnectionGeneratorModule::CGNext_cgFunction cgnext_cgfunction
Definition: slifunction.h:35
nest::ConnectionGeneratorModule::CGStart_cgFunction cgstart_cgfunction
void execute(SLIInterpreter *) const
Definition: conngenmodule.cpp:224
nest::ConnectionGeneratorModule::CGParse_sFunction cgparse_sfunction
void init(SLIInterpreter *)
Initialize module by registering models with the network.
Definition: conngenmodule.cpp:63
assert(pNet!=0)
std::vector< ConnectionGenerator::ClosedInterval > RangeSet
Definition: conngenmodule.h:33
lockPTRDatum< ConnectionGenerator,&nest::ConnectionGeneratorModule::ConnectionGeneratorType > ConnectionGeneratorDatum
Definition: conngenmodule.h:118
static Network * net_
Definition: conngenmodule.h:108
nest::ConnectionGeneratorModule::CGSelectImplementation_s_sFunction cgselectimplementation_s_sfunction
nest::ConnectionGeneratorModule::CGParseFile_sFunction cgparsefile_sfunction
nest::ConnectionGeneratorModule::CGConnect_cg_i_i_D_lFunction cgconnect_cg_i_i_D_lfunction
Definition: interpret.h:69
Main administrative interface to the network.
Definition: network.h:135
Definition: slitype.h:49
static SLIType ConnectionGeneratorType
Definition: conngenmodule.h:46
void execute(SLIInterpreter *) const
Definition: conngenmodule.cpp:178
ConnectionGeneratorModule(Network &)
Definition: conngenmodule.cpp:43
Base class for all SLI Interpreter modules.
Definition: slimodule.h:34
const std::string name() const
Return name of the module.
Definition: conngenmodule.cpp:53
void execute(SLIInterpreter *) const
Definition: conngenmodule.cpp:324
~ConnectionGeneratorModule()
Definition: conngenmodule.cpp:48
void execute(SLIInterpreter *) const
Definition: conngenmodule.cpp:286
nest::ConnectionGeneratorModule::CGConnect_cg_iV_iV_D_lFunction cgconnect_cg_iV_iV_D_lfunction
static Network & get_network()
Definition: conngenmodule.h:112
void execute(SLIInterpreter *) const
Definition: conngenmodule.cpp:255
const std::string commandstring() const
Return sli command sequence to be executed for initialisation.
Definition: conngenmodule.cpp:58
void execute(SLIInterpreter *) const
Definition: conngenmodule.cpp:367