Public Member Functions | Public Attributes
ESBTL::Select_by_element Struct Reference

#include <atom_selectors.h>

List of all members.

Public Member Functions

 Select_by_element ()
 Select_by_element (const std::string &str)
template<class Atom >
bool operator() (const Atom &atom) const

Public Attributes

std::string name

Detailed Description

Function object to select an atom using its chemical name.


Constructor & Destructor Documentation

ESBTL::Select_by_element::Select_by_element ( ) [inline]

Default constructor

ESBTL::Select_by_element::Select_by_element ( const std::string &  str) [inline]

Constructor.

Parameters:
stris the chemical name of the atoms to be selected.

Member Function Documentation

template<class Atom >
bool ESBTL::Select_by_element::operator() ( const Atom &  atom) const [inline]

Checks if an atoms match a criteria.

Template Parameters:
Atommust represent an atom, a global function ESBTL::get_element taking an element of this type must exits.
Parameters:
atomrepresents an atom.

Member Data Documentation


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