|
Rosetta 3.5
|
A DataCache storing Pose/Conformation observers derived from core::pose::datacache::CacheableObserver. More...
#include <ObserverCache.hh>


Public Types | |
| typedef Super::Size | Size |
Public Member Functions | |
| ObserverCache (Size const n_slots, Pose &pose) | |
| constructor More... | |
| virtual | ~ObserverCache () |
| default destructor More... | |
| ObserverCache & | operator= (ObserverCache const &rval) |
| copy assignment More... | |
| void | clear () |
| clear all the observers More... | |
| void | clear (Size const slot) |
| clear the observer in a selected slot More... | |
| void | set (Size const slot, CacheableObserverOP observer) |
| store a copy of the observer in the given slot and attach it to the Pose More... | |
| void | set (Size const slot, CacheableObserverOP observer, bool const auto_attach) |
| store a copy of the observer in the given slot More... | |
| bool | is_attached (Size const 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 const slot) |
| attach an observer in a particular slot to the Pose More... | |
| void | detach (Size const 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 () | |
| default constructor More... | |
| ObserverCache (ObserverCache const &rval) | |
| copy constructor More... | |
Private Attributes | |
| 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.
Definition at line 41 of file ObserverCache.hh.
|
protected |
Definition at line 59 of file ObserverCache.hh.
| typedef Super::Size core::pose::datacache::ObserverCache::Size |
Definition at line 53 of file ObserverCache.hh.
|
private |
Definition at line 47 of file ObserverCache.hh.
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. |
Definition at line 35 of file ObserverCache.cc.
|
virtual |
|
private |
default constructor
|
private |
copy constructor
| void core::pose::datacache::ObserverCache::attach | ( | ) |
attach all stored observers to the Pose
Definition at line 136 of file ObserverCache.cc.
References core::io::serialization::size().
Referenced by operator=(), and set().
| void core::pose::datacache::ObserverCache::attach | ( | Size const | slot) |
attach an observer in a particular slot to the Pose
| [in] | slot | Attach the observer in this slot. |
Definition at line 153 of file ObserverCache.cc.
References pose_.
| void core::pose::datacache::ObserverCache::clear | ( | ) |
| void core::pose::datacache::ObserverCache::clear | ( | Size const | slot) |
clear the observer in a selected slot
Definition at line 78 of file ObserverCache.cc.
References detach().
| void core::pose::datacache::ObserverCache::detach | ( | ) |
detach all observers from the Pose
Definition at line 144 of file ObserverCache.cc.
References core::io::serialization::size().
Referenced by clear(), operator=(), set(), and ~ObserverCache().
| void core::pose::datacache::ObserverCache::detach | ( | Size const | slot) |
detach an observer in a particular slot to the Pose
| [in] | slot | Detach the observer in this slot. |
Definition at line 162 of file ObserverCache.cc.
is the observer in the slot attached to the Pose?
Definition at line 126 of file ObserverCache.cc.
Referenced by operator=().
| ObserverCache & core::pose::datacache::ObserverCache::operator= | ( | ObserverCache const & | rval) |
copy assignment
Definition at line 51 of file ObserverCache.cc.
References attach(), detach(), and is_attached().
| void core::pose::datacache::ObserverCache::set | ( | Size const | 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. |
Definition at line 90 of file ObserverCache.cc.
Referenced by protocols::forge::remodel::RemodelMover::apply(), protocols::forge::components::VarLengthBuild::centroid_build(), protocols::toolbox::match_enzdes_util::get_enzdes_observer(), protocols::enzdes::EnzdesJobInputter::pose_from_job(), and protocols::seeded_abinitio::GrowPeptides::setup_cached_observers().
| void core::pose::datacache::ObserverCache::set | ( | Size const | slot, |
| CacheableObserverOP | observer, | ||
| bool const | auto_attach | ||
| ) |
|
private |
The Pose being watched by the observers in this cache.
Definition at line 164 of file ObserverCache.hh.
Referenced by attach().
1.8.4