Structural Bioinformatics Library
Template C++ / Python API for developping structural bioinformatics applications.
Coarse_creator_two_barycenters< Residue > Class Template Reference

#include <coarse_creators.h>

Detailed Description

template<class Residue>
class SBL::CSB::Coarse_creator_two_barycenters< Residue >

This module gathers all objects provided to create coarse grain atoms from a residue. Such an object must be a class of the following type:

template <class Residue>
struct Coarse_creator_concept{
//a string indicating how the coarse grained model is defined.
static const std::string info(){ ... }
// Creates coarse grain atoms from a residue.
// Output_iterator is an output iterator of coarse grain atoms.
// the integer returned is the number of coarse grain atoms created.
template <class Output_iterator>
int operator()(const Residue& res,Output_iterator out) const{ ... }
};

Creator of a coarse grain model creating up to two pseudo-atoms: one as the barycenter of backbone atoms (if relevant) and one as the barycenter of non-barycenter atoms. Backbone atoms are identified using the global function SBL::is_backbone.

Template Parameters
Residueis the coarse grain residue type used.