Selector is a general purpose class used to select records from a PDB file. Using descendants of this class one may implement arbitrary selection functions with operator() and pass them to PDB reading functions for object selection. Simple selectors can be used to build more complicated ones. Inheritence means "AND" unless otherwise noted (that is, the CAlphaPDBSelector takes all non-alternate C-alphas since it inherits from NonAlternativePDBSelector).
PDBSelectors are designed to be temporary objects and should never be stored.
Public Member Functions | |
virtual bool | operator() (const std::string &pdb_line) const =0 |
Return true if the line should be processed. |