KiCad PCB EDA Suite
RC_TREE_NODE Class Reference

#include <rc_item.h>

Public Types

enum  NODE_TYPE {
  MARKER, MAIN_ITEM, AUX_ITEM, AUX_ITEM2,
  AUX_ITEM3
}
 

Public Member Functions

 RC_TREE_NODE (RC_TREE_NODE *aParent, std::shared_ptr< RC_ITEM > aRcItem, NODE_TYPE aType)
 
 ~RC_TREE_NODE ()
 

Public Attributes

NODE_TYPE m_Type
 
std::shared_ptr< RC_ITEMm_RcItem
 
RC_TREE_NODEm_Parent
 
std::vector< RC_TREE_NODE * > m_Children
 

Detailed Description

Definition at line 177 of file rc_item.h.

Member Enumeration Documentation

◆ NODE_TYPE

Enumerator
MARKER 
MAIN_ITEM 
AUX_ITEM 
AUX_ITEM2 
AUX_ITEM3 

Definition at line 180 of file rc_item.h.

Constructor & Destructor Documentation

◆ RC_TREE_NODE()

RC_TREE_NODE::RC_TREE_NODE ( RC_TREE_NODE aParent,
std::shared_ptr< RC_ITEM aRcItem,
NODE_TYPE  aType 
)
inline

Definition at line 182 of file rc_item.h.

182  :
183  m_Type( aType ),
184  m_RcItem( aRcItem ),
185  m_Parent( aParent )
186  {}
RC_TREE_NODE * m_Parent
Definition: rc_item.h:197
std::shared_ptr< RC_ITEM > m_RcItem
Definition: rc_item.h:195
NODE_TYPE m_Type
Definition: rc_item.h:194

◆ ~RC_TREE_NODE()

RC_TREE_NODE::~RC_TREE_NODE ( )
inline

Definition at line 188 of file rc_item.h.

189  {
190  for( RC_TREE_NODE* child : m_Children )
191  delete child;
192  }
std::vector< RC_TREE_NODE * > m_Children
Definition: rc_item.h:198

References m_Children.

Member Data Documentation

◆ m_Children

std::vector<RC_TREE_NODE*> RC_TREE_NODE::m_Children

◆ m_Parent

RC_TREE_NODE* RC_TREE_NODE::m_Parent

◆ m_RcItem

◆ m_Type


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