Skip to content

Commit

Permalink
docs(fmt): add missing docstrings
Browse files Browse the repository at this point in the history
  • Loading branch information
jnooree committed Nov 10, 2023
1 parent c6b00f3 commit 8e8fc46
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions include/nuri/fmt/base.h
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,20 @@ class MoleculeStream {
return true;
}

/**
* @brief Get the current molecule.
* @return Reference to the current molecule.
* @pre Previous call to advance() must return true, otherwise the behavior
* is unspecified.
*/
Molecule &current() { return mol_; }

/**
* @brief Get the current molecule.
* @return Const reference to the current molecule.
* @pre Previous call to advance() must return true, otherwise the behavior
* is unspecified.
*/
const Molecule &current() const { return mol_; }

private:
Expand Down

0 comments on commit 8e8fc46

Please sign in to comment.