IMP  2.0.0
The Integrative Modeling Platform
kernel/particle_index.h
Go to the documentation of this file.
1 /**
2  * \file IMP/kernel/particle_index.h
3  * \brief Various general useful functions for IMP.
4  *
5  * Copyright 2007-2013 IMP Inventors. All rights reserved.
6  *
7  */
8 
9 #ifndef IMPKERNEL_PARTICLE_INDEX_H
10 #define IMPKERNEL_PARTICLE_INDEX_H
11 
12 #include <IMP/kernel/kernel_config.h>
13 #include "base_types.h"
14 
15 IMPKERNEL_BEGIN_NAMESPACE
16 
17 /** Get the indexes from a list of particles.*/
18 IMPKERNELEXPORT ParticleIndexes get_indexes(const ParticlesTemp &ps);
19 
20 /** Get the particles from a list of indexes.*/
21 IMPKERNELEXPORT ParticlesTemp
22 get_particles(Model *m, const ParticleIndexes &ps);
23 
24 /** Get the indexes from a list of particle pairs. */
25 IMPKERNELEXPORT ParticleIndexPairs get_indexes(const ParticlePairsTemp &ps);
26 
27 IMPKERNEL_END_NAMESPACE
28 
29 #endif /* IMPKERNEL_PARTICLE_INDEX_H */