NEST  2.6.0,not_revisioned_source_dir@0
cg_connect.h
Go to the documentation of this file.
1 /*
2  * cg_connect.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 CG_CONNECT_H
24 #define CG_CONNECT_H
25 
26 #include "conngenmodule.h"
27 #include "vector"
28 
29 namespace nest
30 {
31  void cg_connect(ConnectionGeneratorDatum& cg, RangeSet& sources, index source_offset, RangeSet& targets, index target_offset, DictionaryDatum params_map, index syn);
32  void cg_connect(ConnectionGeneratorDatum& cg, RangeSet& sources, std::vector<long>& source_gids, RangeSet& targets, std::vector<long>& target_gids, DictionaryDatum params_map, index syn);
33 
35  void cg_create_masks(std::vector<ConnectionGenerator::Mask>* masks, RangeSet& sources, RangeSet& targets);
36 
37  index cg_get_right_border(index left, size_t step, std::vector<long>& gids);
38  void cg_get_ranges(RangeSet& ranges, std::vector<long>& gids);
39 }
40 
41 #endif /* #ifndef CG_CONNECT_H */
42 
43 
size_t index
Unsigned long type for enumerations.
Definition: nest.h:109
void cg_connect(ConnectionGeneratorDatum &cg, RangeSet &sources, index source_offset, RangeSet &targets, index target_offset, DictionaryDatum params_map, index syn)
Definition: cg_connect.cpp:30
void cg_get_ranges(RangeSet &ranges, std::vector< long > &gids)
Determine all contiguous ranges found in a given vector of gids and add the ranges to the given Range...
Definition: cg_connect.cpp:303
void cg_set_masks(ConnectionGeneratorDatum &cg, RangeSet &sources, RangeSet &targets)
Set the masks on the ConnectionGenerator cg.
Definition: cg_connect.cpp:130
index cg_get_right_border(index left, size_t step, std::vector< long > &gids)
Calculate the right border of the contiguous range of gids starting at left.
Definition: cg_connect.cpp:236
std::vector< ConnectionGenerator::ClosedInterval > RangeSet
Definition: conngenmodule.h:33
lockPTRDatum< ConnectionGenerator,&nest::ConnectionGeneratorModule::ConnectionGeneratorType > ConnectionGeneratorDatum
Definition: conngenmodule.h:118
void cg_create_masks(std::vector< ConnectionGenerator::Mask > *masks, RangeSet &sources, RangeSet &targets)
Create the masks for sources and targets based on the contiguous ranges given in sources and targets...
Definition: cg_connect.cpp:173
const Name sources("sources")
Definition: topology_names.h:56
const Name targets("targets")
Connection parameters.
Definition: nest_names.h:284