# Reaction

class CReactionUnitParameter : public CBaseUnitParameter

  Class for chemical reaction unit parameters.

  Public Functions

  std::vector<CChemicalReaction> GetReactions() const

    Returns all defined chemical reactions.

    Returns:

      All defined chemical reactions.

  std::vector<CChemicalReaction*> GetReactionsPtr()

    Returns pointers to all defined chemical reactions.

    Returns:

      Pointers to all defined chemical reactions.

  const CChemicalReaction *GetReaction(size_t _index) const

    Returns const pointer to reaction with the given index.

    If such reaction does not exist, returns nullptr.

    Parameters:

      _index – Index of the reaction.

    Returns:

      Const pointer to reaction.

  CChemicalReaction *GetReaction(size_t _index)

    Returns pointer to reaction with the given index.

    If such reaction does not exist, returns nullptr.

    Parameters:

      _index – Index of the reaction.

    Returns:

      Pointer to reaction.

  size_t GetReactionsNumber() const

    Returns the number of defined reactions.

    Returns:

      Number of defined reactions.