Rosetta 3.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
EntityCorrespondence.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/pack_daemon/EntityCorrespondence.hh
11 /// @brief declaration for class EntityCorrespondence
12 /// @author Andrew Leaver-Fay (aleaverfay@gmail.com)
13 
14 #ifndef INCLUDED_protocols_pack_daemon_EntityCorrespondence_hh
15 #define INCLUDED_protocols_pack_daemon_EntityCorrespondence_hh
16 
17 // Unit headers
19 
20 // Project headers
21 #include <core/types.hh>
22 #include <core/pose/Pose.fwd.hh>
24 
25 // Utility headers
26 #include <utility/vector1.hh>
27 // AUTO-REMOVED #include <utility/io/izstream.fwd.hh>
28 #include <utility/pointer/ReferenceCount.hh>
29 
30 // C++ headers
31 #include <list>
32 #include <iosfwd>
33 
34 namespace protocols {
35 namespace pack_daemon {
36 
38 public:
39  typedef core::Size Size;
40  typedef std::list< Size > ResIDList;
41  typedef ResIDList::const_iterator ResIDListConstIter;
43 public:
45  virtual ~EntityCorrespondence();
48 
49  void set_pose( core::pose::PoseCOP pose );
51  void initialize_from_correspondence_file( std::istream & );
52  void add_resid_to_entity_list( Size EntityID, Size ResID );
53 
54  Size num_entities() const;
55  Size num_residues() const;
56  Size entity_for_residue( Size resid ) const;
57  Size n_residues_for_entity( Size entity_id ) const;
60 
61 
62 private:
63  void bounds_check_entity( std::string const & funcname, Size entity_id ) const;
64  void bounds_check_residue( std::string const & funcname, Size resid ) const;
65 
66 private:
69  utility::vector1< ResIDList > entity_id_2_resids_; // one entity may correspond to several residues
70  utility::vector1< Size > resid_2_entity_id_; // each residue corresponds to at most one entity.
71 
73 
74 };
75 
76 
77 }
78 }
79 
80 #endif