9 #ifndef IMPKERNEL_RESTRAINT_INFO_H
10 #define IMPKERNEL_RESTRAINT_INFO_H
12 #include <IMP/kernel_config.h>
17 IMPKERNEL_BEGIN_NAMESPACE
65 void add_int(std::string key,
int value);
71 std::string
get_int_key(
unsigned i)
const {
return int_[i].first; }
75 return int_[i].second;
79 void add_float(std::string key,
double value);
89 return float_[i].second;
93 void add_string(std::string key, std::string value);
103 return string_[i].second;
111 void add_filename(std::string key, std::string value);
121 return filename_[i].second;
125 void add_floats(std::string key,
Floats value);
135 return floats_[i].second;
139 void add_ints(std::string key,
Ints value);
149 return ints_[i].second;
153 void add_strings(std::string key,
Strings value);
160 return strings_[i].first;
165 return strings_[i].second;
173 void add_filenames(std::string key,
Strings value);
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_;
230 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.