Structural Bioinformatics Library
Template C++ / Python API for developping structural bioinformatics applications.
Selected_atom_iterator< Model, Subset_functor, is_const > Class Template Reference

#include <selected_atom_iterator.h>

Public Member Functions

 Selected_atom_iterator (Base_iterator it, const Subset_functor &functor)
 

Detailed Description

template<class Model, class Subset_functor, bool is_const>
class ESBTL::Selected_atom_iterator< Model, Subset_functor, is_const >

Class defining an iterator over atoms of a model, restricted to a certain type defined by a function object.

Template Parameters
Modelis the type of the model used.
Subset_functoris a function following the concept of Atom selection.
is_constindicates the constness of the iterator.

If you do not need to pass a state to your functor, you might want to use boost::filter_iterator instead.

Constructor & Destructor Documentation

◆ Selected_atom_iterator()

Selected_atom_iterator ( Base_iterator  it,
const Subset_functor &  functor 
)
inline

Constructor.

Parameters
itis the iterator indicating the starting point for the iterator.
functoris the functor used to select atoms.