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

Traits class defining one partner's label. Traits class defining one partner's label. More...

#include <One_label_traits.hpp>

Classes

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

Public Types

enum  Label { A_LABEL = 1 }
 Enumerate one label. More...
 

Static Public Member Functions

static unsigned get_number_of_labels (void)
 Count the number of labels, that is always 1. More...
 
static unsigned get_number_of_primitive_labels (void)
 Count the number of primitive labels, that is always 1. More...
 
static Label get_parent_of (Label label)
 Since there is only one label, return the label itself.
More...
 
static std::string to_string (Label label)
 Return a string representing the label. More...
 

Detailed Description

Traits class defining one partner's label. Traits class defining one partner's label.

[definition]

Member Enumeration Documentation

◆ Label

enum Label

Enumerate one label.

Enumerator
A_LABEL 

Member Function Documentation

◆ get_number_of_labels()

static unsigned get_number_of_labels ( void  )
inlinestatic

Count the number of labels, that is always 1.

◆ get_number_of_primitive_labels()

static unsigned get_number_of_primitive_labels ( void  )
inlinestatic

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

◆ get_parent_of()

static Label get_parent_of ( Label  label)
inlinestatic

Since there is only one label, return the label itself.

◆ to_string()

static std::string to_string ( Label  label)
inlinestatic

Return a string representing the label.