9 #ifndef IMPKERNEL_RESTRAINT_INFO_H
10 #define IMPKERNEL_RESTRAINT_INFO_H
12 #include <IMP/kernel_config.h>
16 IMPKERNEL_BEGIN_NAMESPACE
29 void add_int(std::string key,
int value);
35 std::string
get_int_key(
unsigned i)
const {
return int_[i].first; }
39 return int_[i].second;
43 void add_float(std::string key,
double value);
53 return float_[i].second;
57 void add_string(std::string key, std::string value);
67 return string_[i].second;
75 void add_filename(std::string key, std::string value);
85 return filename_[i].second;
89 void add_floats(std::string key,
Floats value);
99 return floats_[i].second;
107 void add_filenames(std::string key,
Strings value);
114 return filenames_[i].first;
119 return filenames_[i].second;
125 typedef std::pair<std::string, int> IntData;
126 std::vector<IntData> int_;
128 typedef std::pair<std::string, double> FloatData;
129 std::vector<FloatData> float_;
131 typedef std::pair<std::string, std::string> StringData;
132 std::vector<StringData> string_, filename_;
134 typedef std::pair<std::string, Floats> FloatsData;
135 std::vector<FloatsData> floats_;
137 typedef std::pair<std::string, Strings> StringsData;
138 std::vector<StringsData> filenames_;
141 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_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_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_string() const
Get the number of string 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.
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.
Strings get_filenames_value(unsigned i) const
Get the value for the ith filenames mapping.