Rosetta 3.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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 
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 
24 {
26 }
27 
29 { }
30 
31 
32 
35 {
36  if(!instance_)
37  {
38  OrbitalTypeMapper * instance_local = new OrbitalTypeMapper;
39  instance_ = instance_local;
40  }
41  return instance_;
42 }
43 
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 
60 {
61  return orbital_type_2_enum_.find(orbital_type_name)->second;
62 
63 }
64 
65 
66 
67 
68 }
69 }
70 }
71