![]() |
Rosetta
2021.16
|
Librarian that picks fragments from the Vall. More...
#include <VallLibrarian.hh>

Public Member Functions | |
| VallLibrarian () | |
| default constructor More... | |
| ~VallLibrarian () override | |
| default destructor More... | |
| bool | preallocate () const |
| preallocate scores container prior to catalog() to attempt speedup?, default true More... | |
| void | preallocate (bool const flag) |
| set flag to preallocate scores container prior to catalog() to attempt speedup More... | |
| void | add_fragment_gen (VallFragmentGenCOP const &gen) |
| add a fragment generator (aka extent generator) More... | |
| void | clear_fragment_gen () |
| clear list of generators More... | |
| Size | n_fragment_gen () const |
| the number of currently defined fragment generators More... | |
| void | add_fragment_eval (VallFragmentEvalCOP eval) |
| add a fragment evaluator (aka extent evaluator) More... | |
| void | clear_fragment_eval () |
| clear list of evaluators More... | |
| Size | n_fragment_eval () const |
| the number of currently defined fragment evaluators More... | |
| bool | catalog (VallLibrary const &library) |
| create sorted list corresponding to fragments in Library More... | |
| template<typename LessThan > | |
| bool | catalog (VallLibrary const &library, LessThan const <) |
| create sorted list corresponding to fragments in Library More... | |
| Size | n_scores () const |
| number of scores currently filed More... | |
| FragDataOPs | top_fragments (Size const n, BBTorsionSRFD const &srfd_type=BBTorsionSRFD()) const |
| get top 'N' fragments from prior catalog() More... | |
| FragDataOPs | fragments (Size from, Size to, BBTorsionSRFD const &srfd_type=BBTorsionSRFD()) const |
| get fragments from prior catalog() [from, to] More... | |
| Scores const & | scores () const |
| return scores container More... | |
| Scores & | scores () |
| return scores container More... | |
Public Member Functions inherited from core::fragment::picking_old::concepts::Librarian< scores::VallFragmentScore, eval::VallFragmentEval, gen::VallFragmentGen, VallLibrary > | |
| Librarian () | |
| default constructor More... | |
| virtual | ~Librarian () |
| default destructor More... | |
| bool | catalog (VallLibraryconst &library) |
| create sorted list corresponding to fragments in Library More... | |
| bool | catalog (VallLibraryconst &library, LessThan const <) |
| create sorted list corresponding to fragments in Library More... | |
| void | add_extent_gen (ExtentGenCOP const &gen) |
| add an extent generator More... | |
| void | clear_extent_gen () |
| clear list of generators More... | |
| void | add_extent_eval (ExtentEvalCOP val) |
| add extent evaluator More... | |
| void | clear_extent_eval () |
| clear list of evaluators More... | |
Protected Types | |
| typedef BookConstIterator | VallSectionConstIterator |
| typedef BookIterator | VallSectionIterator |
| typedef PageConstIterator | VallResidueConstIterator |
| typedef PageIterator | VallResidueIterator |
| typedef ExtentGenOPs | VallFragmentGenOPs |
| typedef ExtentEvalOPs | VallFragmentEvalOPs |
Protected Types inherited from core::fragment::picking_old::concepts::Librarian< scores::VallFragmentScore, eval::VallFragmentEval, gen::VallFragmentGen, VallLibrary > | |
| typedef utility::vector1 < ExtentGenOP > | ExtentGenOPs |
| typedef utility::vector1 < ExtentEvalOP > | ExtentEvalOPs |
Private Types | |
| typedef core::fragment::picking_old::concepts::Librarian < scores::VallFragmentScore, eval::VallFragmentEval, gen::VallFragmentGen, VallLibrary > | Super |
Private Member Functions | |
| VallLibrarian (VallLibrarian const &rval) | |
| disallow copy constructor More... | |
| VallLibrarian & | operator= (VallLibrarian const &rval) |
| disallow copy assignment More... | |
| void | pre_catalog_ops (VallLibrary const &library) |
| this function runs before main routine in catalog() starts More... | |
| void | post_catalog_ops (VallLibrary const &library) |
| this function runs after main routine catalog() finishes More... | |
Private Attributes | |
| bool | preallocate_ |
| flag controls preallocation of score container, default true More... | |
Additional Inherited Members | |
Protected Member Functions inherited from core::fragment::picking_old::concepts::Librarian< scores::VallFragmentScore, eval::VallFragmentEval, gen::VallFragmentGen, VallLibrary > | |
| bool | evaluate_extent (Extent const &extent, scores::VallFragmentScore &mark) |
| evaluate a fragment starting from Page at iterator More... | |
| Bookmarks const & | bookmarks () const |
| get the current bookmark heap More... | |
| Bookmarks & | bookmarks () |
| get the current bookmark heap More... | |
| ExtentGenOPs const & | extent_gen () const |
| the list of extent generators More... | |
| ExtentGenOPs & | extent_gen () |
| the list of extent generators More... | |
| ExtentEvalOPs const & | extent_eval () const |
| the list of extent evaluators More... | |
| ExtentEvalOPs & | extent_eval () |
| the list of extent evaluators More... | |
Librarian that picks fragments from the Vall.
| typedef Super::BookConstIterator core::fragment::picking_old::vall::VallLibrarian::BookConstIterator |
| typedef Super::BookmarkConstIterator core::fragment::picking_old::vall::VallLibrarian::BookmarkConstIterator |
| typedef Super::PageConstIterator core::fragment::picking_old::vall::VallLibrarian::PageConstIterator |
|
protected |
| typedef scores::VallFragmentScore core::fragment::picking_old::vall::VallLibrarian::VallFragmentScore |
|
protected |
|
protected |
|
protected |
|
protected |
| core::fragment::picking_old::vall::VallLibrarian::VallLibrarian | ( | ) |
default constructor
|
overridedefault |
default destructor
|
private |
disallow copy constructor
|
inline |
add a fragment evaluator (aka extent evaluator)
Referenced by core::fragment::picking_old::vall::pick_fragments(), core::fragment::picking_old::vall::pick_fragments_by_ss(), and core::fragment::picking_old::vall::pick_fragments_by_ss_plus_aa().
|
inline |
add a fragment generator (aka extent generator)
Referenced by core::fragment::picking_old::vall::pick_fragments(), core::fragment::picking_old::vall::pick_fragments_by_ss(), and core::fragment::picking_old::vall::pick_fragments_by_ss_plus_aa().
|
inline |
create sorted list corresponding to fragments in Library
uses Score's '<' for evaluation
Referenced by core::fragment::picking_old::vall::pick_fragments(), core::fragment::picking_old::vall::pick_fragments_by_ss(), and core::fragment::picking_old::vall::pick_fragments_by_ss_plus_aa().
|
inline |
create sorted list corresponding to fragments in Library
| LessThan | predicate Pr( left, right ) evaluating left < right |
true if creation successful, false otherwise (e.g. no VallFragmentEval or VallFragmentGen found) References core::fragment::picking_old::concepts::Librarian< scores::VallFragmentScore, eval::VallFragmentEval, gen::VallFragmentGen, VallLibrary >::catalog(), post_catalog_ops(), pre_catalog_ops(), scores(), core::fragment::picking_old::concepts::Library< Books >::size(), and core::fragment::picking_old::vall::TR().
|
inline |
|
inline |
| VallLibrarian::FragDataOPs core::fragment::picking_old::vall::VallLibrarian::fragments | ( | Size | from, |
| Size | to, | ||
| BBTorsionSRFD const & | srfd_type = BBTorsionSRFD() |
||
| ) | const |
get fragments from prior catalog() [from, to]
| from | index of the first fragment in the list, indexing starts from '1' |
| to | index of the last fragment in the list (inclusive) |
| srfd_type | The BBTorsionSRFD type to use. |
| from | index of the first fragment in the list, indexing starts from '1' |
| to | index of the last fragment in the list (inclusive) |
References core::sequence::end, core::fragment::picking_old::vall::extent_to_fragdata(), scores(), and core::fragment::picking_old::vall::TR().
Referenced by top_fragments().
|
inline |
the number of currently defined fragment evaluators
|
inline |
the number of currently defined fragment generators
|
inline |
number of scores currently filed
References scores().
|
private |
disallow copy assignment
|
private |
|
private |
this function runs before main routine in catalog() starts
References core::fragment::picking_old::concepts::Librarian< scores::VallFragmentScore, eval::VallFragmentEval, gen::VallFragmentGen, VallLibrary >::extent_eval(), preallocate_, scores(), and core::fragment::picking_old::concepts::Library< Books >::size().
Referenced by catalog().
|
inline |
preallocate scores container prior to catalog() to attempt speedup?, default true
References preallocate_.
|
inline |
set flag to preallocate scores container prior to catalog() to attempt speedup
References preallocate_.
|
inline |
return scores container
Referenced by catalog(), fragments(), n_scores(), and pre_catalog_ops().
|
inline |
| VallLibrarian::FragDataOPs core::fragment::picking_old::vall::VallLibrarian::top_fragments | ( | Size const | n, |
| BBTorsionSRFD const & | srfd_type = BBTorsionSRFD() |
||
| ) | const |
get top 'N' fragments from prior catalog()
| n | The number of fragments to get. |
| srfd_type | The BBTorsionSRFD type to use. |
References fragments().
Referenced by core::fragment::picking_old::vall::pick_fragments(), core::fragment::picking_old::vall::pick_fragments_by_ss(), and core::fragment::picking_old::vall::pick_fragments_by_ss_plus_aa().
|
private |
flag controls preallocation of score container, default true
Referenced by pre_catalog_ops(), and preallocate().
1.8.7