faunus
Public Member Functions | List of all members
Faunus::Speciation::ReactionValidator Class Reference

Helper class to check if a reaction is possible, i.e. More...

#include <speciation.h>

Public Member Functions

 ReactionValidator (const Space &spc)
 
bool isPossible (const ReactionData &reaction) const
 Enough reactants and product capacity? More...
 

Detailed Description

Helper class to check if a reaction is possible, i.e.

that there's sufficient reactant and product capacity

Member Function Documentation

◆ isPossible()

bool Faunus::Speciation::ReactionValidator::isPossible ( const ReactionData reaction) const

Enough reactants and product capacity?

Parameters
reactionReaction to check
Returns
If true, it is guarantied that reactants/products are available and no further checks are needed

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