LOOS  v2.3.2
loos::OrSelector Struct Reference

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

#include <Selectors.hpp>

Inheritance diagram for loos::OrSelector:
Collaboration diagram for loos::OrSelector:

Public Member Functions

 OrSelector (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 "or".

Example:

SegidSelector prot("PROT");
SegidSelector heme("HEME");
OrSelector prot_with_heme(prot, heme);

This selector will pick any atom that has a segid of either "PROT" or "HEME".

Definition at line 168 of file Selectors.hpp.

Member Function Documentation

bool loos::OrSelector::operator() ( const pAtom &  atom) const
virtual

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 165 of file Selectors.cpp.


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