Rosetta  2021.16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Private Attributes | List of all members
protocols::jd3::dag_node_managers::NodeManagerStorageMatrix Class Reference

#include <NodeManagerStorageMatrix.hh>

Public Member Functions

 NodeManagerStorageMatrix (utility::vector1< core::Size > n_results_to_keep_for_partition, bool return_results_depth_first=false)
 
virtual ~NodeManagerStorageMatrix ()
 
ResultElements insert (core::Size partition, ResultElements const &new_guy)
 
ResultElements const & get_nth_element (core::Size n)
 
ResultElements const & get_specific_element (core::Size partition, core::Size index_within_partition)
 
utility::vector1< ResultElementslinear_vector_of_results ()
 Freezes the dynamic arrays and appends them onto each other (using the depth-first pattern) More...
 
void set_return_results_depth_first (bool setting)
 Consider example at the top of this file to learn more about this option. More...
 
void return_results_depth_first ()
 
void return_results_breadth_first ()
 
void set_max_num_results_with_same_token_per_partition (core::Size setting)
 Perhaps you have a diversity requirement and do not want too many results with the same token (token can represent anything you want - as long as it can be stored as a uint64_t), this setting is for you. More...
 
core::Size num_partitions () const
 
void clear ()
 

Private Attributes

utility::vector1< core::Sizen_results_to_keep_for_partition_
 
utility::vector1< core::Sizen_results_accessed_for_partition_
 
utility::vector1
< utility::vector1
< ResultElements > > 
results_for_partition_
 
bool return_results_depth_first_
 
core::Size max_num_results_with_same_token_per_partition_
 

Constructor & Destructor Documentation

protocols::jd3::dag_node_managers::NodeManagerStorageMatrix::NodeManagerStorageMatrix ( utility::vector1< core::Size n_results_to_keep_for_partition,
bool  return_results_depth_first = false 
)
protocols::jd3::dag_node_managers::NodeManagerStorageMatrix::~NodeManagerStorageMatrix ( )
virtual

Member Function Documentation

void protocols::jd3::dag_node_managers::NodeManagerStorageMatrix::clear ( )
inline
ResultElements const & protocols::jd3::dag_node_managers::NodeManagerStorageMatrix::get_nth_element ( core::Size  n)
ResultElements const & protocols::jd3::dag_node_managers::NodeManagerStorageMatrix::get_specific_element ( core::Size  partition,
core::Size  index_within_partition 
)
ResultElements protocols::jd3::dag_node_managers::NodeManagerStorageMatrix::insert ( core::Size  partition,
ResultElements const &  new_guy 
)
utility::vector1< ResultElements > protocols::jd3::dag_node_managers::NodeManagerStorageMatrix::linear_vector_of_results ( )

Freezes the dynamic arrays and appends them onto each other (using the depth-first pattern)

References n_results_accessed_for_partition_, n_results_to_keep_for_partition_, and results_for_partition_.

Referenced by protocols::jd3::dag_node_managers::NodeManager::results_to_keep().

core::Size protocols::jd3::dag_node_managers::NodeManagerStorageMatrix::num_partitions ( ) const
inline
void protocols::jd3::dag_node_managers::NodeManagerStorageMatrix::return_results_breadth_first ( )
inline
void protocols::jd3::dag_node_managers::NodeManagerStorageMatrix::return_results_depth_first ( )
inline
void protocols::jd3::dag_node_managers::NodeManagerStorageMatrix::set_max_num_results_with_same_token_per_partition ( core::Size  setting)
inline

Perhaps you have a diversity requirement and do not want too many results with the same token (token can represent anything you want - as long as it can be stored as a uint64_t), this setting is for you.

References max_num_results_with_same_token_per_partition_.

Referenced by protocols::jd3::dag_node_managers::NodeManager::set_max_num_results_with_same_token_per_partition().

void protocols::jd3::dag_node_managers::NodeManagerStorageMatrix::set_return_results_depth_first ( bool  setting)
inline

Consider example at the top of this file to learn more about this option.

References return_results_depth_first_.

Referenced by protocols::jd3::dag_node_managers::NodeManager::set_return_results_depth_first().

Member Data Documentation

core::Size protocols::jd3::dag_node_managers::NodeManagerStorageMatrix::max_num_results_with_same_token_per_partition_
private
utility::vector1< core::Size > protocols::jd3::dag_node_managers::NodeManagerStorageMatrix::n_results_accessed_for_partition_
private
utility::vector1< core::Size > protocols::jd3::dag_node_managers::NodeManagerStorageMatrix::n_results_to_keep_for_partition_
private
utility::vector1< utility::vector1< ResultElements > > protocols::jd3::dag_node_managers::NodeManagerStorageMatrix::results_for_partition_
private
bool protocols::jd3::dag_node_managers::NodeManagerStorageMatrix::return_results_depth_first_
private

The documentation for this class was generated from the following files: