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

#include <atom_selectors.h>

Public Member Functions

 Select_by_chainids ()
 
 Select_by_chainids (const std::string &chs)
 
template<class Atom >
bool operator() (const Atom &atom) const
 

Detailed Description

Function object to select an atom using its chain identifier.

Constructor & Destructor Documentation

◆ Select_by_chainids() [1/2]

Select_by_chainids ( )
inline

Default constructor

◆ Select_by_chainids() [2/2]

Select_by_chainids ( const std::string &  chs)
inline

Constructor.

Parameters
chsis the chains identifiers of the atoms to be selected. If several chains must be specified, they must be concatenated (for example selecting atoms of chains A or B corresponds to str="AB")

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_chain_identifier taking an element of this type must exits.
Parameters
atomrepresents an atom.