All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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_pointer
m
 The set of possible distribution functions we can work with. More...
 

Member Typedef Documentation

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

PLMD::MetricRegister::~MetricRegister ( )

The destructor.

Member Function Documentation

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

Add a new metric to the register of metrics.

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

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

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

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

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.

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

Remove a metric from the register of metrics.

Member Data Documentation

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: