IMP
2.0.0
The Integrative Modeling Platform
Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
MinimumSingletonScore.h
Go to the documentation of this file.
1
/**
2
* \file IMP/container/MinimumSingletonScore.h
3
* \brief Define SingletonScore.
4
*
5
* This file is generated by a script (tools/make-container).
6
* Do not edit directly.
7
*
8
* Copyright 2007-2013 IMP Inventors. All rights reserved.
9
*/
10
11
#ifndef IMPCONTAINER_MINIMUM_SINGLETON_SCORE_H
12
#define IMPCONTAINER_MINIMUM_SINGLETON_SCORE_H
13
14
#include <IMP/container/container_config.h>
15
#include <
IMP/SingletonScore.h
>
16
#include <
IMP/singleton_macros.h
>
17
18
IMPCONTAINER_BEGIN_NAMESPACE
19
20
//! Evaluate the min or max n particle scores of the passed set
21
/** Each of the set of SingletonScores is evaluated and the sum of the
22
minimum n is returned.
23
*/
24
class
IMPCONTAINEREXPORT
MinimumSingletonScore
:
public
SingletonScore
25
{
26
SingletonScores
scores_;
27
unsigned
int
n_;
28
public
:
29
MinimumSingletonScore
(
const
SingletonScoresTemp
&scores,
30
unsigned
int
n=1,
31
std::string name=
"SingletonScore %1%"
);
32
IMP_INDEX_SINGLETON_SCORE
(
MinimumSingletonScore
);
33
34
IMP_IMPLEMENT
(
Restraints
35
do_create_current_decomposition
(
Model
*m,
36
ParticleIndex
vt)
37
const
IMP_OVERRIDE);
38
};
39
40
IMP_OBJECTS
(
MinimumSingletonScore
,
MinimumSingletonScores
);
41
42
IMPCONTAINER_END_NAMESPACE
43
44
#endif
/* IMPCONTAINER_MINIMUM_SINGLETON_SCORE_H */