Rosetta 3.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
MiniPose.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/pose/MiniPose.hh
11 /// @brief MiniPose class
12 /// @author Parin Sripakdeevong (sripakpa@stanford.edu), Rhiju Das (rhiju@stanford.edu)
13 
14 
15 #ifndef INCLUDED_core_pose_MiniPose_HH
16 #define INCLUDED_core_pose_MiniPose_HH
17 
18 
19 // type headers
22 #include <core/types.hh>
24 #include <numeric/xyzVector.fwd.hh>
25 #include <numeric/xyzVector.hh>
26 #include <core/id/AtomID.fwd.hh>
27 #include <core/pose/Pose.fwd.hh>
28 #include <utility/vector1.hh>
29 
30 namespace core {
31 namespace pose {
32 
33  /**
34  A very simple bag to hold xyz and fold_tree and sequence only. Kind of like a silent struct, but
35  not quite (silent_structs don't necessarily have xyz). Kind of like a Conformation but without the
36  overtree of an atom_tree.
37  **/
38 
39  // lightweight version of the pose with stuff I need.
40  // Should save memory compared to keeping the full pose (which includes atom_tree, energies etc.)
41  // This is a bit like the SilentStruct -- although that class
42  // has gotten a bit complicated -- easier to start from scratch.
44 
45  public:
46 
47  MiniPose( core::pose::Pose const & pose );
48 
51  std::string const & sequence );
52 
53  virtual ~MiniPose(); // auto-removing definition from header{};
54 
55  core::kinematics::FoldTree const & fold_tree() const;
56 
58 
60 
62 
63  Size size() const;
64 
65  Size total_residue() const;
66 
67  std::string const & sequence() const;
68 
69  PointPosition const & xyz( core::id::AtomID atom_id ) const;
70 
71  std::string const & atom_name( core::id::AtomID atom_id ) const;
72 
74 
75  private: //data
76 
82 
83  };
84 
85 
86 } // namespace pose
87 } // namespace core
88 
89 
90 #endif // INCLUDED_core_pose_MiniPose_HH