todo-cli
Loading...
Searching...
No Matches
todo Namespace Reference

Classes

class  Action
class  RemoveAction
class  AddAction
class  DescChangeAction
class  StatusChangeAction
class  PriorityChangeAction
class  Controller
struct  Task
struct  UserInput
class  Model
class  BasicView
class  IView
class  ViView
class  View

Typedefs

using i8 = int8_t
using i16 = int16_t
using i32 = int32_t
using i64 = int64_t
using u8 = uint8_t
using u16 = uint16_t
using u32 = uint32_t
using u64 = uint64_t
using Status = todo::Task::Status

Enumerations

enum class  MenuOptions {
  EXIT = 0 , ADD = 1 , REMOVE = 2 , CHANGE_DESC = 3 ,
  CHANGE_STATUS = 4 , CHANGE_PRIO = 5 , UNDO = 6 , REDO = 7 ,
  CLEAR = 8 , INVALID = 9
}

Functions

bool pre_order_trav (const std::vector< Task > &list, int &curr, const int target, std::vector< u64 > &path)
Task::Date parse_date (std::string &&due_date)
bool validate_date (const std::chrono::year_month_day &today, const Task::Date &due)
void tag_invoke (boost::json::value_from_tag, boost::json::value &v, todo::Task::Status const &s)
todo::Task::Status tag_invoke (boost::json::value_to_tag< todo::Task::Status >, boost::json::value const &v)
 BOOST_DESCRIBE_ENUM (Task::Status, NOT_STARTED, IN_PROGRESS, COMPLETED)
 BOOST_DESCRIBE_STRUCT (Task::Date,(),(year, month, day))
 BOOST_DESCRIBE_STRUCT (Task,(),(desc, child_tasks, priority, status, due_date))
void clear_input_buf ()
i32 find_indent_lvl (WINDOW *win, int cursor_y)

Typedef Documentation

◆ i16

using todo::i16 = int16_t

◆ i32

using todo::i32 = int32_t

◆ i64

using todo::i64 = int64_t

◆ i8

using todo::i8 = int8_t

◆ Status

◆ u16

using todo::u16 = uint16_t

◆ u32

using todo::u32 = uint32_t

◆ u64

using todo::u64 = uint64_t

◆ u8

using todo::u8 = uint8_t

Enumeration Type Documentation

◆ MenuOptions

enum class todo::MenuOptions
strong
Enumerator
EXIT 
ADD 
REMOVE 
CHANGE_DESC 
CHANGE_STATUS 
CHANGE_PRIO 
UNDO 
REDO 
CLEAR 
INVALID 

Function Documentation

◆ BOOST_DESCRIBE_ENUM()

todo::BOOST_DESCRIBE_ENUM ( Task::Status ,
NOT_STARTED ,
IN_PROGRESS ,
COMPLETED  )

◆ BOOST_DESCRIBE_STRUCT() [1/2]

todo::BOOST_DESCRIBE_STRUCT ( Task ,
() ,
(desc, child_tasks, priority, status, due_date)  )

◆ BOOST_DESCRIBE_STRUCT() [2/2]

todo::BOOST_DESCRIBE_STRUCT ( Task::Date ,
() ,
(year, month, day)  )

◆ clear_input_buf()

void todo::clear_input_buf ( )

◆ find_indent_lvl()

i32 todo::find_indent_lvl ( WINDOW * win,
int cursor_y )
inline

◆ parse_date()

Task::Date todo::parse_date ( std::string && due_date)
inline

◆ pre_order_trav()

bool todo::pre_order_trav ( const std::vector< Task > & list,
int & curr,
const int target,
std::vector< u64 > & path )
inline

◆ tag_invoke() [1/2]

void todo::tag_invoke ( boost::json::value_from_tag ,
boost::json::value & v,
todo::Task::Status const & s )
inline

◆ tag_invoke() [2/2]

todo::Task::Status todo::tag_invoke ( boost::json::value_to_tag< todo::Task::Status > ,
boost::json::value const & v )
inline

◆ validate_date()

bool todo::validate_date ( const std::chrono::year_month_day & today,
const Task::Date & due )
inline