newmen/versatile-diamond

View on GitHub
engine/hand-generations/src/reactions/typical/abs_hydrogen_from_gap.h

Summary

Maintainability
Test Coverage
#ifndef ABS_HYDROGEN_FROM_GAP_H
#define ABS_HYDROGEN_FROM_GAP_H

#include "../../phases/diamond_atoms_iterator.h"
#include "../../species/specific/bridge_crh.h"
#include "../typical.h"

class AbsHydrogenFromGap : public Typical<ABS_HYDROGEN_FROM_GAP, 2>, public DiamondAtomsIterator
{
    static const char __name[];

public:
    static double RATE();

    static void find(BridgeCRh *target);

    AbsHydrogenFromGap(SpecificSpec **targets) : Typical(targets) {}

    void doIt() override;

    double rate() const override { return RATE(); }
    const char *name() const override { return __name; }

private:
    void changeAtom(Atom *atom) const;
};

#endif // ABS_HYDROGEN_FROM_GAP_H