LOOS  v2.3.2
loos::AndSelector Struct Reference

Combines two selectors with a logical "and". More...

#include <Selectors.hpp>

Inheritance diagram for loos::AndSelector:
Collaboration diagram for loos::AndSelector:

Public Member Functions

 AndSelector (const AtomSelector &x, const AtomSelector &y)
bool operator() (const pAtom &pa) const

Public Attributes

const AtomSelectorlhs
const AtomSelectorrhs

Detailed Description

Combines two selectors with a logical "and".


SegidSelector prot("PROT");
MainChainSelector main_chain;
AndSelector main_chain_protein(main_chain, prot);

The main_chain_protein selector will select for all atoms that are both main chain and have a segid of "PROT".

Definition at line 146 of file Selectors.hpp.

Member Function Documentation

bool loos::AndSelector::operator() ( const pAtom &  atom) const

Predicate function for selecting atoms. If true, then the passed Atom is selected for an operation (or addition to a new group). If false, then the passed Atom is skipped.

Implements loos::AtomSelector.

Definition at line 161 of file Selectors.cpp.

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