souffle  2.0.2-371-g6315b36
Public Member Functions
souffle::LeafNode Class Reference

#include <ExplainTree.h>

Inheritance diagram for souffle::LeafNode:
Inheritance graph
Collaboration diagram for souffle::LeafNode:
Collaboration graph

Public Member Functions

 LeafNode (const std::string &t="")
 
void place (uint32_t x, uint32_t y) override
 
void printJSON (std::ostream &os, int pos) override
 
void render (ScreenBuffer &s) override
 
- Public Member Functions inherited from souffle::TreeNode
uint32_t getHeight () const
 
size_t getSize ()
 
uint32_t getWidth () const
 
void setSize (size_t s)
 
 TreeNode (std::string t="")
 
virtual ~TreeNode ()=default
 

Additional Inherited Members

- Protected Attributes inherited from souffle::TreeNode
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 207 of file ExplainTree.h.

Constructor & Destructor Documentation

◆ LeafNode()

souffle::LeafNode::LeafNode ( const std::string &  t = "")
inline

Definition at line 211 of file ExplainTree.h.

216  {

Member Function Documentation

◆ place()

void souffle::LeafNode::place ( uint32_t  x,
uint32_t  y 
)
inlineoverridevirtual

Implements souffle::TreeNode.

Definition at line 216 of file ExplainTree.h.

216  {
217  s.write(xpos, ypos, txt);
218  }
219 
220  // print JSON
221  void printJSON(std::ostream& os, int pos) override {

References souffle::TreeNode::txt, souffle::TreeNode::xpos, and souffle::TreeNode::ypos.

◆ printJSON()

void souffle::LeafNode::printJSON ( std::ostream &  os,
int  pos 
)
inlineoverridevirtual

Implements souffle::TreeNode.

Definition at line 229 of file ExplainTree.h.

◆ render()

void souffle::LeafNode::render ( ScreenBuffer s)
inlineoverridevirtual

Implements souffle::TreeNode.

Definition at line 224 of file ExplainTree.h.


The documentation for this class was generated from the following file:
souffle::TreeNode::xpos
int xpos
Definition: ExplainTree.h:128
souffle::TreeNode::ypos
int ypos
Definition: ExplainTree.h:129
souffle::TreeNode::txt
std::string txt
Definition: ExplainTree.h:125
souffle::LeafNode::printJSON
void printJSON(std::ostream &os, int pos) override
Definition: ExplainTree.h:229