NEST main@caf0ae8
 
Loading...
Searching...
No Matches
sp_manager_impl.h
Go to the documentation of this file.
1/*
2 * sp_manager_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 SP_MANAGER_IMPL_H
24#define SP_MANAGER_IMPL_H
25
26#include "sp_manager.h"
27
28// C++ includes:
29#include <string>
30
31// Includes from nestkernel:
32#include "growth_curve.h"
34
35namespace nest
36{
37
38template < typename GrowthCurve >
39void
40SPManager::register_growth_curve( const std::string& name )
41{
42 assert( not growthcurvedict_.known( name ) );
44 assert( nc );
45 const int id = growthcurve_factories_.size();
46 growthcurve_factories_.push_back( nc );
47 growthcurvedict_[ name ] = static_cast< long >( id );
48}
49
50} // namespace nest
51
52#endif /* SP_MANAGER_IMPL_H */
bool known(const std::string &key) const
Check whether there exists a value with specified key in the dictionary.
Definition dictionary.h:677
Generic factory class for GrowthCurve objects.
Definition growth_curve_factory.h:44
Factory class for generating objects of type GrowthCurve.
Definition growth_curve_factory.h:58
void register_growth_curve(const std::string &name)
Add a growth curve for MSP.
Definition sp_manager_impl.h:40
Dictionary growthcurvedict_
Dictionary for growth rules.
Definition sp_manager.h:205
std::vector< GenericGrowthCurveFactory * > growthcurve_factories_
GrowthCurve factories, indexed by growthcurvedict_ elements.
Definition sp_manager.h:203
Namespace for the NEST simulation kernel.
Definition beta_normalization_factor.h:33