Rosetta
Public Member Functions | Public Attributes | List of all members
ui::task::PNode Struct Reference

struct to help represent Project as tree. This is local datatype used only by ProjectModel More...

Public Member Functions

 PNode (Project const &p)
 
 PNode (PNode *_parent, QString const &_name, TaskSP const &t)
 
 PNode (PNode *_parent, QString const &_name, TaskSP const &t, File const &(Task::*)() const)
 
PNodeleaf (unsigned int i) const
 
int node_index (PNode *node)
 
int size ()
 

Public Attributes

PNodeparent = nullptr
 
QString name
 
QString type
 
TaskSP task
 
vector< PNodeSPleafs
 

Detailed Description

struct to help represent Project as tree. This is local datatype used only by ProjectModel

Constructor & Destructor Documentation

◆ PNode() [1/3]

ui::task::PNode::PNode ( Project const &  p)
inline

◆ PNode() [2/3]

ui::task::PNode::PNode ( PNode _parent,
QString const &  _name,
TaskSP const &  t 
)
inline

◆ PNode() [3/3]

ui::task::PNode::PNode ( PNode _parent,
QString const &  _name,
TaskSP const &  t,
File const &(Task::*)() const   
)
inline

Member Function Documentation

◆ leaf()

PNode* ui::task::PNode::leaf ( unsigned int  i) const
inline

References create_a3b_hbs::i, and leafs.

Referenced by ui::task::ProjectModel::index().

◆ node_index()

int ui::task::PNode::node_index ( PNode node)
inline

◆ size()

int ui::task::PNode::size ( )
inline

References leafs.

Member Data Documentation

◆ leafs

vector<PNodeSP> ui::task::PNode::leafs

Referenced by leaf(), node_index(), PNode(), and size().

◆ name

QString ui::task::PNode::name

◆ parent

PNode* ui::task::PNode::parent = nullptr

◆ task

TaskSP ui::task::PNode::task

◆ type

QString ui::task::PNode::type

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