VPTissue Reference Manual
Default/components/move_generator/factories.cpp
Go to the documentation of this file.
1 /*
2  * Copyright 2011-2016 Universiteit Antwerpen
3  *
4  * Licensed under the EUPL, Version 1.1 or as soon they will be approved by
5  * the European Commission - subsequent versions of the EUPL (the "Licence");
6  * You may not use this work except in compliance with the Licence.
7  * You may obtain a copy of the Licence at: http://ec.europa.eu/idabc/eupl5
8  *
9  * Unless required by applicable law or agreed to in writing, software
10  * distributed under the Licence is distributed on an "AS IS" basis,
11  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12  * See the Licence for the specific language governing
13  * permissions and limitations under the Licence.
14  */
20 #include "factories.h"
21 
22 #include "DirectedNormal.h"
23 #include "DirectedUniform.h"
24 #include "StandardNormal.h"
25 #include "StandardUniform.h"
26 
27 #include <boost/functional/value_factory.hpp>
28 #include <utility>
29 
30 namespace SimPT_Default {
31 namespace MoveGenerator {
32 
33 // ------------------------------------------------------------------------------
34 // Add new classes here (but do not forget to include the header also).
35 // ------------------------------------------------------------------------------
36 const typename ComponentTraits<MoveGeneratorTag>::MapType g_component_factories
37 {{
38  std::make_pair("directed_normal", boost::value_factory<DirectedNormal>()),
39  std::make_pair("directed_uniform", boost::value_factory<DirectedUniform>()),
40  std::make_pair("standard_normal", boost::value_factory<StandardNormal>()),
41  std::make_pair("standard_uniform", boost::value_factory<StandardUniform>())
42 }};
43 
44 } // namespace
45 } // namespace
MoveGenerator component: DirectedUniform.
MoveGenerator component: StandardNormal.
Namespace for components of the Default model group.
MoveGenerator component: DirectedNormal.
const ComponentTraits< MoveGeneratorTag >::MapType g_component_factories
Stores MoveGenerator component factories.
CellSplit component factory map.
MoveGenerator component: StandardUniform.