19 #ifndef OST_CONOP_DIAG_HH
20 #define OST_CONOP_DIAG_HH
27 namespace ost {
namespace conop {
50 atoms_.push_back(atom);
57 residues_.push_back(res);
63 chains_.push_back(chain);
69 ints_.push_back(int_val);
75 strings_.push_back(str);
81 assert(index<args_.size());
82 return atoms_[args_[index].index];
86 assert(index<args_.size());
87 return residues_[args_[index].index];
91 assert(index<args_.size());
92 return chains_[args_[index].index];
97 ArgDesc(
size_t i,
DiagArgType t): index(i), type(t) { }
106 std::vector<String> strings_;
107 std::vector<int> ints_;
108 std::vector<ArgDesc> args_;
129 for(std::vector<Diag*>::iterator
130 i=diags_.begin(), e=diags_.end(); i!=e;++i) {
137 diags_.push_back(
new Diag(type, fmt));
138 return *diags_.back();
146 std::vector<Diag*> diags_;