BALL
1.4.79
|
#include <BALL/KERNEL/standardPredicates.h>
Public Member Functions | |
RingFinder () | |
Default constructor. More... | |
RingFinder (Size n) | |
virtual | ~RingFinder () |
Destructor. More... | |
bool | operator() (const Atom &atom) |
bool | dfs (const Atom &atom, const Size limit) |
void | setRingSize (Size n) |
const HashSet< const Bond * > & | getVisitedBonds () const |
const std::vector< const Atom * > & | getRingAtoms () const |
Helper class for all predicates that need ring information.
Definition at line 833 of file standardPredicates.h.
BALL::RingFinder::RingFinder | ( | ) |
Default constructor.
BALL::RingFinder::RingFinder | ( | Size | n | ) |
Detailed constructor. Initialize this instance with the size of the ring we want to find. Default setting is 0 which means that any ring size will match.
|
virtual |
Destructor.
Depth first search for finding rings.
const std::vector<const Atom*>& BALL::RingFinder::getRingAtoms | ( | ) | const |
Return the vector of ring atoms.
Return the hashset containing all visited bonds.
void BALL::RingFinder::setRingSize | ( | Size | n | ) |
Set the ring size we want to find. Ring sizes below 3 will always return false, except if the size is set to 0, then any ring size will match.