KSeExpr  4.0.4.0
Public Member Functions | Public Attributes | Private Attributes | List of all members
ExprTreeItem Class Reference

Public Member Functions

 ExprTreeItem (ExprTreeItem *parent, const QString &label, const QString &path)
 
 ~ExprTreeItem ()
 
ExprTreeItemfind (QString path)
 
void clear ()
 
void populate ()
 
void addChild (ExprTreeItem *child)
 
ExprTreeItemgetChild (const int row)
 
int getChildCount ()
 
void regen ()
 

Public Attributes

int row
 
ExprTreeItemparent
 
QString label
 
QString path
 

Private Attributes

std::vector< ExprTreeItem * > children
 
bool populated
 

Detailed Description

Definition at line 37 of file ExprBrowser.cpp.

Constructor & Destructor Documentation

◆ ExprTreeItem()

ExprTreeItem::ExprTreeItem ( ExprTreeItem parent,
const QString &  label,
const QString &  path 
)
inline

Definition at line 40 of file ExprBrowser.cpp.

Referenced by populate(), and regen().

◆ ~ExprTreeItem()

ExprTreeItem::~ExprTreeItem ( )
inline

Definition at line 49 of file ExprBrowser.cpp.

References children.

Member Function Documentation

◆ addChild()

void ExprTreeItem::addChild ( ExprTreeItem child)
inline

Definition at line 97 of file ExprBrowser.cpp.

References children, and row.

Referenced by ExprTreeModel::addPath(), populate(), and regen().

◆ clear()

void ExprTreeItem::clear ( )
inline

Definition at line 70 of file ExprBrowser.cpp.

References children.

Referenced by ExprTreeModel::clear().

◆ find()

ExprTreeItem* ExprTreeItem::find ( QString  path)
inline

Definition at line 55 of file ExprBrowser.cpp.

References children, find(), path, and populate().

Referenced by find(), and ExprTreeModel::find().

◆ getChild()

ExprTreeItem* ExprTreeItem::getChild ( const int  row)
inline

Definition at line 103 of file ExprBrowser.cpp.

References children, populate(), and row.

Referenced by ExprTreeModel::index().

◆ getChildCount()

int ExprTreeItem::getChildCount ( )
inline

Definition at line 112 of file ExprBrowser.cpp.

References children, and populate().

Referenced by ExprTreeModel::rowCount().

◆ populate()

void ExprTreeItem::populate ( )
inline

Definition at line 78 of file ExprBrowser.cpp.

References addChild(), ExprTreeItem(), path, and populated.

Referenced by find(), getChild(), and getChildCount().

◆ regen()

void ExprTreeItem::regen ( )
inline

Definition at line 118 of file ExprBrowser.cpp.

References addChild(), children, and ExprTreeItem().

Referenced by ExprTreeModel::find().

Member Data Documentation

◆ children

std::vector<ExprTreeItem *> ExprTreeItem::children
private

Definition at line 139 of file ExprBrowser.cpp.

Referenced by addChild(), clear(), find(), getChild(), getChildCount(), regen(), and ~ExprTreeItem().

◆ label

QString ExprTreeItem::label

Definition at line 135 of file ExprBrowser.cpp.

◆ parent

ExprTreeItem* ExprTreeItem::parent

Definition at line 134 of file ExprBrowser.cpp.

Referenced by ExprTreeModel::parent().

◆ path

QString ExprTreeItem::path

Definition at line 136 of file ExprBrowser.cpp.

Referenced by find(), and populate().

◆ populated

bool ExprTreeItem::populated
private

Definition at line 140 of file ExprBrowser.cpp.

Referenced by populate().

◆ row

int ExprTreeItem::row

Definition at line 133 of file ExprBrowser.cpp.

Referenced by addChild(), ExprTreeModel::find(), getChild(), and ExprTreeModel::parent().


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