Structural Bioinformatics Library
Template C++ / Python API for developping structural bioinformatics applications.
T_Molecular_interface_connected_component_data_structure< ParticleWithSystemLabelTraits, MolecularModel >::Have_labels Class Reference

Predicate initialized with one or two labels, that checks that a vertex has an ancestor of or equal given label, or an edge has ancestors of or equal given pair of labels. More...

#include <Molecular_interface_data_structure_base.hpp>

Constructors

 Have_labels (const T_Molecular_interface_connected_component_data_structure< ParticleWithSystemLabelTraits, MolecularModel > &cc, Partner_label partner)
 Constructor for vertices in a partner. More...
 
 Have_labels (const T_Molecular_interface_connected_component_data_structure< ParticleWithSystemLabelTraits, MolecularModel > &cc, Mediator_label mediator)
 Constructor for vertices in a mediator. More...
 
 Have_labels (const T_Molecular_interface_connected_component_data_structure< ParticleWithSystemLabelTraits, MolecularModel > &cc, Partner_label partner_1, Partner_label partner_2)
 Constructor for edges in a bicolor interface. More...
 
 Have_labels (const T_Molecular_interface_connected_component_data_structure< ParticleWithSystemLabelTraits, MolecularModel > &cc, Partner_label partner, Mediator_label mediator)
 Constructor for edges in a mediated interface. More...
 

Functors

bool operator() (Particle_vertex_handle p) const
 Check that the input vertex has a label that has as ancestor or equal the initialized label. More...
 
bool operator() (const Contact &contact) const
 Check that the inputedge has labels that have as ancestor or equal the initialized labels. More...
 

Detailed Description

template<class ParticleWithSystemLabelTraits, class MolecularModel = CSB::T_Alpha_complex_of_molecular_model<ParticleWithSystemLabelTraits>>
class SBL::CSB::T_Molecular_interface_connected_component_data_structure< ParticleWithSystemLabelTraits, MolecularModel >::Have_labels

Predicate initialized with one or two labels, that checks that a vertex has an ancestor of or equal given label, or an edge has ancestors of or equal given pair of labels.

Constructor & Destructor Documentation

◆ Have_labels() [1/4]

Have_labels ( const T_Molecular_interface_connected_component_data_structure< ParticleWithSystemLabelTraits, MolecularModel > &  cc,
Partner_label  partner 
)
inline

Constructor for vertices in a partner.

◆ Have_labels() [2/4]

Have_labels ( const T_Molecular_interface_connected_component_data_structure< ParticleWithSystemLabelTraits, MolecularModel > &  cc,
Mediator_label  mediator 
)
inline

Constructor for vertices in a mediator.

◆ Have_labels() [3/4]

Have_labels ( const T_Molecular_interface_connected_component_data_structure< ParticleWithSystemLabelTraits, MolecularModel > &  cc,
Partner_label  partner_1,
Partner_label  partner_2 
)
inline

Constructor for edges in a bicolor interface.

◆ Have_labels() [4/4]

Have_labels ( const T_Molecular_interface_connected_component_data_structure< ParticleWithSystemLabelTraits, MolecularModel > &  cc,
Partner_label  partner,
Mediator_label  mediator 
)
inline

Constructor for edges in a mediated interface.

Member Function Documentation

◆ operator()() [1/2]

bool operator() ( const Contact &  contact) const
inline

Check that the inputedge has labels that have as ancestor or equal the initialized labels.

Precondition
The predicate was initialized for edges.

◆ operator()() [2/2]

bool operator() ( Particle_vertex_handle  p) const
inline

Check that the input vertex has a label that has as ancestor or equal the initialized label.

Precondition
The predicate was initialized for vertices.