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

Traits class defining partners' labels for binary molecular complexes A and B. Traits class defining partners' labels for binary molecular complexes A and B. More...

#include <AB_label_traits.hpp>

Public Types

enum  Label
 Enumerate the two possible labels A and B. More...

Static Public Member Functions

static unsigned get_number_of_labels (void)
 Count the number of labels, that is always 2.
static unsigned get_number_of_primitive_labels (void)
 Count the number of primitive labels, that is always 2.
static Label get_parent_of (Label label)
 All labels being primitives, return the input label itself.
static std::string to_string (Label label)
 Return the string representation of the labels.

Detailed Description

Traits class defining partners' labels for binary molecular complexes A and B. Traits class defining partners' labels for binary molecular complexes A and B.

Member Enumeration Documentation

◆ Label

template<class Dummy = void>
enum Label
inherited

Enumerate the two possible labels A and B.

Member Function Documentation

◆ get_number_of_labels()

template<class Dummy = void>
unsigned get_number_of_labels ( void )
inlinestaticinherited

Count the number of labels, that is always 2.

◆ get_number_of_primitive_labels()

template<class Dummy = void>
unsigned get_number_of_primitive_labels ( void )
inlinestaticinherited

Count the number of primitive labels, that is always 2.

◆ get_parent_of()

template<class Dummy = void>
Label get_parent_of ( Label label)
inlinestaticinherited

All labels being primitives, return the input label itself.

◆ to_string()

template<class Dummy = void>
std::string to_string ( Label label)
inlinestaticinherited

Return the string representation of the labels.