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. 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. More...
 
static unsigned get_number_of_primitive_labels (void)
 Count the number of primitive labels, that is always 2. More...
 
static Label get_parent_of (Label label)
 All labels being primitives, return the input label itself. More...
 
static std::string to_string (Label label)
 Return the string representation of the labels. More...
 

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

enum Label
inherited

Enumerate the two possible labels A and B.

Member Function Documentation

◆ get_number_of_labels()

static unsigned get_number_of_labels ( void  )
inlinestaticinherited

Count the number of labels, that is always 2.

◆ get_number_of_primitive_labels()

static unsigned get_number_of_primitive_labels ( void  )
inlinestaticinherited

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

◆ get_parent_of()

static Label get_parent_of ( Label  label)
inlinestaticinherited

All labels being primitives, return the input label itself.

◆ to_string()

static std::string to_string ( Label  label)
inlinestaticinherited

Return the string representation of the labels.