Chemical Data Processing Library C++ API - Version 1.4.0
Public Member Functions | List of all members
CDPL::ConfGen::TorsionRuleMatch Class Reference

A single match of a ConfGen::TorsionRule against a rotatable bond: the rule, the bond and the four atoms that span the torsion. More...

#include <TorsionRuleMatch.hpp>

Public Member Functions

 TorsionRuleMatch (const TorsionRule &rule, const Chem::Bond &bond, const Chem::Atom *atom1, const Chem::Atom *atom2, const Chem::Atom *atom3, const Chem::Atom *atom4)
 Constructs the TorsionRuleMatch instance. More...
 
const Chem::Atom *const * getAtoms () const
 Returns the four torsion atoms (A, B, C, D). More...
 
const TorsionRulegetRule () const
 Returns the matched torsion rule. More...
 
const Chem::BondgetBond () const
 Returns the rotatable bond at which the rule matched. More...
 

Detailed Description

A single match of a ConfGen::TorsionRule against a rotatable bond: the rule, the bond and the four atoms that span the torsion.

Constructor & Destructor Documentation

◆ TorsionRuleMatch()

CDPL::ConfGen::TorsionRuleMatch::TorsionRuleMatch ( const TorsionRule rule,
const Chem::Bond bond,
const Chem::Atom atom1,
const Chem::Atom atom2,
const Chem::Atom atom3,
const Chem::Atom atom4 
)

Constructs the TorsionRuleMatch instance.

Parameters
ruleThe matched torsion rule.
bondThe rotatable bond.
atom1The first torsion atom (A in A-B-C-D).
atom2The second torsion atom (B).
atom3The third torsion atom (C).
atom4The fourth torsion atom (D).

Member Function Documentation

◆ getAtoms()

const Chem::Atom* const* CDPL::ConfGen::TorsionRuleMatch::getAtoms ( ) const

Returns the four torsion atoms (A, B, C, D).

Returns
A pointer to a 4-element array of const Chem::Atom* (A, B, C, D).

◆ getRule()

const TorsionRule& CDPL::ConfGen::TorsionRuleMatch::getRule ( ) const

Returns the matched torsion rule.

Returns
A const reference to the rule.

◆ getBond()

const Chem::Bond& CDPL::ConfGen::TorsionRuleMatch::getBond ( ) const

Returns the rotatable bond at which the rule matched.

Returns
A const reference to the bond.

The documentation for this class was generated from the following file: