IMP  2.0.1
The Integrative Modeling Platform
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 //! Define the methods needed by Clustering
17 /** In addition to what is defined/declared by IMP_OBJECT() it declares
18  - IMP::statistics::PartitionalClustering::get_number_of_clusters()
19  - IMP::statistics::PartitionalClustering::get_cluster()
20  - IMP::statistics::PartitionalClustering::get_cluster_representative()
21 */
22 #define IMP_PARTITIONAL_CLUSTERING(Name) \
23  unsigned int get_number_of_clusters() const; \
24  const Ints& get_cluster(unsigned int i) const; \
25  int get_cluster_representative(unsigned int i) const; \
26  IMP_OBJECT(Name)
27 
28 #endif /* IMPSTATISTICS_PARTITIONAL_CLUSTERING_MACROS_H */