nf_hist::tracked
The parent class for your tracked type, stores your source data class, provides const ref access to it, and capabilities to make tracked changes to all members/sub‐elements, as well as the ability to undo/redo, traverse and manage history
Synopsis
Declared in <nf/hist.h>
template<
class Data,
class User,
class User_data = no_user_data>
requires RareTs::is_macro_reflected_v<Data> && std::is_object_v<User>
class tracked;
Template Parameters
Name |
Description |
Data |
your source data class, which is some regular struct/class that has been reflected and which you want tracked to manage/track changes to |
User |
the class you're defining when extending tracked, e.g. class my_thing : tracked<my_data, my_thing> { ... }; |
User_data |
(optional) any user‐defined data you wish to be associated with every action in the change history |
Created with MrDocs