IMP
2.0.0
The Integrative Modeling Platform
Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
metric_macros.h
Go to the documentation of this file.
1
/**
2
* \file IMP/statistics/metric_macros.h \brief Various important macros
3
* for implementing decorators.
4
*
5
* Copyright 2007-2013 IMP Inventors. All rights reserved.
6
*
7
*/
8
9
#ifndef IMPSTATISTICS_METRIC_MACROS_H
10
#define IMPSTATISTICS_METRIC_MACROS_H
11
12
#include "
Metric.h
"
13
#include <
IMP/base/object_macros.h
>
14
15
16
//! Define things needed for a Metric
17
/** In addition to what is done by IMP_OBJECT() it declares
18
- IMP::statistics::Distance::get_embedding()
19
*/
20
#define IMP_METRIC(Name) \
21
double get_distance(unsigned int i, \
22
unsigned int j) const; \
23
unsigned int get_number_of_items() const; \
24
IMP_OBJECT(Name)
25
26
27
28
#endif
/* IMPSTATISTICS_METRIC_MACROS_H */