xmol::proxy::smart::ResidueSmartSelection class

ResidueSelection with parent frame changes tracking.

Base classes

template<typename Observer>
class FrameObserver<ResidueSmartSelection>

Constructors, destructors, conversion operators

ResidueSmartSelection(ResidueSelection sel)
operator const ResidueSelection&() const &
operator ResidueSelection&() &
operator ResidueSelection&&() &&

Public functions

auto coords() -> CoordSelection
Coordinates.
auto atoms() -> AtomSelection
Child atoms.
auto molecules() -> MoleculeSelection
Parent molecules.
template<typename Predicate>
auto filter(Predicate&& p) -> ResidueSelection
Returns selection with atoms that match predicate.
void unite(const ResidueSelection& rhs)
Inplace union.
void substract(const ResidueSelection& rhs)
Inplace difference.
void intersect(const ResidueSelection& rhs)
Inplace intersection.
auto contains(const ResidueRef& ref) const -> bool
Check if element in selection.
auto operator|=(const ResidueSelection& rhs) -> ResidueSmartSelection&
Inplace union.
auto operator-=(const ResidueSelection& rhs) -> ResidueSmartSelection&
Inplace difference.
auto operator&=(const ResidueSelection& rhs) -> ResidueSmartSelection&
Inplace intersection.
auto begin() -> auto
auto end() -> auto
auto size() const -> size_t
auto empty() const -> size_t
auto slice(std::optional<size_t> start, std::optional<size_t> stop = {}, std::optional<size_t> step = {}) -> ResidueSelection
auto index() -> auto
auto operator[](size_t i) -> ResidueRef&