RootTreeNode Class Reference

Public Member Functions

 RootTreeNode (class TypeBrowserModelData *model, std::optional< std::weak_ptr< TypeBrowserTreeNode > > parent)
 
virtual ~RootTreeNode ()=default
 
virtual std::string text (int column) const override
 
virtual bool lessThan (const TypeBrowserTreeNode &other, int column) const override
 
virtual bool filter (const std::string &filter, TypeBrowserFilterMode mode) const override
 
- Public Member Functions inherited from TypeBrowserTreeNode
class TypeBrowserModelDatamodel () 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

virtual void generateChildren () override
 
virtual void updateChildren (bool recursive, UpdateNodeCallback update) override
 
- Protected Member Functions inherited from TypeBrowserTreeNode
 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)
 

Additional Inherited Members

- Public Types inherited from TypeBrowserTreeNode
typedef std::function< void(UpdateData)> UpdateNodeCallback
 
- Protected Attributes inherited from TypeBrowserTreeNode
class TypeBrowserModelDatam_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
 

Constructor & Destructor Documentation

◆ RootTreeNode()

RootTreeNode::RootTreeNode ( class TypeBrowserModelData model,
std::optional< std::weak_ptr< TypeBrowserTreeNode > >  parent 
)

◆ ~RootTreeNode()

virtual RootTreeNode::~RootTreeNode ( )
virtualdefault

Member Function Documentation

◆ text()

virtual std::string RootTreeNode::text ( int  column) const
overridevirtual

Implements TypeBrowserTreeNode.

◆ lessThan()

virtual bool RootTreeNode::lessThan ( const TypeBrowserTreeNode other,
int  column 
) const
overridevirtual

Implements TypeBrowserTreeNode.

◆ filter()

virtual bool RootTreeNode::filter ( const std::string &  filter,
TypeBrowserFilterMode  mode 
) const
overridevirtual

Implements TypeBrowserTreeNode.

◆ generateChildren()

virtual void RootTreeNode::generateChildren ( )
overrideprotectedvirtual

Implements TypeBrowserTreeNode.

◆ updateChildren()

virtual void RootTreeNode::updateChildren ( bool  recursive,
UpdateNodeCallback  update 
)
overrideprotectedvirtual

Reimplemented from TypeBrowserTreeNode.