9 #ifndef IMPKERNEL_RESTRAINT_INFO_H
10 #define IMPKERNEL_RESTRAINT_INFO_H
12 #include <IMP/kernel_config.h>
17 IMPKERNEL_BEGIN_NAMESPACE
40 void add_int(std::string key,
int value);
46 std::string
get_int_key(
unsigned i)
const {
return int_[i].first; }
50 return int_[i].second;
54 void add_float(std::string key,
double value);
64 return float_[i].second;
68 void add_string(std::string key, std::string value);
78 return string_[i].second;
86 void add_filename(std::string key, std::string value);
96 return filename_[i].second;
100 void add_floats(std::string key,
Floats value);
110 return floats_[i].second;
114 void add_ints(std::string key,
Ints value);
124 return ints_[i].second;
128 void add_strings(std::string key,
Strings value);
135 return strings_[i].first;
140 return strings_[i].second;
148 void add_filenames(std::string key,
Strings value);
155 return filenames_[i].first;
160 return filenames_[i].second;
171 return pis_[i].first;
176 return pis_[i].second;
182 typedef std::pair<std::string, int> IntData;
183 std::vector<IntData> int_;
185 typedef std::pair<std::string, double> FloatData;
186 std::vector<FloatData> float_;
188 typedef std::pair<std::string, std::string> StringData;
189 std::vector<StringData> string_, filename_;
191 typedef std::pair<std::string, Floats> FloatsData;
192 std::vector<FloatsData> floats_;
194 typedef std::pair<std::string, Ints> IntsData;
195 std::vector<IntsData> ints_;
197 typedef std::pair<std::string, Strings> StringsData;
198 std::vector<StringsData> strings_;
199 std::vector<StringsData> filenames_;
201 typedef std::pair<std::string, ParticleIndexes> ParticleIndexesData;
202 std::vector<ParticleIndexesData> pis_;
205 IMPKERNEL_END_NAMESPACE
unsigned get_number_of_filenames() const
Get the number of filenames that have been added.
std::string get_string_value(unsigned i) const
Get the value for the ith string mapping.
double get_float_value(unsigned i) const
Get the value for the ith float mapping.
unsigned get_number_of_filename() const
Get the number of filename that have been added.
#define IMP_OBJECT_METHODS(Name)
Define the basic things needed by any Object.
std::string get_strings_key(unsigned i) const
Get the key for the ith strings mapping.
std::string get_filename_key(unsigned i) const
Get the key for the ith filename mapping.
int get_int_value(unsigned i) const
Get the value for the ith int mapping.
std::string get_float_key(unsigned i) const
Get the key for the ith float mapping.
Floats get_floats_value(unsigned i) const
Get the value for the ith Floats mapping.
std::string get_filename_value(unsigned i) const
Get the value for the ith filename 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.
Strings get_strings_value(unsigned i) const
Get the value for the ith strings mapping.
std::string get_filenames_key(unsigned i) const
Get the key for the ith filenames mapping.
Common base class for heavy weight IMP objects.
std::string get_floats_key(unsigned i) const
Get the key for the ith Floats mapping.
unsigned get_number_of_float() const
Get the number of float that have been added.
unsigned get_number_of_particle_indexes() const
Get the number of ParticleIndexes that have been added.
unsigned get_number_of_string() const
Get the number of string that have been added.
unsigned get_number_of_strings() const
Get the number of strings that have been added.
Report key:value information on restraints.
std::string get_int_key(unsigned i) const
Get the key for the ith int mapping.
unsigned get_number_of_int() const
Get the number of int that have been added.
A shared base class to help in debugging and things.
std::string get_particle_indexes_key(unsigned i) const
Get the key for the ith ParticleIndexes mapping.
Object(std::string name)
Construct an object with the given name.
std::string get_string_key(unsigned i) const
Get the key for the ith string mapping.
unsigned get_number_of_floats() const
Get the number of Floats that have been added.
unsigned get_number_of_ints() const
Get the number of Ints that have been added.
Ints get_ints_value(unsigned i) const
Get the value for the ith Ints mapping.
Strings get_filenames_value(unsigned i) const
Get the value for the ith filenames mapping.