todo-cli
Loading...
Searching...
No Matches
todo::Task Struct Reference

#include <task.h>

Collaboration diagram for todo::Task:

Classes

struct  Date

Public Types

enum class  Status : char { NOT_STARTED = 1 , IN_PROGRESS = 2 , COMPLETED = 3 , INVALID = 4 }

Public Member Functions

 Task ()=default
 Task (const Task &)=default
 Task (Task &&)=default
Taskoperator= (const Task &)=default
Taskoperator= (Task &&)=default
 Task (std::string &&desc, uint16_t prio, Status completion, Date &&date)
bool operator== (const Task &other) const
bool operator!= (const Task &other) const

Public Attributes

std::string desc
 Description of the task.
std::vector< Taskchild_tasks
 Child tasks.
uint16_t priority
 Priority of the task.
enum todo::Task::Status status
 Completion status of the task.
struct todo::Task::Date due_date
 Due date of the task.

Member Enumeration Documentation

◆ Status

enum class todo::Task::Status : char
strong
Enumerator
NOT_STARTED 
IN_PROGRESS 
COMPLETED 
INVALID 

Constructor & Destructor Documentation

◆ Task() [1/4]

todo::Task::Task ( )
default

◆ Task() [2/4]

todo::Task::Task ( const Task & )
default

◆ Task() [3/4]

todo::Task::Task ( Task && )
default

◆ Task() [4/4]

todo::Task::Task ( std::string && desc,
uint16_t prio,
Status completion,
Date && date )
inline

Member Function Documentation

◆ operator!=()

bool todo::Task::operator!= ( const Task & other) const
inline

◆ operator=() [1/2]

Task & todo::Task::operator= ( const Task & )
default

◆ operator=() [2/2]

Task & todo::Task::operator= ( Task && )
default

◆ operator==()

bool todo::Task::operator== ( const Task & other) const
inline

Member Data Documentation

◆ child_tasks

std::vector<Task> todo::Task::child_tasks

Child tasks.

◆ desc

std::string todo::Task::desc

Description of the task.

◆ due_date

struct todo::Task::Date todo::Task::due_date

Due date of the task.

◆ priority

uint16_t todo::Task::priority

Priority of the task.

◆ status

enum todo::Task::Status todo::Task::status

Completion status of the task.


The documentation for this struct was generated from the following file: