9 #ifndef IMPKERNEL_RESTRAINT_INFO_H
10 #define IMPKERNEL_RESTRAINT_INFO_H
12 #include <IMP/kernel_config.h>
17 IMPKERNEL_BEGIN_NAMESPACE
52 void add_int(std::string key,
int value);
58 std::string
get_int_key(
unsigned i)
const {
return int_[i].first; }
62 return int_[i].second;
66 void add_float(std::string key,
double value);
76 return float_[i].second;
80 void add_string(std::string key, std::string value);
90 return string_[i].second;
98 void add_filename(std::string key, std::string value);
108 return filename_[i].second;
112 void add_floats(std::string key,
Floats value);
122 return floats_[i].second;
126 void add_ints(std::string key,
Ints value);
136 return ints_[i].second;
140 void add_strings(std::string key,
Strings value);
147 return strings_[i].first;
152 return strings_[i].second;
160 void add_filenames(std::string key,
Strings value);
167 return filenames_[i].first;
172 return filenames_[i].second;
183 return pis_[i].first;
188 return pis_[i].second;
194 typedef std::pair<std::string, int> IntData;
195 std::vector<IntData> int_;
197 typedef std::pair<std::string, double> FloatData;
198 std::vector<FloatData> float_;
200 typedef std::pair<std::string, std::string> StringData;
201 std::vector<StringData> string_, filename_;
203 typedef std::pair<std::string, Floats> FloatsData;
204 std::vector<FloatsData> floats_;
206 typedef std::pair<std::string, Ints> IntsData;
207 std::vector<IntsData> ints_;
209 typedef std::pair<std::string, Strings> StringsData;
210 std::vector<StringsData> strings_;
211 std::vector<StringsData> filenames_;
213 typedef std::pair<std::string, ParticleIndexes> ParticleIndexesData;
214 std::vector<ParticleIndexesData> pis_;
217 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.