#include <ring.h>
Public Member Functions | |
Ring construction functions | |
Ring () | |
Ring (vector< Atom * > *, vector< Bond * > *) | |
~Ring () | |
void | addBond (Bond *aBond, bool silentError=false) throw ( CError ) |
void | addAtom (Atom *anAtom, bool silentError=false) throw ( CError ) |
Accessor functions | |
int | getID () |
void | setID (int a) |
vector< Bond * > * | getBonds () |
Ring manipulation functions | |
bool | hasAtom (Atom *anAtom) |
bool | hasBond (Bond *aBond) |
bool | equals (Ring *anotherRing) |
Output functions | |
string | toStringShort () |
string | toString () |
void | describeShort () |
void | describe () |
Protected Attributes | |
vector< Bond * > | bonds |
int | id |
|
class constructor. |
|
class constructor. |
|
class desctructor. |
|
adds an atom to the ring. |
|
adds a bond to the ring. this function should only be called during ring creation from a file. Not for ring detection. |
|
gives a description of the ring. |
|
gives a short description of the ring. |
|
comparison operator. |
|
returns the vector of bonds the ring is made of. |
|
returns the id of the ring. |
|
returns true if the ring contains anAtom. |
|
returns true if the ring contains aBond. |
|
sest the id of the ring. |
|
returns a string describing of the ring. |
|
returns a string shortly describing of the ring. |
|
vector of bonds the ring is made of. |
|
stores a unique id of the ring in the molecule. |