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

[definition] More...

#include <IG_label_traits.hpp>

Classes

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

Public Types

enum  Label
 Enumerate the hierarchical labels in IG. More...

Static Public Member Functions

static unsigned get_number_of_labels (void)
 Count the number of labels, that is always 3.
static unsigned get_number_of_primitive_labels (void)
 Count the number of primitive labels, that is always 4.
static Label get_parent_of (Label label)
 IG is the only root of the hierarchy, and H1, L1, H2, L2 are the leaves of the hierarchy.
static std::string to_string (Label label)
 Return a string representing the label.

Detailed Description

template<class Dummy = void>
class SBL::Models::T_IG_label_traits< Dummy >

[definition]

Member Enumeration Documentation

◆ Label

template<class Dummy = void>
enum Label

Enumerate the hierarchical labels in IG.

Member Function Documentation

◆ get_number_of_labels()

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

Count the number of labels, that is always 3.

◆ get_number_of_primitive_labels()

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

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

◆ get_parent_of()

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

IG is the only root of the hierarchy, and H1, L1, H2, L2 are the leaves of the hierarchy.

◆ to_string()

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

Return a string representing the label.