Rosetta
|
observer that tracks the fate of a one or more segments (i.e. pose residues) of interest. note: the convention should be that a segment.second marks the end of the segment but is not part of it, i.e. the last position of a segment is segment.second - 1 reason: some peculiar stuff regarding the meaning of length events More...
#include <cacheable_observers.hh>
Public Types | |
typedef core::pose::datacache::CacheableObserver | Parent |
typedef utility::signals::Link | Link |
typedef core::Size | Size |
typedef std::pair< Size, Size > | Segment |
Public Member Functions | |
SpecialSegmentsObserver () | |
SpecialSegmentsObserver (SpecialSegmentsObserver const &rval) | |
~SpecialSegmentsObserver () override | |
SpecialSegmentsObserver & | operator= (SpecialSegmentsObserver const &rval) |
copy assignment More... | |
pose::datacache::CacheableObserverOP | clone () override |
clone this object More... | |
pose::datacache::CacheableObserverOP | create () override |
create a new instance of this object More... | |
bool | is_attached () const override |
is this observer attached to a Pose/Conformation? More... | |
utility::vector1< Segment > const & | segments () const |
void | clear () |
void | add_segment (Size begin, Size end) |
![]() | |
CacheableObserver () | |
default constructor More... | |
CacheableObserver (CacheableObserver const &rval) | |
copy constructor More... | |
~CacheableObserver () override | |
default destructor More... | |
CacheableObserver & | operator= (CacheableObserver const &rval) |
copy assignment More... | |
void | attach_to (Pose &pose) |
attach to Pose/Conformation Derived classes do not overload this method – see attach_impl() instead. More... | |
void | detach_from () |
detach from Pose/Conformation More... | |
Static Public Member Functions | |
static void | set_farray_from_sso (ObjexxFCL::FArray1D_bool &array, core::pose::Pose const &pose, bool const value) |
utility function that sets all elements found in the SpecialSegmentsObserver in the pose to value More... | |
Protected Member Functions | |
void | on_length_change (conformation::signals::LengthEvent const &event) |
void | attach_impl (pose::Pose &pose) override |
attach to Pose/Conformation More... | |
void | detach_impl () override |
detach from Pose/Conformation More... | |
Private Attributes | |
utility::vector1< Segment > | segments_ |
Link | length_event_link_ |
observer that tracks the fate of a one or more segments (i.e. pose residues) of interest. note: the convention should be that a segment.second marks the end of the segment but is not part of it, i.e. the last position of a segment is segment.second - 1 reason: some peculiar stuff regarding the meaning of length events
typedef utility::signals::Link core::pose::datacache::SpecialSegmentsObserver::Link |
typedef core::pose::datacache::CacheableObserver core::pose::datacache::SpecialSegmentsObserver::Parent |
typedef std::pair< Size, Size > core::pose::datacache::SpecialSegmentsObserver::Segment |
core::pose::datacache::SpecialSegmentsObserver::SpecialSegmentsObserver | ( | ) |
core::pose::datacache::SpecialSegmentsObserver::SpecialSegmentsObserver | ( | SpecialSegmentsObserver const & | rval | ) |
|
override |
References core::sequence::end, and segments_.
|
overrideprotectedvirtual |
attach to Pose/Conformation
Implements core::pose::datacache::CacheableObserver.
References core::conformation::Conformation::attach_length_obs(), core::pose::Pose::conformation(), length_event_link_, and on_length_change().
void core::pose::datacache::SpecialSegmentsObserver::clear | ( | ) |
References segments_.
|
overridevirtual |
clone this object
Implements core::pose::datacache::CacheableObserver.
|
overridevirtual |
create a new instance of this object
Implements core::pose::datacache::CacheableObserver.
|
overrideprotectedvirtual |
detach from Pose/Conformation
Implements core::pose::datacache::CacheableObserver.
References length_event_link_.
|
inlineoverridevirtual |
is this observer attached to a Pose/Conformation?
Implements core::pose::datacache::CacheableObserver.
References length_event_link_.
|
protected |
figure out where the loops are after the length has changed note: in case the segment got deleted, it will also be removed from the observer
References core::conformation::signals::LengthEvent::length_change, core::conformation::signals::LengthEvent::position, and segments_.
Referenced by attach_impl().
SpecialSegmentsObserver & core::pose::datacache::SpecialSegmentsObserver::operator= | ( | SpecialSegmentsObserver const & | rval | ) |
copy assignment
References core::pose::datacache::CacheableObserver::operator=(), and segments_.
|
inline |
References segments_.
Referenced by set_farray_from_sso().
|
static |
utility function that sets all elements found in the SpecialSegmentsObserver in the pose to value
References core::pose::Pose::observer_cache(), segments(), and core::pose::datacache::SPECIAL_SEGMENTS_OBSERVER.
Referenced by protocols::protein_interface_design::filters::RmsdFilter::compute().
|
private |
Referenced by attach_impl(), detach_impl(), and is_attached().
|
private |
Referenced by add_segment(), clear(), on_length_change(), operator=(), and segments().