Public Member Functions | Private Types | Private Attributes | List of all members
PLMD::MetricRegister Class Reference

#include <MetricRegister.h>

Public Member Functions

 ~MetricRegister ()
 The destructor. More...
 
void add (std::string type, creator_pointer)
 Add a new metric to the register of metrics. More...
 
void remove (creator_pointer f)
 Remove a metric from the register of metrics. More...
 
bool check (std::string type)
 Verify if a particular metric type is present in the register. More...
 
template<class T >
T * create (const std::string &type)
 Create a reference configuration and don't set a point of reference. More...
 
template<class T >
T * create (const std::string &type, const PDB &pdb)
 Create a reference configuration and set the point of reference from the pdb. More...
 

Private Types

typedef ReferenceConfiguration *(* creator_pointer) (const ReferenceConfigurationOptions &)
 Pointer to a function which, given the type for a ReferenceConfiguration, creates it. More...
 

Private Attributes

std::map< std::string, creator_pointerm
 The set of possible distribution functions we can work with. More...
 

Member Typedef Documentation

◆ creator_pointer

typedef ReferenceConfiguration*(* PLMD::MetricRegister::creator_pointer) (const ReferenceConfigurationOptions &)
private

Pointer to a function which, given the type for a ReferenceConfiguration, creates it.

Constructor & Destructor Documentation

◆ ~MetricRegister()

PLMD::MetricRegister::~MetricRegister ( )

The destructor.

Member Function Documentation

◆ add()

void PLMD::MetricRegister::add ( std::string  type,
creator_pointer  f 
)

Add a new metric to the register of metrics.

◆ check()

bool PLMD::MetricRegister::check ( std::string  type)

Verify if a particular metric type is present in the register.

◆ create() [1/2]

template<class T >
T * PLMD::MetricRegister::create ( const std::string &  type)

Create a reference configuration and don't set a point of reference.

◆ create() [2/2]

template<class T >
T * PLMD::MetricRegister::create ( const std::string &  type,
const PDB pdb 
)

Create a reference configuration and set the point of reference from the pdb.

◆ remove()

void PLMD::MetricRegister::remove ( creator_pointer  f)

Remove a metric from the register of metrics.

Member Data Documentation

◆ m

std::map<std::string,creator_pointer> PLMD::MetricRegister::m
private

The set of possible distribution functions we can work with.


The documentation for this class was generated from the following files: