1 #//------------------------------------------------------------------------------
19 #ifndef OST_CONOP_DIAG_HH
20 #define OST_CONOP_DIAG_HH
26 namespace ost {
namespace conop {
49 atoms_.push_back(atom);
56 residues_.push_back(res);
62 chains_.push_back(chain);
68 ints_.push_back(int_val);
74 strings_.push_back(str);
80 assert(index<args_.size());
81 return atoms_[args_[index].index];
85 assert(index<args_.size());
86 return residues_[args_[index].index];
90 assert(index<args_.size());
91 return chains_[args_[index].index];
96 ArgDesc(
size_t i,
DiagArgType t): index(i), type(t) { }
105 std::vector<String> strings_;
106 std::vector<int> ints_;
107 std::vector<ArgDesc> args_;
116 for(std::vector<Diag*>::iterator
117 i=diags_.begin(), e=diags_.end(); i!=e;++i) {
124 diags_.push_back(
new Diag(type, fmt));
125 return *diags_.back();
128 const std::vector<Diag*>&
GetDiags()
const {
return diags_; }
130 std::vector<Diag*> diags_;