NEST main@caf0ae8
 
Loading...
Searching...
No Matches
conn_builder_impl.h
Go to the documentation of this file.
1/*
2 * conn_builder_impl.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 CONN_BUILDER_IMPL_H
24#define CONN_BUILDER_IMPL_H
25
26#include "conn_builder.h"
27
28// Includes from nestkernel:
29#include "kernel_manager.h"
30#include "nest_names.h"
31
32namespace nest
33{
34
35inline void
36BipartiteConnBuilder::single_disconnect_( size_t snode_id, Node& target, size_t target_thread )
37{
38 // index tnode_id = target.get_node_id();
39 // This is the most simple case in which only the synapse_model_ has been
40 // defined. TODO: Add functionality to delete synapses with a given weight
41 // or a given delay
42 if ( synapse_model_id_.size() > 1 )
43 {
44 throw KernelException( "Can only disconnect when single element syn_spec has been used." );
45 }
46 kernel().sp_manager.disconnect( snode_id, &target, target_thread, synapse_model_id_[ 0 ] );
47}
48
49} // namespace nest
50
51#endif /* CONN_BUILDER_IMPL_H */
void single_disconnect_(size_t, Node &, size_t)
Definition conn_builder_impl.h:36
std::vector< size_t > synapse_model_id_
Definition conn_builder.h:241
Base class for all Kernel exceptions.
Definition exceptions.h:65
Base class for all NEST network objects.
Definition node.h:99
void disconnect(NodeCollectionPTR sources, NodeCollectionPTR targets, const Dictionary &conn_spec, const std::vector< Dictionary > &syn_specs)
Disconnect two collections of nodes.
Definition sp_manager.cpp:238
SPManager sp_manager
Definition kernel_manager.h:240
Namespace for the NEST simulation kernel.
Definition beta_normalization_factor.h:33
KernelManager & kernel()
Definition kernel_manager.h:311