The Gnome Chemistry Utils
0.13.7
|
#include <gcp/fragment-residue.h>
Public Member Functions | |
FragmentResidue () | |
FragmentResidue (Fragment *fragment, char const *symbol) | |
virtual | ~FragmentResidue () |
xmlNodePtr | Save (xmlDocPtr xml) const |
bool | Load (xmlNodePtr node) |
void | SetResidue (Residue const *res, char const *symbol=NULL) |
const gchar * | GetSymbol () const |
Residue const * | GetResidue (void) const |
std::string | GetAbbrev (void) const |
Represents a residue inside a atoms group (see gcp::Fragment class).
Definition at line 38 of file fragment-residue.h.
The default constructor.
gcp::FragmentResidue::FragmentResidue | ( | Fragment * | fragment, |
char const * | symbol | ||
) |
fragment | the fragment containing the residue symbol. |
symbol | the residue symbol. |
Constructs a FragmentResidue as a child of fragment.
virtual gcp::FragmentResidue::~FragmentResidue | ( | ) | [virtual] |
The destructor.
gcp::FragmentResidue::GetAbbrev | ( | void | ) | const [inline] |
Definition at line 90 of file fragment-residue.h.
gcp::FragmentResidue::GetResidue | ( | void | ) | const [inline] |
Definition at line 86 of file fragment-residue.h.
const gchar* gcp::FragmentResidue::GetSymbol | ( | ) | const [virtual] |
bool gcp::FragmentResidue::Load | ( | xmlNodePtr | node | ) | [virtual] |
node | an XML node. |
Loads the symbol and associated resdue from node.
Reimplemented from gcp::FragmentAtom.
xmlNodePtr gcp::FragmentResidue::Save | ( | xmlDocPtr | xml | ) | const [virtual] |
xml | the xmlDoc used to save the document. |
Builds an XML node representing this instance.
Reimplemented from gcp::FragmentAtom.
void gcp::FragmentResidue::SetResidue | ( | Residue const * | res, |
char const * | symbol = NULL |
||
) |
res | the residue corresponding to the symbol. |
symbol | the symbol to use, or NULL to use the default symbol. |
Sets the associated residue.