Structural Bioinformatics Library
Template C++ / Python API for developping structural bioinformatics applications.
Select_by_atmname Struct Reference

#include <atom_selectors.h>

Public Member Functions

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

Detailed Description

Function object to select an atom using its atom name.

Constructor & Destructor Documentation

◆ Select_by_atmname() [1/2]

Select_by_atmname ( )
inline

Default constructor

◆ Select_by_atmname() [2/2]

Select_by_atmname ( const std::string &  str)
inline

Constructor.

Parameters
stris the name of the atoms to be selected.

Member Function Documentation

◆ operator()()

bool operator() ( const Atom &  atom) const
inline

Checks if an atoms match a criteria.

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