Rosetta 3.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
qsarMap.hh
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 /// @file protocols/ligand_docking/qsar/qsarMap.hh
11 /// @author Sam DeLuca
12 
13 #ifndef INCLUDED_protocols_qsar_qsarMap_hh
14 #define INCLUDED_protocols_qsar_qsarMap_hh
15 
16 #include <map>
17 // AUTO-REMOVED #include <core/pose/Pose.hh>
18 #include <utility/pointer/ReferenceCount.hh>
19 // AUTO-REMOVED #include <core/grid/CartGrid.fwd.hh>
21 //#include <protocols/qsar/qsarTypeManager.fwd.hh>
23 
24 #include <core/types.hh>
26 #include <utility/vector1.hh>
27 #include <iostream>
28 
29 
30 namespace protocols {
31 namespace qsar {
32 
34 {
35 public:
36  ///@brief Automatically generated virtual destructor for class deriving directly from ReferenceCount
37  virtual ~qsarPoint();
39  ///@brief set the value of the qsar point
40  void set_value(core::Real value);
41 
42 
43  ///@brief return the value of the qsar point
45 
46  ///@brief return the type of the qsar point
48 
49  ///@brief return the name of the atom the qsar point is associated with
51 
52  ///@brief return a pointer to the residue the qsar point is associated with
54 
55 private:
60 };
61 
62 
64 {
65 public:
66  ///@brief Automatically generated virtual destructor for class deriving directly from ReferenceCount
67  virtual ~qsarMap();
69 
70  ///@brief get size of map
71  core::Size size();
72 
73  ///@brief initialize grid so that every point has a constant value for every atom and every qsarType. mostly for debugging
75 
76  ///@brief initialize grid using data from the mol_data object attached to a residue (if availible)
78 
79  ///@brief add a new qsar point to the map
80  void add_point(std::string point_name, qsarPointOP new_point);
81 
82  ///@brief clear the qsar map
83  void clear();
84 
85  ///@brief return a point in the map from the point name
86  qsarPointOP get_point(std::string const point_name);
87 
88  ///@brief return a point in the map from the atom_id and qsarType
89  qsarPointOP get_point(core::Size const atom_id, std::string const type);
90 
91  ///@brief return the residue associated with the qsarMap
93 
94  ///@brief return a vector of points associated with a given atom_id
96 
97  ///@brief return a vector of all points associated with a given qsarType;
99 
100 
101 
102 private:
103 
105  std::map<std::string,qsarPointOP> qsar_map_;
106  std::multimap<std::string, qsarPointOP> type_map_;
107  std::multimap<core::Size,qsarPointOP> atom_map_;
108 
110 
111 };
112 
113 }
114 }
115 
116 
117 
118 #endif