|
DuxReiNummariae 1.1.0-alpha.19
Simple and powerful budgeting application
|
An account code number generator that creates values sequentially. More...
#include <AccountNumberGenerator.hpp>
Public Member Functions | |
| AccountNumberGenerator (AccountNumber number={}) | |
| Constructor for fully initialising the generator. | |
| AccountNumberGenerator (AccountNumberGenerator &&) noexcept=default | |
| AccountNumberGenerator (const AccountNumberGenerator &)=default | |
| std::unique_ptr< AccountNumberGenerator > | clone () const override |
| When implemented, will clone all data members of the object. | |
| AccountNumber | current (const std::set< Account > &accounts) const override |
| Finds the current largest account code number. | |
| AccountNumberGenerator & | operator= (AccountNumberGenerator &&) noexcept=default |
| AccountNumberGenerator & | operator= (const AccountNumber &number) |
| Assignment operator for setting the current generated account code number. | |
| AccountNumberGenerator & | operator= (const AccountNumberGenerator &)=default |
| Public Member Functions inherited from drn::accounting::AccountNumberGenerator | |
| AccountNumberGenerator (AccountNumber number={}) | |
| Constructor for fully initialising the generator. | |
| AccountNumberGenerator (AccountNumberGenerator &&) noexcept=default | |
| AccountNumberGenerator (const AccountNumberGenerator &)=default | |
| virtual | ~AccountNumberGenerator ()=default |
| const AccountNumber & | operator* () const |
| Dereference operator to the current generated account code number. | |
| const AccountNumber & | operator++ () |
| Prefix incremental operator to advance to the next account code number. | |
| AccountNumber | operator++ (int) |
| Postfix incremental operator to advance to the next account code number. | |
| const AccountNumber & | operator-- () |
| Prefix decremental operator to go back to the previous account code number. | |
| AccountNumber | operator-- (int) |
| Postfix decremental operator to go back to the previous account code number. | |
| AccountNumberGenerator & | operator= (AccountNumberGenerator &&) noexcept=default |
| AccountNumberGenerator & | operator= (const AccountNumber &number) |
| Assignment operator for setting the current generated account code number. | |
| AccountNumberGenerator & | operator= (const AccountNumberGenerator &)=default |
| void | update (AccountNumber an) |
| Updates the current account number to the supplied number when it is larger. | |
Additional Inherited Members | |
| Protected Member Functions inherited from drn::accounting::AccountNumberGenerator | |
| const AccountNumber & | number () const noexcept |
| An accessor to the current account code number. | |
An account code number generator that creates values sequentially.
|
explicit |
Constructor for fully initialising the generator.
| number | The current account code number that is used. |
|
defaultnoexcept |
|
default |
|
nodiscardoverridevirtual |
When implemented, will clone all data members of the object.
Implements drn::accounting::AccountNumberGenerator.
|
nodiscardoverridevirtual |
Finds the current largest account code number.
| accounts | The current listing of all the accounts in the account ledger. |
Implements drn::accounting::AccountNumberGenerator.
|
defaultnoexcept |
| AccountNumberGenerator & drn::accounting::AccountNumberGenerator::operator= | ( | const AccountNumber & | number | ) |
Assignment operator for setting the current generated account code number.
| number | The number to set the account code number generated to. |
|
default |