Rosetta 3.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
VallProvider.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/frag_picker/VallProvider.hh
11 /// @brief reads a vall library and serves the data in chunks
12 /// @author Dominik Gront (dgront@chem.uw.edu.pl)
13 
14 #ifndef INCLUDED_protocols_frag_picker_VallProvider_hh
15 #define INCLUDED_protocols_frag_picker_VallProvider_hh
16 
17 // type headers
18 #include <core/types.hh>
19 #include <utility/pointer/ReferenceCount.hh>
20 
21 // unit headers
23 
24 // package headers
26 
27 // mini headers
29 // AUTO-REMOVED #include <utility/vector1.hh>
30 #include <core/pose/Pose.hh>
31 
32 // AUTO-REMOVED #include <string>
33 
34 namespace protocols {
35 namespace frag_picker {
36 
37 /// @brief a vector of vall chunks
39 public:
40 
41  /// @brief
43  cached_profile_id_ = "";
44  cached_pose_id_ = "";
46  }
47  virtual ~VallProvider();
48 
49  /// @brief Vall reader
50  /// THe defaults should ensure that the file is fully read if startline and endline ar not specified. endline = 0 means read to the end.
51  Size vallChunksFromLibrary(std::string const & filename, Size startline = 1, Size endline = 0 );
52 
54 
55  /// @brief Runs through the Vall and stores number of lines
57 
58  /// @brief says how many chunks do we have
59  inline Size size() {
60  return chunks_.size();
61  }
62 
63  /// @brief returns a certain chunk (starts from 1)
64  inline VallChunkOP at(Size index) {
65  return chunks_.at(index);
66  }
67 
68  /// @brief adds a new chunk to this provider
69  inline void push_back(VallChunkOP what) {
70  return chunks_.push_back(what);
71  }
72 
73  /// @brief says what is the length of the largest chunk known to this
74  /// provider
76  return largest_chunk_size_;
77  }
78 
79  /// @brief tries to find a chunk defined by PDB id, chain id and a residue
80  /// sequence id @detailed If this VallProvider does not contain a desired
81  /// chunk, 0 is returned.
83 
84  /// @brief cache a sequence profile for a given chunk
86 
87  ///@brief cache a pose for a given chunk
89 
90 private:
98 };
99 
100 } // frag_picker
101 } // protocols
102 
103 
104 #endif /* INCLUDED_protocols_frag_picker_VallProvider_HH */