souffle  2.0.2-371-g6315b36
Public Member Functions | Protected Attributes
souffle::TreeNode Class Referenceabstract

#include <ExplainTree.h>

Inheritance diagram for souffle::TreeNode:
Inheritance graph
Collaboration diagram for souffle::TreeNode:
Collaboration graph

Public Member Functions

uint32_t getHeight () const
 
size_t getSize ()
 
uint32_t getWidth () const
 
virtual void place (uint32_t xpos, uint32_t ypos)=0
 
virtual void printJSON (std::ostream &os, int pos)=0
 
virtual void render (ScreenBuffer &s)=0
 
void setSize (size_t s)
 
 TreeNode (std::string t="")
 
virtual ~TreeNode ()=default
 

Protected Attributes

uint32_t height = 0
 
uint32_t size = 0
 
std::string txt
 
uint32_t width = 0
 
int xpos = 0
 
int ypos = 0
 

Detailed Description

Definition at line 90 of file ExplainTree.h.

Constructor & Destructor Documentation

◆ TreeNode()

souffle::TreeNode::TreeNode ( std::string  t = "")
inline

Definition at line 95 of file ExplainTree.h.

95 {

References height.

◆ ~TreeNode()

virtual souffle::TreeNode::~TreeNode ( )
virtualdefault

Member Function Documentation

◆ getHeight()

uint32_t souffle::TreeNode::getHeight ( ) const
inline

Definition at line 104 of file ExplainTree.h.

105  {
106  return size;

References size.

◆ getSize()

size_t souffle::TreeNode::getSize ( )
inline

Definition at line 114 of file ExplainTree.h.

115  :
116  std::string txt; // text of tree node

◆ getWidth()

uint32_t souffle::TreeNode::getWidth ( ) const
inline

Definition at line 99 of file ExplainTree.h.

105  {

◆ place()

virtual void souffle::TreeNode::place ( uint32_t  xpos,
uint32_t  ypos 
)
pure virtual

Implemented in souffle::LeafNode, and souffle::InnerNode.

◆ printJSON()

virtual void souffle::TreeNode::printJSON ( std::ostream &  os,
int  pos 
)
pure virtual

Implemented in souffle::LeafNode, and souffle::InnerNode.

◆ render()

virtual void souffle::TreeNode::render ( ScreenBuffer s)
pure virtual

Implemented in souffle::LeafNode, and souffle::InnerNode.

◆ setSize()

void souffle::TreeNode::setSize ( size_t  s)
inline

Definition at line 118 of file ExplainTree.h.

127  : public TreeNode {

Field Documentation

◆ height

uint32_t souffle::TreeNode::height = 0
protected

Definition at line 127 of file ExplainTree.h.

Referenced by souffle::InnerNode::place(), and TreeNode().

◆ size

uint32_t souffle::TreeNode::size = 0
protected

Definition at line 130 of file ExplainTree.h.

Referenced by getHeight().

◆ txt

std::string souffle::TreeNode::txt
protected

Definition at line 125 of file ExplainTree.h.

Referenced by souffle::LeafNode::place().

◆ width

uint32_t souffle::TreeNode::width = 0
protected

Definition at line 126 of file ExplainTree.h.

Referenced by souffle::InnerNode::place().

◆ xpos

int souffle::TreeNode::xpos = 0
protected

Definition at line 128 of file ExplainTree.h.

Referenced by souffle::LeafNode::place().

◆ ypos

int souffle::TreeNode::ypos = 0
protected

Definition at line 129 of file ExplainTree.h.

Referenced by souffle::LeafNode::place().


The documentation for this class was generated from the following file:
souffle::TreeNode::size
uint32_t size
Definition: ExplainTree.h:130
souffle::TreeNode::TreeNode
TreeNode(std::string t="")
Definition: ExplainTree.h:95
souffle::TreeNode::txt
std::string txt
Definition: ExplainTree.h:125