![]() |
Rosetta
2021.16
|
A DataCache storing Pose/Conformation observers derived from core::pose::datacache::CacheableObserver. More...
#include <ObserverCache.hh>

Public Types | |
| typedef core::Size | Size |
Public Member Functions | |
| ObserverCache (Size n_slots, Pose &pose) | |
| constructor More... | |
| ~ObserverCache () override | |
| default destructor More... | |
| ObserverCache & | operator= (ObserverCache const &rval) |
| copy assignment More... | |
| void | clear () |
| clear all the observers More... | |
| void | clear (Size slot) |
| clear the observer in a selected slot More... | |
| void | set (Size slot, CacheableObserverOP observer) |
| store a copy of the observer in the given slot and attach it to the Pose More... | |
| void | set (Size slot, CacheableObserverOP observer, bool auto_attach) |
| store a copy of the observer in the given slot More... | |
| bool | is_attached (Size slot) const |
| is the observer in the slot attached to the Pose? More... | |
| void | attach () |
| attach all stored observers to the Pose More... | |
| void | detach () |
| detach all observers from the Pose More... | |
| void | attach (Size slot) |
| attach an observer in a particular slot to the Pose More... | |
| void | detach (Size slot) |
| detach an observer in a particular slot to the Pose More... | |
Protected Types | |
| typedef Super::DataOPs | ObserverOPs |
Private Types | |
| typedef basic::datacache::DataCache < CacheableObserver > | Super |
Private Member Functions | |
| ObserverCache (ObserverCache const &rval) | |
| copy constructor More... | |
Private Attributes | |
| utility::vector1< bool > | attached_ |
| Which of the cacheable observers are attached to the pose, and which are just hanging out. More... | |
| Pose * | pose_ |
| The Pose being watched by the observers in this cache. More... | |
A DataCache storing Pose/Conformation observers derived from core::pose::datacache::CacheableObserver.
|
protected |
|
private |
constructor
| [in] | n_types | The number of slots for this ObserverCache. |
| [in] | pose | The Pose that will be watched by the Observers in this cache. |
|
override |
default destructor
References detach().
|
private |
copy constructor
| void core::pose::datacache::ObserverCache::attach | ( | ) |
attach all stored observers to the Pose
Referenced by operator=(), and set().
| void core::pose::datacache::ObserverCache::attach | ( | Size | slot | ) |
attach an observer in a particular slot to the Pose
| [in] | slot | Attach the observer in this slot. |
References attached_, core::chemical::has(), and pose_.
| void core::pose::datacache::ObserverCache::clear | ( | ) |
clear all the observers
References detach().
Referenced by protocols::denovo_design::components::StructureDataFactory::detach_observer().
| void core::pose::datacache::ObserverCache::clear | ( | Size | slot | ) |
clear the observer in a selected slot
References detach().
| void core::pose::datacache::ObserverCache::detach | ( | ) |
detach all observers from the Pose
Referenced by clear(), operator=(), set(), and ~ObserverCache().
| void core::pose::datacache::ObserverCache::detach | ( | Size | slot | ) |
detach an observer in a particular slot to the Pose
| [in] | slot | Detach the observer in this slot. |
References attached_, and core::chemical::has().
is the observer in the slot attached to the Pose?
References core::chemical::has().
Referenced by protocols::denovo_design::components::StructureDataFactory::observer_attached(), and operator=().
| ObserverCache & core::pose::datacache::ObserverCache::operator= | ( | ObserverCache const & | rval | ) |
copy assignment
References attach(), detach(), and is_attached().
| void core::pose::datacache::ObserverCache::set | ( | Size | slot, |
| CacheableObserverOP | observer | ||
| ) |
store a copy of the observer in the given slot and attach it to the Pose
| [in] | The | slot to use. |
| [in] | observer | The Observer to clone() and store. |
Referenced by protocols::forge::remodel::RemodelMover::apply(), protocols::denovo_design::components::StructureDataFactory::attach_observer(), protocols::forge::components::VarLengthBuild::centroid_build(), protocols::toolbox::match_enzdes_util::get_enzdes_observer(), protocols::moves::get_pymol_observer(), protocols::network::get_ui_observer(), protocols::enzdes::EnzdesJobInputter::pose_from_job(), and protocols::seeded_abinitio::GrowPeptides::setup_cached_observers().
| void core::pose::datacache::ObserverCache::set | ( | Size | slot, |
| CacheableObserverOP | observer, | ||
| bool | auto_attach | ||
| ) |
|
private |
|
private |
1.8.7