|
DuxReiNummariae 1.1.0-alpha.19
Simple and powerful budgeting application
|
Represents a collection of budget items and their associated descriptive tags. More...
#include <BudgetItemTags.hpp>
Classes | |
| struct | ItemTags |
| Represents a budget item and its associated tags. More... | |
| struct | ItemTagsViewRef |
| Represents a view of a single budget item and its associated tags. More... | |
Public Member Functions | |
| BudgetItemTags ()=default | |
| BudgetItemTags (budgeting::BudgetItemIdentifier id) noexcept | |
| Full initialisation constructor from a specific budget item identifier. | |
| BudgetItemTags (const ItemTags &tag) noexcept | |
| Full initialisation constructor from a specific budget item identifier and its tags. | |
| BudgetItemTags (std::map< budgeting::BudgetItemIdentifier, Tags > tags) | |
| Full initialisation constructor using a mapping of budget item identifiers and their associated tags. | |
| std::optional< ItemTags > | find (const budgeting::BudgetItemIdentifier &id) const noexcept |
| Finds a budget item and its associated tags based on the specified identifier. | |
| ItemTagsViewRef | operator[] (const budgeting::BudgetItemIdentifier &id) |
| An index operation into the collection of budget item tags. | |
Represents a collection of budget items and their associated descriptive tags.
It is designed to facilitate the grouping and linkage of budget items with their respective tags.
|
default |
|
explicitnoexcept |
Full initialisation constructor from a specific budget item identifier.
It ensures proper initialisation of the identifier and leaves the associated tags empty by default.
| id | The budget item to initialise an empty set of tags. |
|
explicitnoexcept |
Full initialisation constructor from a specific budget item identifier and its tags.
It ensures proper initialisation of the identifier and leaves the associated tags empty by default.
| tag | The budget item tag to initialise from. |
|
explicit |
Full initialisation constructor using a mapping of budget item identifiers and their associated tags.
| tags | A map where the key represents the unique identifier for a budget item, and the value represents the set of tags associated with the budget item. |
|
nodiscardnoexcept |
Finds a budget item and its associated tags based on the specified identifier.
| id | The identifier of the budget item to search for within the collection. |
|
nodiscard |
An index operation into the collection of budget item tags.
| id | The unique identifier of the budget item tag. |