LOOS  v2.3.2
loos::KernelSelector Class Reference

Selection predicate that executes a compiled Kernel. More...

#include <Selectors.hpp>

Inheritance diagram for loos::KernelSelector:
Collaboration diagram for loos::KernelSelector:

Public Member Functions

 KernelSelector (Kernel &k)
 
bool operator() (const pAtom &pa) const
 

Detailed Description

Selection predicate that executes a compiled Kernel.

This predicate takes a compiled Kernel and executes it once for each Atom. This is primarily for use in conjunction with the Parser for handling selections based on user input.

Example:

Parser parsed(selection_string);
KernelSelector sel(parsed.kernel());

Definition at line 219 of file Selectors.hpp.

Member Function Documentation

bool loos::KernelSelector::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 179 of file Selectors.cpp.


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