Structural Bioinformatics Library
Template C++ / Python API for developping structural bioinformatics applications.
T_AB_label_traits< Dummy > Struct Template Reference

#include <AB_label_traits.hpp>

Classes

struct  Primitive_label_classifier
 Functor returning a pair classifying a particle. More...
 

Public Types

enum  Label { A_LABEL = 1 , B_LABEL = 2 }
 Enumerate the two possible labels A and B. More...
 
typedef T_AB_label_traits< Dummy > Self
 

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...
 

Member Typedef Documentation

◆ Self

typedef T_AB_label_traits<Dummy> Self

Member Enumeration Documentation

◆ Label

enum Label

Enumerate the two possible labels A and B.

Enumerator
A_LABEL 
B_LABEL 

Member Function Documentation

◆ get_number_of_labels()

static unsigned get_number_of_labels ( void  )
inlinestatic

Count the number of labels, that is always 2.

◆ get_number_of_primitive_labels()

static unsigned get_number_of_primitive_labels ( void  )
inlinestatic

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

◆ get_parent_of()

static Label get_parent_of ( Label  label)
inlinestatic

All labels being primitives, return the input label itself.

◆ to_string()

static std::string to_string ( Label  label)
inlinestatic

Return the string representation of the labels.