40 std::vector<obsharedptr<OBMol> > _reactants;
41 std::vector<obsharedptr<OBMol> > _products;
42 std::vector<obsharedptr<OBMol> > _agents;
43 obsharedptr<OBMol> _ts;
52 {
return static_cast<int> (_reactants.size()); }
55 {
return static_cast<int> (_products.size()); }
59 return static_cast<int> (_agents.size());
63 { _reactants.push_back(sp); }
66 { _products.push_back(sp); }
72 { _agents.push_back(sp); }
76 obsharedptr<OBMol> sp;
77 if(i<_reactants.size())
83 obsharedptr<OBMol> sp;
84 if(i<_products.size())
90 obsharedptr<OBMol> sp;
99 std::string
GetTitle()
const {
return _title; }
101 void SetTitle(
const std::string& title) { _title=title; }
102 void SetComment(
const std::string& comment) { _comment=comment; }
109 return " reactions\n";
OBReaction()
Definition: reaction.h:48
int NumAgents() const
Definition: reaction.h:57
obsharedptr< OBMol > GetAgent(const unsigned i)
Definition: reaction.h:88
void AddProduct(const obsharedptr< OBMol > sp)
Definition: reaction.h:65
Base classes to build a graph.
obsharedptr< OBMol > GetProduct(const unsigned i)
Definition: reaction.h:81
std::string GetComment() const
Definition: reaction.h:100
void SetReversible(bool b=true)
Definition: reaction.h:105
Used to store chemical reactions (i.e., reactants -> products)
Definition: reaction.h:37
int NumReactants() const
Definition: reaction.h:51
void AddReactant(const obsharedptr< OBMol > sp)
Definition: reaction.h:62
obsharedptr< OBMol > GetReactant(const unsigned i)
Definition: reaction.h:74
void SetComment(const std::string &comment)
Definition: reaction.h:102
void AddAgent(const obsharedptr< OBMol > sp)
Definition: reaction.h:71
bool IsReversible() const
Definition: reaction.h:104
void SetTitle(const std::string &title)
Definition: reaction.h:101
static const char * ClassDescription()
Definition: reaction.h:107
int NumProducts() const
Definition: reaction.h:54
obsharedptr< OBMol > GetTransitionState() const
Definition: reaction.h:96
bool Clear()
Clear any and all data associated with this object.
Definition: reaction.h:112
Base Class.
Definition: base.h:239
std::string GetTitle() const
Definition: reaction.h:99
void SetTransitionState(const obsharedptr< OBMol > sp)
Definition: reaction.h:68
Global namespace for all Open Babel code.
Definition: alias.h:22