Rosetta 3.5
Main Page
Related Pages
Namespaces
Classes
Files
Examples
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
src
core
chemical
orbitals
OrbitalTypeMapper.cc
Go to the documentation of this file.
1
// -*- mode:c++;tab-width:2;indent-tabs-mode:t;show-trailing-whitespace:t;rm-trailing-spaces:t -*-
2
// vi: set ts=2 noet:
3
//
4
// (c) Copyright Rosetta Commons Member Institutions.
5
// (c) This file is part of the Rosetta software suite and is made available under license.
6
// (c) The Rosetta software is developed by the contributing members of the Rosetta Commons.
7
// (c) For more information, see http://www.rosettacommons.org. Questions about this can be
8
// (c) addressed to University of Washington UW TechTransfer, email: license@u.washington.edu.
9
10
#include <
core/chemical/orbitals/OrbitalTypeMapper.hh
>
11
#include <map>
12
13
#include <string>
14
15
16
namespace
core{
17
namespace
chemical{
18
namespace
orbitals{
19
20
21
OrbitalTypeMapper *
OrbitalTypeMapper::instance_
(0);
22
23
OrbitalTypeMapper::OrbitalTypeMapper
()
24
{
25
map_orbital_name_to_enum
();
26
}
27
28
OrbitalTypeMapper::~OrbitalTypeMapper
()
29
{ }
30
31
32
33
OrbitalTypeMapper
*
34
OrbitalTypeMapper::get_instance
()
35
{
36
if
(!
instance_
)
37
{
38
OrbitalTypeMapper
* instance_local =
new
OrbitalTypeMapper
;
39
instance_
= instance_local;
40
}
41
return
instance_
;
42
}
43
44
void
OrbitalTypeMapper::map_orbital_name_to_enum
()
45
{
46
orbital_type_2_enum_
[
"C.pi.sp2"
]=
C_pi_sp2
;
47
orbital_type_2_enum_
[
"N.pi.sp2"
]=
N_pi_sp2
;
48
orbital_type_2_enum_
[
"N.p.sp2"
]=
N_p_sp2
;
49
orbital_type_2_enum_
[
"O.pi.sp2"
]=
O_pi_sp2
;
50
orbital_type_2_enum_
[
"O.p.sp2"
]=
O_p_sp2
;
51
orbital_type_2_enum_
[
"O.p.sp3"
]=
O_p_sp3
;
52
orbital_type_2_enum_
[
"S.p.sp3"
]=
S_p_sp3
;
53
orbital_type_2_enum_
[
"O.pi.sp2.bb"
]=
O_pi_sp2_bb
;
54
orbital_type_2_enum_
[
"O.p.sp2.bb"
] =
O_p_sp2_bb
;
55
56
57
}
58
59
orbital_type_enum
OrbitalTypeMapper::get_orbital_enum
(
std::string
& orbital_type_name)
60
{
61
return
orbital_type_2_enum_
.find(orbital_type_name)->second;
62
63
}
64
65
66
67
68
}
69
}
70
}
71
Generated on Sat Jun 1 2013 11:31:36 for Rosetta 3.5 by
1.8.4