9#ifndef IMPKERNEL_RESTRAINT_INFO_H
10#define IMPKERNEL_RESTRAINT_INFO_H
12#include <IMP/kernel_config.h>
17IMPKERNEL_BEGIN_NAMESPACE
47class IMPKERNELEXPORT RestraintInfo :
public Object {
49 RestraintInfo(std::string name =
"RestraintInfo %1%") :
Object(name) {}
71 std::string
get_int_key(
unsigned i)
const {
return int_[i].first; }
75 return int_[i].second;
89 return float_[i].second;
103 return string_[i].second;
121 return filename_[i].second;
135 return floats_[i].second;
149 return ints_[i].second;
160 return strings_[i].first;
165 return strings_[i].second;
180 return filenames_[i].first;
185 return filenames_[i].second;
196 return pis_[i].first;
201 return pis_[i].second;
207 typedef std::pair<std::string, int> IntData;
208 std::vector<IntData> int_;
210 typedef std::pair<std::string, double> FloatData;
211 std::vector<FloatData> float_;
213 typedef std::pair<std::string, std::string> StringData;
214 std::vector<StringData> string_, filename_;
216 typedef std::pair<std::string, Floats> FloatsData;
217 std::vector<FloatsData> floats_;
219 typedef std::pair<std::string, Ints> IntsData;
220 std::vector<IntsData> ints_;
222 typedef std::pair<std::string, Strings> StringsData;
223 std::vector<StringsData> strings_;
224 std::vector<StringsData> filenames_;
226 typedef std::pair<std::string, ParticleIndexes> ParticleIndexesData;
227 std::vector<ParticleIndexesData> pis_;
230IMPKERNEL_END_NAMESPACE
A shared base class to help in debugging and things.
Object(std::string name)
Construct an object with the given name.
std::string get_float_key(unsigned i) const
Get the key for the ith float mapping.
unsigned get_number_of_filename() const
Get the number of filename that have been added.
std::string get_filename_value(unsigned i) const
Get the value for the ith filename mapping.
Floats get_floats_value(unsigned i) const
Get the value for the ith Floats mapping.
int get_int_value(unsigned i) const
Get the value for the ith int mapping.
void add_particle_indexes(std::string key, ParticleIndexes value)
Add ParticleIndexes referenced by the given key.
void add_string(std::string key, std::string value)
Add a string value referenced by the given key.
std::string get_filenames_key(unsigned i) const
Get the key for the ith filenames mapping.
Ints get_ints_value(unsigned i) const
Get the value for the ith Ints mapping.
std::string get_particle_indexes_key(unsigned i) const
Get the key for the ith ParticleIndexes mapping.
void add_filenames(std::string key, Strings value)
Add a list of filename values referenced by the given key.
void add_strings(std::string key, Strings value)
Add a list of string values referenced by the given key.
std::string get_string_key(unsigned i) const
Get the key for the ith string mapping.
Strings get_strings_value(unsigned i) const
Get the value for the ith strings mapping.
unsigned get_number_of_string() const
Get the number of string that have been added.
std::string get_strings_key(unsigned i) const
Get the key for the ith strings mapping.
unsigned get_number_of_float() const
Get the number of float that have been added.
double get_float_value(unsigned i) const
Get the value for the ith float mapping.
void add_ints(std::string key, Ints value)
Add a list of Int values referenced by the given key.
std::string get_floats_key(unsigned i) const
Get the key for the ith Floats mapping.
std::string get_ints_key(unsigned i) const
Get the key for the ith Ints mapping.
ParticleIndexes get_particle_indexes_value(unsigned i) const
Get the value for the ith ParticleIndexes mapping.
unsigned get_number_of_filenames() const
Get the number of filenames that have been added.
void add_floats(std::string key, Floats value)
Add a list of Float values referenced by the given key.
unsigned get_number_of_ints() const
Get the number of Ints that have been added.
void add_filename(std::string key, std::string value)
Add a filename value referenced by the given key.
unsigned get_number_of_int() const
Get the number of int that have been added.
unsigned get_number_of_strings() const
Get the number of strings that have been added.
void add_int(std::string key, int value)
Add an int value referenced by the given key.
unsigned get_number_of_floats() const
Get the number of Floats that have been added.
std::string get_filename_key(unsigned i) const
Get the key for the ith filename mapping.
unsigned get_number_of_particle_indexes() const
Get the number of ParticleIndexes that have been added.
std::string get_int_key(unsigned i) const
Get the key for the ith int mapping.
Strings get_filenames_value(unsigned i) const
Get the value for the ith filenames mapping.
std::string get_string_value(unsigned i) const
Get the value for the ith string mapping.
void add_float(std::string key, double value)
Add a float value referenced by the given key.
IMP::Vector< Int > Ints
Standard way to pass a bunch of Int values.
Vector< ParticleIndex, std::allocator< ParticleIndex > > ParticleIndexes
A list of particles, each identified by its ParticleIndex.
IMP::Vector< String > Strings
Standard way to pass a bunch of String values.
IMP::Vector< Float > Floats
Standard way to pass a bunch of Float values.
#define IMP_OBJECT_METHODS(Name)
Define the basic things needed by any Object.