VPTissue Reference Manual
Default/components/hamiltonian/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 "ElasticWall.h"
23 #include "Maxwell.h"
24 #include "ModifiedGC.h"
25 #include "PlainGC.h"
26 
27 #include <boost/functional/value_factory.hpp>
28 #include <utility>
29 
30 using namespace std;
31 
32 namespace SimPT_Default {
33 namespace Hamiltonian {
34 
35 const typename ComponentTraits<HamiltonianTag>::MapType g_component_factories
36 {{
37  std::make_pair("ElasticWall", boost::value_factory<ElasticWall>()),
38  std::make_pair("Maxwell", boost::value_factory<Maxwell>()),
39  std::make_pair("ModifiedGC", boost::value_factory<ModifiedGC>()),
40  std::make_pair("PlainGC", boost::value_factory<PlainGC>()),
41 }};
42 
43 } // namespace
44 } // namespace
Hamiltonian component factory map.
STL namespace.
Interface for Hamiltonian PlainGC component.
Namespace for components of the Default model group.
Interface for Hamiltonian Maxwell component.
Interface for Hamiltonian ElasticWall component.
Interface for Hamiltonian::ModifiedGC.
const ComponentTraits< HamiltonianTag >::MapType g_component_factories
Stores Hamiltonian component factories.