Rosetta 3.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
AtomNode.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 core/kinematics/min.hh
11 /// @brief Kinematics
12 /// @author Phil Bradley
13 
14 
15 #ifndef INCLUDED_core_optimization_AtomNode_hh
16 #define INCLUDED_core_optimization_AtomNode_hh
17 
18 
19 // Package headers
20 
21 // Project headers
22 #include <core/id/AtomID_Map.hh>
23 #include <core/id/DOF_ID_Map.hh>
24 
25 // Rosetta headers
26 // #include <util_basic.hh>
27 // #include <jump_classes.hh>
28 // #include <core/kinematics/Stub.hh>
29 // #include <id.hh>
30 
31 // // Numeric headers
32 // #include <numeric/all.fwd.hh>
33 // #include <numeric/conversions.hh>
34 // #include <numeric/xyzMatrix.hh>
35 // #include <numeric/xyzVector.hh>
36 
37 // // ObjexxFCL headers
38 // #include <ObjexxFCL/FArray1D.hh>
39 
40 // // Utility headers
41 // #include <utility/io/all.fwd.hh>
42 
43 // // C++ headers
44 // #include <algorithm>
45 // #include <cmath>
46 // #include <cstdlib>
47 // #include <iostream>
48 // //#include <iosfwd>
49 // #include <cassert>
50 // #include <vector>
51 // #include <string>
52 // #include <map>
53 // #include <list>
54 
55 
56 namespace core {
57 namespace optimization {
58 
59 
60 class AtomNode
61 {
62 public:
63  typedef id::AtomID AtomID;
64 
65 
66 public:
67  AtomNode( AtomID const & id_in ):id( id_in ) {}
68 
69  inline
70  int
71  rsd() const { return id.rsd(); }
72 
73  inline
74  int
75  atomno() const { return id.atomno(); }
76 
77  inline
78  std::vector< AtomNode* >::iterator
79  nbr_list_begin() { return nbrs.begin(); }
80 
81  inline
82  std::vector< AtomNode* >::iterator
83  nbr_list_end() { return nbrs.end(); }
84 
85  inline
86  void
87  add_nbr( AtomNode* nbr ) { nbrs.push_back( nbr ); }
88 
89 private:
91  std::vector< AtomNode* > nbrs;
92 
93 }; // AtomNode
94 
95 
96 } // namespace kinematics
97 } // namespace core
98 
99 
100 #endif // INCLUDED_core_kinematics_min_HH