Rosetta  2020.37
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Private Attributes | List of all members
core::chemical::Selector_PROPERTY Class Reference

Does the residue have ANY of these properties? More...

#include <ResidueTypeSelector.hh>

Inheritance diagram for core::chemical::Selector_PROPERTY:
Inheritance graph
[legend]

Public Member Functions

 Selector_PROPERTY (utility::vector1< std::string > const &properties_in, bool const result)
 
bool operator[] (ResidueTypeBase const &rsd) const override
 Given a ResidueType, return a boolean value based on whether the ResidueType has the property that this selector selects. More...
 
- Public Member Functions inherited from core::chemical::ResidueTypeSelectorSingle
 ~ResidueTypeSelectorSingle () override
 Automatically generated virtual destructor for class deriving directly from VirtualBase. More...
 
 ResidueTypeSelectorSingle (bool const result)
 
bool desired_result () const
 

Private Attributes

utility::vector1< std::string > custom_properties_
 On-the-fly generated properties, which must be stored by string. More...
 
utility::vector1< ResiduePropertyproperties_
 Standard properties, which are stored efficiently by enum. More...
 

Detailed Description

Does the residue have ANY of these properties?

Author
Phil Bradley
Vikram K. Mulligan – Rewrote this on 23 Aug 2016 to use Properties enums, which was needed for speed with the ResidueTypeFinder.
Andy Watkins – Rewrote this on 10 Jan 2019 to use modern loops

Constructor & Destructor Documentation

core::chemical::Selector_PROPERTY::Selector_PROPERTY ( utility::vector1< std::string > const &  properties_in,
bool const  result 
)
inline

Member Function Documentation

bool core::chemical::Selector_PROPERTY::operator[] ( ResidueTypeBase const &  rsd) const
inlineoverridevirtual

Given a ResidueType, return a boolean value based on whether the ResidueType has the property that this selector selects.

Implements core::chemical::ResidueTypeSelectorSingle.

References custom_properties_, core::chemical::ResidueTypeSelectorSingle::desired_result(), core::chemical::ResidueTypeBase::has_property(), and properties_.

Member Data Documentation

utility::vector1< std::string > core::chemical::Selector_PROPERTY::custom_properties_
private

On-the-fly generated properties, which must be stored by string.

Referenced by operator[](), and Selector_PROPERTY().

utility::vector1< ResidueProperty > core::chemical::Selector_PROPERTY::properties_
private

Standard properties, which are stored efficiently by enum.

Referenced by operator[](), and Selector_PROPERTY().


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