IMP
2.1.0
The Integrative Modeling Platform
IMP Mainpage
All IMP Modules
Related Pages
Modules
Namespaces
Classes
Files
Examples
Indexes
File List
File Members
partitional_clustering_macros.h
Go to the documentation of this file.
1
/**
2
* \file IMP/statistics/partitional_clustering_macros.h
3
* \brief Various important macros
4
* for implementing decorators.
5
*
6
* Copyright 2007-2013 IMP Inventors. All rights reserved.
7
*
8
*/
9
10
#ifndef IMPSTATISTICS_PARTITIONAL_CLUSTERING_MACROS_H
11
#define IMPSTATISTICS_PARTITIONAL_CLUSTERING_MACROS_H
12
13
#include "
PartitionalClustering.h
"
14
#include <
IMP/base/object_macros.h
>
15
16
IMPSTATISTICS_DEPRECATED_HEADER(2.1,
"It is not needed any more"
)
17
18
//! Simply declare the needed methods directly
19
#define IMP_PARTITIONAL_CLUSTERING(Name) \
20
IMP_DEPRECATED_MACRO( \
21
2.1, "Don't use the macro, simple declare the methods.") unsigned int \
22
get_number_of_clusters() const IMP_OVERRIDE; \
23
const Ints& get_cluster(unsigned int i) const IMP_OVERRIDE; \
24
int get_cluster_representative(unsigned int i) const IMP_OVERRIDE; \
25
IMP_OBJECT_NO_WARNING(Name)
26
27
#endif
/* IMPSTATISTICS_PARTITIONAL_CLUSTERING_MACROS_H */
PartitionalClustering.h
Compute a distance metric between two points.
object_macros.h
Various general useful macros for IMP.