Rosetta
Public Types | Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes | List of all members
core::pose::datacache::LengthEventCollector Class Reference

a cacheable observer that keeps track of what length events occured More...

#include <cacheable_observers.hh>

Inheritance diagram for core::pose::datacache::LengthEventCollector:
Inheritance graph
[legend]

Public Types

typedef utility::signals::Link Link
 

Public Member Functions

 LengthEventCollector ()
 default constructor More...
 
 LengthEventCollector (LengthEventCollector const &rval)
 copy constructor More...
 
 ~LengthEventCollector () override
 default destructor More...
 
LengthEventCollectoroperator= (LengthEventCollector 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...
 
void clear_events ()
 
utility::vector1< core::conformation::signals::LengthEvent > const & events () const
 
- Public Member Functions inherited from core::pose::datacache::CacheableObserver
 CacheableObserver ()
 default constructor More...
 
 CacheableObserver (CacheableObserver const &rval)
 copy constructor More...
 
 ~CacheableObserver () override
 default destructor More...
 
CacheableObserveroperator= (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...
 

Protected Member Functions

void attach_impl (pose::Pose &pose) override
 attach to Pose/Conformation More...
 
void detach_impl () override
 detach from Pose/Conformation More...
 
void on_length_change (conformation::signals::LengthEvent const &event)
 

Private Member Functions

void copy_length_events (utility::vector1< core::conformation::signals::LengthEvent > const &events)
 

Private Attributes

utility::vector1< core::conformation::signals::LengthEventlength_events_
 
Link length_event_link_
 

Detailed Description

a cacheable observer that keeps track of what length events occured

Member Typedef Documentation

◆ Link

typedef utility::signals::Link core::pose::datacache::LengthEventCollector::Link

Constructor & Destructor Documentation

◆ LengthEventCollector() [1/2]

core::pose::datacache::LengthEventCollector::LengthEventCollector ( )

default constructor

References length_events_.

◆ LengthEventCollector() [2/2]

core::pose::datacache::LengthEventCollector::LengthEventCollector ( LengthEventCollector const &  rval)

copy constructor

Warning
Subject being observed (represented by Link/pointer) is not copied!

References copy_length_events(), and length_events_.

◆ ~LengthEventCollector()

core::pose::datacache::LengthEventCollector::~LengthEventCollector ( )
override

default destructor

Remarks
detaches during destruction

References core::pose::datacache::CacheableObserver::detach_from().

Member Function Documentation

◆ attach_impl()

void core::pose::datacache::LengthEventCollector::attach_impl ( pose::Pose pose)
overrideprotectedvirtual

◆ clear_events()

void core::pose::datacache::LengthEventCollector::clear_events ( )
inline

References length_events_.

◆ clone()

pose::datacache::CacheableObserverOP core::pose::datacache::LengthEventCollector::clone ( )
overridevirtual

clone this object

Warning
Subject (represented by Link/pointer) is not copied!

Implements core::pose::datacache::CacheableObserver.

◆ copy_length_events()

void core::pose::datacache::LengthEventCollector::copy_length_events ( utility::vector1< core::conformation::signals::LengthEvent > const &  events)
private

References events(), and length_events_.

Referenced by LengthEventCollector(), and operator=().

◆ create()

pose::datacache::CacheableObserverOP core::pose::datacache::LengthEventCollector::create ( )
overridevirtual

create a new instance of this object

Implements core::pose::datacache::CacheableObserver.

◆ detach_impl()

void core::pose::datacache::LengthEventCollector::detach_impl ( )
overrideprotectedvirtual

detach from Pose/Conformation

Implements core::pose::datacache::CacheableObserver.

References length_event_link_.

◆ events()

utility::vector1< core::conformation::signals::LengthEvent > const & core::pose::datacache::LengthEventCollector::events ( ) const

References length_events_.

Referenced by copy_length_events().

◆ is_attached()

bool core::pose::datacache::LengthEventCollector::is_attached ( ) const
inlineoverridevirtual

is this observer attached to a Pose/Conformation?

Implements core::pose::datacache::CacheableObserver.

References length_event_link_.

◆ on_length_change()

void core::pose::datacache::LengthEventCollector::on_length_change ( conformation::signals::LengthEvent const &  event)
protected

all this class does is keep track of length events

References length_events_.

Referenced by attach_impl().

◆ operator=()

LengthEventCollector & core::pose::datacache::LengthEventCollector::operator= ( LengthEventCollector const &  rval)

copy assignment

Warning
Subject being observed (represented by Link/pointer) is not copied!

References copy_length_events(), length_events_, and core::pose::datacache::CacheableObserver::operator=().

Member Data Documentation

◆ length_event_link_

Link core::pose::datacache::LengthEventCollector::length_event_link_
private

◆ length_events_

utility::vector1< core::conformation::signals::LengthEvent > core::pose::datacache::LengthEventCollector::length_events_
private

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