#pragma once
#ifndef ___ThreadBinNode
#define ___ThreadBinNode
//스레드 이진트리(Thread Binary Tree)를 위한 노드 클래스
class ThreadBinNode
{
int data;
ThreadBinNode* left;
ThreadBinNode* right;
public:
bool bThread;
ThreadBinNode(int val,ThreadBinNode* l, ThreadBinNode* r,
bool bTh) : data(val), left(l), right(r), bThread(bTh) {}
int getData() { return data; }
void setRight(ThreadBinNode *r) { right = r; }
ThreadBinNode* getLeft() { return left; }
ThreadBinNode* getRight() { return right; }
};
#endif // !___ThreadBinNode
'Programming > DS SorceCode' 카테고리의 다른 글
BinaryNode.h : 이진 트리를 위한 노드 클래스 (0) | 2019.03.29 |
---|---|
스레드 이진트리(Thread Binary Tree)를 위한 노드 클래스 ##뭔가 오류가 있음 (0) | 2019.03.25 |
BinaryNode.h : 이진 트리를 위한 노드 클래스 (0) | 2019.03.25 |
LinkedDeque.h : 연결된 덱 클래스 (0) | 2019.03.24 |
DblinkedList.h : 이중 연결 리스트 클래스 (0) | 2019.03.24 |