DuxReiNummariae 1.0.0-alpha.23
Simple and powerful budgeting application
 
Loading...
Searching...
No Matches
drn::budgeting::BudgetItemDueIdentifier Struct Reference

A representation of a specific budget item that is due. More...

#include <BudgetItemDue.h>

Collaboration diagram for drn::budgeting::BudgetItemDueIdentifier:

Public Member Functions

std::strong_ordering operator<=> (const BudgetItemDueIdentifier &other) const noexcept
 Complete three-way comparison operator that compares first the due date and then the id.
 
bool operator== (const BudgetItemDueIdentifier &) const noexcept=default
 

Public Attributes

BudgetItemIdentifier budgetId_ {}
 The unique identifier of the budget item that is due.
 
::QDate dueOn_ {}
 The date the budget item is due on.
 

Detailed Description

A representation of a specific budget item that is due.

Member Function Documentation

◆ operator<=>()

std::strong_ordering drn::budgeting::BudgetItemDueIdentifier::operator<=> ( const BudgetItemDueIdentifier & other) const
nodiscardnoexcept

Complete three-way comparison operator that compares first the due date and then the id.

Parameters
otherThe other object to compare against.
Returns
The result of the ordering comparison.

◆ operator==()

bool drn::budgeting::BudgetItemDueIdentifier::operator== ( const BudgetItemDueIdentifier & ) const
nodiscarddefaultnoexcept

Member Data Documentation

◆ budgetId_

BudgetItemIdentifier drn::budgeting::BudgetItemDueIdentifier::budgetId_ {}

The unique identifier of the budget item that is due.

◆ dueOn_

::QDate drn::budgeting::BudgetItemDueIdentifier::dueOn_ {}

The date the budget item is due on.