![]() |
Rosetta
2021.16
|
read a config file for quota selector More...
#include <QuotaConfig.hh>

Public Member Functions | |
| QuotaConfig (std::string config_file_name) | |
| Constructor reads a config file. More... | |
| QuotaConfig () | |
| Constructor used by derived classes. More... | |
| core::Size | count_pools () |
| how many pools have been defined in a config file More... | |
| core::Real | get_fraction (core::Size pool_id) |
| returns a fraction for a given pool More... | |
| void | set_fraction (core::Size pool_id, core::Real fraction) |
| returns a fraction for a given pool More... | |
| core::Real | get_fraction (std::string pool_name) |
| returns a fraction for a given pool More... | |
| bool | is_valid_quota_pool_name (std::string &pool_name) |
| returns true if a config file defined a given pool name More... | |
| std::string & | get_pool_name (core::Size pool_id) |
| return a string id (name) assigned to a given pool More... | |
Protected Attributes | |
| utility::vector1< core::Real > | pool_weights_ |
| utility::vector1< std::string > | pool_names_ |
read a config file for quota selector
| protocols::frag_picker::quota::QuotaConfig::QuotaConfig | ( | std::string | config_file_name | ) |
Constructor reads a config file.
References protocols::frag_picker::quota::trQuotaConfig().
|
inline |
Constructor used by derived classes.
|
inline |
how many pools have been defined in a config file
References pool_names_.
|
inline |
returns a fraction for a given pool
References pool_weights_.
Referenced by protocols::frag_picker::FragmentPicker::set_up_quota_nnmake_style().
|
inline |
returns a fraction for a given pool
if the given string is not a valid name of a quota pool, the method returns 0
References pool_names_, and pool_weights_.
|
inline |
return a string id (name) assigned to a given pool
References pool_names_.
Referenced by protocols::frag_picker::FragmentPicker::set_up_ss_abego_quota().
|
inline |
returns true if a config file defined a given pool name
References pool_names_.
Referenced by protocols::frag_picker::FragmentPicker::set_up_quota_nnmake_style().
|
inline |
returns a fraction for a given pool
References pool_weights_.
|
protected |
|
protected |
Referenced by get_fraction(), and set_fraction().
1.8.7