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

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

#include <Extra_label_traits.hpp>

Classes

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

Public Types

enum  Label
 Enumerate one label for the extra. 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 extra's label. Traits class defining one extra's label.

Member Enumeration Documentation

◆ Label

enum Label

Enumerate one label for the extra.

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.