Classes | |
struct | UpdateData |
Public Types | |
typedef std::function< void(UpdateData)> | UpdateNodeCallback |
Public Member Functions | |
class TypeBrowserModelData * | model () const |
std::optional< std::shared_ptr< TypeBrowserTreeNode > > | parent () const |
const std::vector< std::shared_ptr< TypeBrowserTreeNode > > & | children () |
int | indexOfChild (std::shared_ptr< const TypeBrowserTreeNode > child) const |
virtual std::string | text (int column) const =0 |
virtual bool | lessThan (const TypeBrowserTreeNode &other, int column) const =0 |
virtual bool | filter (const std::string &filter, TypeBrowserFilterMode mode) const =0 |
virtual void | updateChildren (bool recursive, UpdateNodeCallback update) |
Protected Member Functions | |
TypeBrowserTreeNode (class TypeBrowserModelData *model, std::optional< std::weak_ptr< TypeBrowserTreeNode > > parent) | |
virtual | ~TypeBrowserTreeNode ()=default |
virtual void | generateChildren ()=0 |
void | updateChildIndices () |
void | removeChild (std::shared_ptr< TypeBrowserTreeNode > child) |
void | addChild (std::shared_ptr< TypeBrowserTreeNode > child) |
Protected Attributes | |
class TypeBrowserModelData * | m_model |
std::optional< std::weak_ptr< TypeBrowserTreeNode > > | m_parent |
std::vector< std::shared_ptr< TypeBrowserTreeNode > > | m_children |
std::map< const TypeBrowserTreeNode *, size_t > | m_childIndices |
bool | m_hasGeneratedChildren |
std::function<void(UpdateData)> TypeBrowserTreeNode::UpdateNodeCallback |
|
protected |
|
protectedvirtualdefault |
|
protectedpure virtual |
Implemented in EmptyTreeNode, RootTreeNode, TypeContainerTreeNode, and TypeTreeNode.
|
protected |
|
protected |
|
protected |
|
inline |
std::optional< std::shared_ptr< TypeBrowserTreeNode > > TypeBrowserTreeNode::parent | ( | ) | const |
const std::vector< std::shared_ptr< TypeBrowserTreeNode > > & TypeBrowserTreeNode::children | ( | ) |
int TypeBrowserTreeNode::indexOfChild | ( | std::shared_ptr< const TypeBrowserTreeNode > | child | ) | const |
|
pure virtual |
Implemented in EmptyTreeNode, RootTreeNode, TypeContainerTreeNode, and TypeTreeNode.
|
pure virtual |
Implemented in EmptyTreeNode, RootTreeNode, TypeContainerTreeNode, and TypeTreeNode.
|
pure virtual |
Implemented in EmptyTreeNode, RootTreeNode, TypeContainerTreeNode, and TypeTreeNode.
|
virtual |
Reimplemented in EmptyTreeNode, RootTreeNode, and TypeContainerTreeNode.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |