LLDB  mainline
Public Member Functions | Protected Attributes | List of all members
TreeItem Class Reference
Collaboration diagram for TreeItem:
Collaboration graph
[legend]

Public Member Functions

 TreeItem (TreeItem *parent, TreeDelegate &delegate, bool might_have_children)
 
TreeItemoperator= (const TreeItem &rhs)
 
size_t GetDepth () const
 
int GetRowIndex () const
 
void ClearChildren ()
 
void Resize (size_t n, const TreeItem &t)
 
TreeItemoperator[] (size_t i)
 
void SetRowIndex (int row_idx)
 
size_t GetNumChildren ()
 
void ItemWasSelected ()
 
void CalculateRowIndexes (int &row_idx)
 
TreeItemGetParent ()
 
bool IsExpanded () const
 
void Expand ()
 
void Unexpand ()
 
bool Draw (Window &window, const int first_visible_row, const uint32_t selected_row_idx, int &row_idx, int &num_rows_left)
 
void DrawTreeForChild (Window &window, TreeItem *child, uint32_t reverse_depth)
 
TreeItemGetItemForRowIndex (uint32_t row_idx)
 
void * GetUserData () const
 
void SetUserData (void *user_data)
 
uint64_t GetIdentifier () const
 
void SetIdentifier (uint64_t identifier)
 
void SetMightHaveChildren (bool b)
 

Protected Attributes

TreeItemm_parent
 
TreeDelegatem_delegate
 
void * m_user_data
 
uint64_t m_identifier
 
int m_row_idx
 
std::vector< TreeItemm_children
 
bool m_might_have_children
 
bool m_is_expanded
 

Detailed Description

Definition at line 2030 of file IOHandler.cpp.

Constructor & Destructor Documentation

◆ TreeItem()

TreeItem::TreeItem ( TreeItem parent,
TreeDelegate delegate,
bool  might_have_children 
)
inline

Definition at line 2032 of file IOHandler.cpp.

Member Function Documentation

◆ CalculateRowIndexes()

void TreeItem::CalculateRowIndexes ( int &  row_idx)
inline

Definition at line 2074 of file IOHandler.cpp.

References curses::Menu::m_parent.

◆ ClearChildren()

void TreeItem::ClearChildren ( )
inline

◆ Draw()

bool TreeItem::Draw ( Window window,
const int  first_visible_row,
const uint32_t  selected_row_idx,
int &  row_idx,
int &  num_rows_left 
)
inline

◆ DrawTreeForChild()

void TreeItem::DrawTreeForChild ( Window window,
TreeItem child,
uint32_t  reverse_depth 
)
inline

Definition at line 2162 of file IOHandler.cpp.

References curses::Menu::m_parent, and curses::Window::PutChar().

◆ Expand()

void TreeItem::Expand ( )
inline

Definition at line 2097 of file IOHandler.cpp.

◆ GetDepth()

size_t TreeItem::GetDepth ( ) const
inline

Definition at line 2051 of file IOHandler.cpp.

References curses::Menu::m_parent.

◆ GetIdentifier()

uint64_t TreeItem::GetIdentifier ( ) const
inline

◆ GetItemForRowIndex()

TreeItem* TreeItem::GetItemForRowIndex ( uint32_t  row_idx)
inline

Definition at line 2187 of file IOHandler.cpp.

References GetItemForRowIndex().

Referenced by GetItemForRowIndex().

◆ GetNumChildren()

size_t TreeItem::GetNumChildren ( )
inline

Definition at line 2067 of file IOHandler.cpp.

◆ GetParent()

TreeItem* TreeItem::GetParent ( )
inline

Definition at line 2093 of file IOHandler.cpp.

References curses::Menu::m_parent.

◆ GetRowIndex()

int TreeItem::GetRowIndex ( ) const
inline

Definition at line 2057 of file IOHandler.cpp.

◆ GetUserData()

void* TreeItem::GetUserData ( ) const
inline

◆ IsExpanded()

bool TreeItem::IsExpanded ( ) const
inline

Definition at line 2095 of file IOHandler.cpp.

◆ ItemWasSelected()

void TreeItem::ItemWasSelected ( )
inline

Definition at line 2072 of file IOHandler.cpp.

◆ operator=()

TreeItem& TreeItem::operator= ( const TreeItem rhs)
inline

◆ operator[]()

TreeItem& TreeItem::operator[] ( size_t  i)
inline

Definition at line 2063 of file IOHandler.cpp.

◆ Resize()

void TreeItem::Resize ( size_t  n,
const TreeItem t 
)
inline

◆ SetIdentifier()

void TreeItem::SetIdentifier ( uint64_t  identifier)
inline

◆ SetMightHaveChildren()

void TreeItem::SetMightHaveChildren ( bool  b)
inline

Definition at line 2210 of file IOHandler.cpp.

Referenced by ThreadsTreeDelegate::TreeDelegateGenerateChildren().

◆ SetRowIndex()

void TreeItem::SetRowIndex ( int  row_idx)
inline

Definition at line 2065 of file IOHandler.cpp.

◆ SetUserData()

void TreeItem::SetUserData ( void *  user_data)
inline

Definition at line 2204 of file IOHandler.cpp.

Referenced by ThreadTreeDelegate::TreeDelegateGenerateChildren().

◆ Unexpand()

void TreeItem::Unexpand ( )
inline

Definition at line 2099 of file IOHandler.cpp.

Member Data Documentation

◆ m_children

std::vector<TreeItem> TreeItem::m_children
protected

Definition at line 2219 of file IOHandler.cpp.

Referenced by operator=().

◆ m_delegate

TreeDelegate& TreeItem::m_delegate
protected

Definition at line 2214 of file IOHandler.cpp.

Referenced by operator=().

◆ m_identifier

uint64_t TreeItem::m_identifier
protected

Definition at line 2216 of file IOHandler.cpp.

Referenced by operator=().

◆ m_is_expanded

bool TreeItem::m_is_expanded
protected

Definition at line 2221 of file IOHandler.cpp.

Referenced by operator=().

◆ m_might_have_children

bool TreeItem::m_might_have_children
protected

Definition at line 2220 of file IOHandler.cpp.

Referenced by operator=().

◆ m_parent

TreeItem* TreeItem::m_parent
protected

Definition at line 2213 of file IOHandler.cpp.

Referenced by operator=().

◆ m_row_idx

int TreeItem::m_row_idx
protected

Definition at line 2217 of file IOHandler.cpp.

Referenced by operator=().

◆ m_user_data

void* TreeItem::m_user_data
protected

Definition at line 2215 of file IOHandler.cpp.

Referenced by operator=().


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