signals

Bindings for utility::signals namespace

Bases: pybind11_builtins.pybind11_object

interface wrapper around utility::signals::LinkUnit

Can be used to manage the link between Subject
and Observer. Signals can be temporarily blocked and the connection can be invalidated (disconnected) by the user. If a Subject is destroyed or a manual disconnect is called via the SignalHub, the Link will automatically become invalidated.

Returned by utility::signals::SignalHub upon connection.

__delattr__

Implement delattr(self, name).

__dir__() → list

default dir() implementation

__eq__(self: pyrosetta.rosetta.utility.signals.Link, rval: pyrosetta.rosetta.utility.signals.Link) → bool

equality comparison

C++: utility::signals::Link::operator==(const class utility::signals::Link &) –> bool

__format__()

default object formatter

__ge__

Return self>=value.

__getattribute__

Return getattr(self, name).

__gt__

Return self>value.

__hash__

Return hash(self).

__init__(*args, **kwargs)

Overloaded function.

  1. __init__(self: pyrosetta.rosetta.utility.signals.Link) -> None
  2. __init__(self: pyrosetta.rosetta.utility.signals.Link, unit: pyrosetta.rosetta.utility.signals.LinkUnit) -> None
  3. __init__(self: pyrosetta.rosetta.utility.signals.Link, arg0: pyrosetta.rosetta.utility.signals.Link) -> None
__init_subclass__()

This method is called when a class is subclassed.

The default implementation does nothing. It may be overridden to extend subclasses.

__le__

Return self<=value.

__lt__

Return self<value.

__ne__

Return self!=value.

__new__()

Create and return a new object. See help(type) for accurate signature.

__reduce__()

helper for pickle

__reduce_ex__()

helper for pickle

__repr__

Return repr(self).

__setattr__

Implement setattr(self, name, value).

__sizeof__() → int

size of object in memory, in bytes

__str__

Return str(self).

__subclasshook__()

Abstract classes can override this to customize issubclass().

This is invoked early on by abc.ABCMeta.__subclasscheck__(). It should return True, False or NotImplemented. If it returns NotImplemented, the normal algorithm is used. Otherwise, it overrides the normal algorithm (and the outcome is cached).

assign(self: pyrosetta.rosetta.utility.signals.Link, rval: pyrosetta.rosetta.utility.signals.Link) → pyrosetta.rosetta.utility.signals.Link

copy assignment

C++: utility::signals::Link::operator=(const class utility::signals::Link &) –> class utility::signals::Link &

block(self: pyrosetta.rosetta.utility.signals.Link) → None

locally block the link

C++: utility::signals::Link::block() –> void

blocked(self: pyrosetta.rosetta.utility.signals.Link) → bool

link blocked?

true if link is blocked or empty, otherwise false

C++: utility::signals::Link::blocked() const –> bool

empty(self: pyrosetta.rosetta.utility.signals.Link) → bool

link empty?

C++: utility::signals::Link::empty() const –> bool

invalidate(self: pyrosetta.rosetta.utility.signals.Link) → None

cut the connection, safe to call even when link is empty

C++: utility::signals::Link::invalidate() –> void

unblock(self: pyrosetta.rosetta.utility.signals.Link) → None

locally unblock the link

C++: utility::signals::Link::unblock() –> void

valid(self: pyrosetta.rosetta.utility.signals.Link) → bool

link still valid?

false if link invalid or empty, otherwise true

C++: utility::signals::Link::valid() const –> bool

class pyrosetta.rosetta.utility.signals.LinkUnit

Bases: pybind11_builtins.pybind11_object

struct specifying actual link data between observers and subjects

Used internally by SignalHub. There is no copy constructor and
copy assignment, a LinkUnit is meant to be created only once for each connection.
__delattr__

Implement delattr(self, name).

__dir__() → list

default dir() implementation

__eq__

Return self==value.

__format__()

default object formatter

__ge__

Return self>=value.

__getattribute__

Return getattr(self, name).

__gt__

Return self>value.

__hash__

Return hash(self).

__init__(self: pyrosetta.rosetta.utility.signals.LinkUnit, f: capsule) → None
__init_subclass__()

This method is called when a class is subclassed.

The default implementation does nothing. It may be overridden to extend subclasses.

__le__

Return self<=value.

__lt__

Return self<value.

__ne__

Return self!=value.

__new__()

Create and return a new object. See help(type) for accurate signature.

__reduce__()

helper for pickle

__reduce_ex__()

helper for pickle

__repr__

Return repr(self).

__setattr__

Implement setattr(self, name, value).

__sizeof__() → int

size of object in memory, in bytes

__str__

Return str(self).

__subclasshook__()

Abstract classes can override this to customize issubclass().

This is invoked early on by abc.ABCMeta.__subclasscheck__(). It should return True, False or NotImplemented. If it returns NotImplemented, the normal algorithm is used. Otherwise, it overrides the normal algorithm (and the outcome is cached).