IMP
2.0.0
The Integrative Modeling Platform
Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
ExampleSubsetFilterTable.h
Go to the documentation of this file.
1
/**
2
* \file IMP/example/ExampleSubsetFilterTable.h
3
* \brief A Score on the distance between a pair of particles.
4
*
5
* Copyright 2007-2013 IMP Inventors. All rights reserved.
6
*/
7
8
#ifndef IMPEXAMPLE_EXAMPLE_SUBSET_FILTER_TABLE_H
9
#define IMPEXAMPLE_EXAMPLE_SUBSET_FILTER_TABLE_H
10
11
#include <IMP/example/example_config.h>
12
#include <
IMP/domino/subset_filters.h
>
13
#include <
IMP/domino/domino_macros.h
>
14
15
IMPEXAMPLE_BEGIN_NAMESPACE
16
17
/** Filter a set of particles based on the maximum difference
18
in state indexes between them (a completely silly criteria).
19
The thing to note is how the filter table determines when
20
it should be applied and how it sets up the filters.
21
\include ExampleSubsetFilterTable.h
22
\include ExampleSubsetFilterTable.cpp
23
*/
24
class
IMPEXAMPLEEXPORT
ExampleSubsetFilterTable
:
25
public
domino::SubsetFilterTable
26
{
27
int
max_diff_;
28
const
Particles ps_;
29
Ints
get_indexes
(
const
domino::Subset
&s,
30
const
domino::Subsets
& prior_subsets)
const
;
31
public
:
32
ExampleSubsetFilterTable
(
unsigned
int
max_diff,
const
ParticlesTemp &pt);
33
34
IMP_SUBSET_FILTER_TABLE
(
ExampleSubsetFilterTable
);
35
};
36
37
38
IMPEXAMPLE_END_NAMESPACE
39
40
#endif
/* IMPEXAMPLE_EXAMPLE_SUBSET_FILTER_TABLE_H */