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

#include <MultistateFitnessFunction.hh>

Inheritance diagram for protocols::pack_daemon::TopEntitySet:
Inheritance graph
[legend]

Public Types

typedef
protocols::genetic_algorithm::Entity 
Entity
 
typedef
protocols::genetic_algorithm::EntityOP 
EntityOP
 
typedef utility::vector1
< core::Real
StateEnergies
 
typedef std::pair
< StateEnergies, StateEnergies
StateEnergiesAndNPDs
 
typedef std::pair< EntityOP,
StateEnergiesAndNPDs
EntityAndScore
 
typedef utility::vector1
< EntityAndScore
EntityHistory
 

Public Member Functions

 TopEntitySet ()
 
core::Size size () const
 
EntityAndScore const & operator[] (core::Size index) const
 
EntityAndScoreoperator[] (core::Size index)
 
void desired_entity_history_size (core::Size setting)
 
core::Size desired_entity_history_size () const
 
void clear ()
 
std::list
< genetic_algorithm::EntityOP
update_entity_history (Entity const &ent, StateEnergiesAndNPDs const &seanpds, bool &added_new_entity)
 Update the internal history after receiving a new entity; returns the list of entities that are to be discarded. The boolean added_new_entity is set to true if the given entity was added to the the list of top entities. More...
 
core::Size index_of_entity (Entity const &ent) const
 
EntityAndScore pop ()
 remove the worst entity from the set and return it More...
 

Private Attributes

core::Size desired_entity_history_size_
 
core::Size n_tied_for_worst_
 
EntityHistory top_entities_
 

Member Typedef Documentation

Constructor & Destructor Documentation

protocols::pack_daemon::TopEntitySet::TopEntitySet ( )

Member Function Documentation

void protocols::pack_daemon::TopEntitySet::clear ( )
void protocols::pack_daemon::TopEntitySet::desired_entity_history_size ( core::Size  setting)
core::Size protocols::pack_daemon::TopEntitySet::desired_entity_history_size ( ) const
core::Size protocols::pack_daemon::TopEntitySet::index_of_entity ( Entity const &  ent) const
TopEntitySet::EntityAndScore const & protocols::pack_daemon::TopEntitySet::operator[] ( core::Size  index) const

References top_entities_.

TopEntitySet::EntityAndScore & protocols::pack_daemon::TopEntitySet::operator[] ( core::Size  index)

References top_entities_.

TopEntitySet::EntityAndScore protocols::pack_daemon::TopEntitySet::pop ( )

remove the worst entity from the set and return it

References top_entities_.

core::Size protocols::pack_daemon::TopEntitySet::size ( ) const
std::list< TopEntitySet::EntityOP > protocols::pack_daemon::TopEntitySet::update_entity_history ( Entity const &  ent,
StateEnergiesAndNPDs const &  seanpds,
bool added_new_entity 
)

Update the internal history after receiving a new entity; returns the list of entities that are to be discarded. The boolean added_new_entity is set to true if the given entity was added to the the list of top entities.

References desired_entity_history_size_, protocols::genetic_algorithm::Entity::fitness(), n_tied_for_worst_, and top_entities_.

Referenced by protocols::pack_daemon::MultistateFitnessFunction::update_entity_history().

Member Data Documentation

core::Size protocols::pack_daemon::TopEntitySet::desired_entity_history_size_
private
core::Size protocols::pack_daemon::TopEntitySet::n_tied_for_worst_
private
EntityHistory protocols::pack_daemon::TopEntitySet::top_entities_
private

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